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

Suppress by error code #15

Closed
koto opened this issue Oct 26, 2020 · 1 comment
Closed

Suppress by error code #15

koto opened this issue Oct 26, 2020 · 1 comment

Comments

@koto
Copy link
Member

koto commented Oct 26, 2020

Extracted from microsoft/vscode#108682:

@jrieken: Would it be possible to teach tsec more than one error code and to able to suppress certain error codes (instead of files)?

The use case Johannes outlined in vscode is their usage of dynamic imports - there's nothing actionable for the projects to move off them, but tsec should be able to surface violations of a different kind in the files.

@uraj
Copy link
Collaborator

uraj commented Dec 8, 2020

Maybe we can support wildcards in the exemption list, so that we can have something like

{
    "ban-dynamic-imports": ["**/*.ts"]
}

@uraj uraj closed this as completed in 17c6981 Dec 14, 2020
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