kisstkondoros / codemetrics

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

Option to ignore "Describe" functions #104

Closed lianestellet closed 1 year ago

lianestellet commented 2 years ago

I use jest on my team and usually our describes have a lot of complexity due to it's structure. Should we have a configuration to ignore exactly some function function name?

something like this: codemetrics.basics.CodeIgnoreFunctionNames: ["describe"]

kisstkondoros commented 1 year ago

Implemented in tsmetrics-core@1.4.0, available in vscode-codemetrics@1.26.0.

Can be configured as

{
    "codemetrics.basics.IgnoredFunctionNames": [
        "describe"
    ]
}