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

Add -exclude-files and -exclude-funcs options #3

Open
gavv opened this issue May 22, 2023 · 0 comments
Open

Add -exclude-files and -exclude-funcs options #3

gavv opened this issue May 22, 2023 · 0 comments
Labels
feature New feature or request good first issue Good for newcomers help wanted Contributions are welcome

Comments

@gavv
Copy link
Owner

gavv commented May 22, 2023

Implement two new options allowing to specify regexp to exclude matching files and functions from diagnostics.

Options should be added to:

  • command-line
  • YAML config
  • README

To implement -exclude-funcs, it should be enough to match function name in skip() function.

For -exclude-files, a more complicated logic is probably required. We don't have file information in skip(), so we'll need to obtain it somehow, or probably adjust AST traversal algorithm a bit.

We should also add two new tests for each option, which check that diagnostic is NOT reported for ignored files / functions.

@gavv gavv added feature New feature or request help wanted Contributions are welcome good first issue Good for newcomers labels May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Contributions are welcome
Projects
None yet
Development

No branches or pull requests

1 participant