Comments (5)
You should use , as the separator for arguments, EG
scc --exclude-dir site-lisp/copilot.el/,site-lisp/lsp-bridge/
You might also want to consider using a .ignore file with those directories in there to assist with this.
Let me know if the , works as expected as I was able to achieve what you requested using that.
from scc.
You should use , as the separator for arguments, EG
scc --exclude-dir site-lisp/copilot.el/,site-lisp/lsp-bridge/
I tried this
./scc --exclude-dir .git/,site-lisp/copilot.el/,site-lisp/lsp-bridge/
as well; the result was incorrect -- it included some JSON files (and other files that should have been excluded).
from scc.
Would it be possible to craft a smaller test case I can use to replicate this? I will be happy to include it into the repository itself in order to validate this. I ask because the repository you linked I had some issues cloning.
I need to see the file you are expecting to not be included as well so I can verify the issue exactly. Please be more specific. The more specific the better.
from scc.
a smaller test case
I've delete most files and upload the ZIP (3.38MB) here.
The ZIP file includes scc-3.1.0
.
After extract it, execute
./scc.exe --exclude-dir ".git/,site-lisp/copilot.el/,site-lisp/lsp-bridge/"
It is obviously that there is no JSON files, but scc
doesn't think so.
from scc.
Ah I know the issue here. Not a bug, but perhaps not what you expected.
Your use of the --exclude-dir is correct, but it does not work on full paths, only the top level. So in your example `site-lisp/lsp-bridge/" that matches nothing in the way it works.
If you replaced the / with , you should get the effect you want. Ideally use a .ignore file for this sort of thing though, as the intention of --exclude-dir was just to ignore directories from where you ran it not against paths, although thats something I should consider improving.
from scc.
Related Issues (20)
- Support ignoring submodules HOT 2
- "Text" rather than "Plain Text"? HOT 2
- Suggested primary branch name HOT 1
- Could you please release a new version? HOT 3
- Multiple directories do not sum correctly HOT 7
- Error in 'm'ain.ts' File Prevents Installation in Go HOT 1
- Recommended install method fails due to malformed file name HOT 5
- Flag --not-match/-M not working, got ignored entirely HOT 2
- Feature: Add custom languages.json support
- Feature: Add option to count files not supported by scc
- BUG: Multicharacter support HOT 4
- Docker: aquasec/trivy reports CRITICAL and HIGH vulnerabilities HOT 1
- Malware Alerts in SCC x86 Windows Release HOT 3
- REGRESSION: Performance HOT 2
- Consider disabling comoco and size by default HOT 1
- Github action removed HOT 1
- Feature - support language Clipper HOT 10
- Migrated previous GitLab CI code to a GitLab CI/CD Component HOT 1
- Proposal: Upgrade to Go 1.22 HOT 2
- Feature: add support for shebang for R 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 scc.