-
Notifications
You must be signed in to change notification settings - Fork 414
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
Persistent handling of issues #5
Comments
This is something I also thought about. It would be a non-trivial feature, so I am afraid this is more in the 1.0-territory. So I absolutely agree with you. It's just that I always criticise it when other projects set the wrong priorities during the very early phases of their development and I don't want to be hypocrite. Let's keep this issue open to remind me to put it on the roadmap! 👍 |
Yeah, you're totally right, so maybe add a label |
@maxnordlund Credo What do you think? |
I love it 😸 Close this if you like, unless you have a plan for this somehow 😉 |
I like this idea of linting the "XYCheck ignored via @lint, but XY does not report any issues here." Great idea! 👍 |
Yes, yes! Lint all the things. If it will work like that it could probably be on all the time instead of hidden behind a flag. Which would mean your linting ignores will never be grow stale. Den 10 feb. 2016 12:56 skrev "René Föhring" notifications@github.com:
|
Yeah, that's what I was thinking: a |
Yes, this is nice when you finally refactor some bit of code that needed ignored for a while and get to remove the @lint. It's also nice for "lint as you type" editor integration. |
@rrrene This was created prior to the |
Yeah, I think so too. |
I really like that this tool is all about presenting, vs enforcing, various code issues. But if I, or people in my team, decides that something is not a problem it would be very nice if credo could remember that.
Maybe something like
credo ignore <type|issueno> <source:lineno:columnno>
and a suitable file to store it. To actually implement this I would either store the entire offending line, or perhaps a hash of it. Then use this to detect if the line has changed and reenable the check.There probably needs an corresponding
credo clean
command to clear out old ignored lines. This should be separate so that running thecredo
commands doesn't remove ignores while editing.I would also recommend adding this to version control to share the knowledge and track which & why certain issues have been ignored.
The text was updated successfully, but these errors were encountered: