Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings to exclude folder/files from codemetrics analysis #31

Closed
pmunin opened this issue Aug 12, 2017 · 2 comments
Closed

Settings to exclude folder/files from codemetrics analysis #31

pmunin opened this issue Aug 12, 2017 · 2 comments

Comments

@pmunin
Copy link

pmunin commented Aug 12, 2017

How to exclude particular folder or file from code metric analysis.
E.g. I have a folder /dist or /build, which contains compiled js files, that I don't want to be analysed by CM, however I still see thousands of warnings in "PROBLEMS" tab for those files from codemetrics.

I don't want to exclude those folders from workspace either, I just want all code analysis tools to ignore those files.

@kisstkondoros
Copy link
Owner

kisstkondoros commented Aug 12, 2017

vscode-codemetrics@1.9.0 was just published with this feature included, please open an issue if something feels wrong with it ^^

edit:
you can use the property codemetrics.basics.Exclude to exclude certain files (glob pattern)
e.g.:

 "codemetrics.basics.Exclude": [
        "**/node_modules/*",
        "**/dist/*",
        "**/build/*",
        "**/*.js"
    ],

@pmunin
Copy link
Author

pmunin commented Aug 13, 2017

Thanks for fast reaction, man! good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants