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

Ignore symbols from code #46

Open
dvdsk opened this issue Oct 24, 2021 · 1 comment
Open

Ignore symbols from code #46

dvdsk opened this issue Oct 24, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@dvdsk
Copy link
Owner

dvdsk commented Oct 24, 2021

Would not lint text that matches the name of one of the symbols in the code.

The check itself can be done fast if a Lua table exists of all symbols known to tree-sitter then we only need to check for each word if it is in the table.

The problem is getting such a table as it needs to be up to date each time we start checking a new piece of text. For now the only way I see we could do this is adding a tree-sitter query that extracts symbols and updates the table. Taking care to remove items that no longer exist

@dvdsk dvdsk added the enhancement New feature or request label Oct 24, 2021
@dvdsk
Copy link
Owner Author

dvdsk commented Oct 24, 2021

As an extension on this, quickly commenting out a block of code quickly leads to a ton of false positives. Maybe this could take care of that too?

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

No branches or pull requests

1 participant