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

Linting only on changed lines of open files #741

Open
noelevans opened this issue Feb 20, 2025 · 0 comments
Open

Linting only on changed lines of open files #741

noelevans opened this issue Feb 20, 2025 · 0 comments

Comments

@noelevans
Copy link

I just opened a PR for a Python linter, graylint. Its unique feature for Python is that it only flags issues on lines of a file if they are not yet under git source control. I work mostly on a very long-living project which has many lint items that would be flagged. I'm not interest in fixing the thousands of issues to potentially fix. I just want to see errors flagged in the code I am writing / editing today. Graylint is therefore great but on some files take 20+ seconds to process files - not an ideal user experience. Alternatively there is Ruff which on the same files runs < 0.1 seconds but does not support flagging modified / new lines only.

Then moving to other languages, the same feature would be of great use; only flagging lines of code that are being writing today. Not all of a 2000 line Lua / Go / etc module.

Would you be open to nvim-lint having a feature to filter linting issues to only show those on lines of files not yet staged in Git?

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

1 participant