Comments (2)
Yeah, currently only the last -exclude
setting gets picked up and any previous setting is silently ignored (NB: no \.rb$
in "Exclude Regexp"):
$ ec -verbose -exclude '\.rb$' -exclude '\.gemspec$'
Exclude Regexp: \.gemspec$|^\.yarn/|^yarn\.lock$|^package-lock\.json$|^composer\.lock$|^Cargo\.lock$|^Gemfile\.lock$|^\.pnp\.cjs$|^\.pnp\.js$|^\.pnp\.loader\.mjs$|\.snap$|\.otf$|\.woff$|\.woff2$|\.eot$|\.ttf$|\.gif$|\.png$|\.jpg$|\.jpeg$|\.webp$|\.avif$|\.mp4$|\.wmv$|\.svg$|\.ico$|\.bak$|\.bin$|\.pdf$|\.zip$|\.gz$|\.tar$|\.7z$|\.bz2$|\.log$|\.patch$|\.css\.map$|\.js\.map$|min\.css$|min\.js$
Ironically, this project's own Makefile
doesn't account for this either:
Lines 52 to 56 in 585ef52
It would be great if multiple -exclude
s were all picked up and merged into the regexp as alternatives (like the Exclude
array in JSON configuration), as many of us would intuitively expect. An inferior alternative (but still better than the current silent "last wins" overwrite) would be to detect multiple -exclude
settings and inform the user that only the last one was applied - but I guess that the proper fix of just adding support for multiple -exclude
s would actually be easier to implement than this ;)
from editorconfig-checker.
Anyone willing to create a PR for this?
from editorconfig-checker.
Related Issues (20)
- Could not decode the IBM420_rtl encoded file HOT 4
- Wrong amount of left-padding spaces in shellscript HOT 2
- Different results with and without installed Git HOT 4
- Exclude files efficiently HOT 1
- editorconfig-checker inspects .git by default and fails HOT 4
- Files with unstaged changes in Git are checked twice HOT 2
- Automatically ignore language-specific block syntax HOT 3
- Ignore generated data (by default) HOT 1
- Rate limit reached due to `GITHUB_TOKEN` not being read HOT 1
- Add multi-thread support HOT 1
- `indent_style = space` is ignored if `indent_size = unset` HOT 1
- arm64 images missing for recent release HOT 4
- Respect the `NO_COLOR` environment variable to disable default color output HOT 1
- Paths with forward slashes in .editorconfig don't work on Windows HOT 2
- Configure commitlint to ignore the body length
- Ignore specific rules within file HOT 1
- Support for .ecrc.json HOT 7
- Runtime error under alpine linux HOT 2
- Cannot stat files with names that start with + HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editorconfig-checker.