kisstkondoros / codemetrics

VSCode extension which shows the complexity information for TypeScript class members
Other
404 stars 20 forks source link

Settings to exclude folder/files from codemetrics analysis #31

Closed pmunin closed 7 years ago

pmunin commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Thanks for fast reaction, man! good job!