-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Doc] Moving file while using --new-from-rev
#4349
Comments
--new-from-rev
--new-from-rev
Hello, It feel expected: I don't know how to improve the documentation about that 🤔 |
Hey, sorry for the late response I missed the notification !
I agree that this is expected because of the use of
I think I would expect something like:
WDYT? Does this seem reasonable to you? Thanks for taking the time to answer ! |
Welcome
Description of the problem
We recently used the
new-from-rev
key in our configuration to enablerevive
on our large codebase to avoid having to fix all the errors directly. It was really practical at first !One major caveat of
new-from-rev
imo is moving files. Let's say I have a legacy filehello.go
with 100 lints (i.e linter errors). Thenew-from-rev
parameter will silence them all. But if I rename this file tohello_world.go
or move it to another folder then all the lints will rise again.I think this should be mentioned in https://golangci-lint.run/usage/faq/#how-to-integrate-golangci-lint-into-large-project-with-thousands-of-issues to make people aware of the cost of relying on
new-from-rev
.Version of golangci-lint
Configuration
https://github.com/DataDog/datadog-agent/blob/fcb19ce078e7969d285565beec5d374c5fd623e1/.golangci.yml
Go environment
Validation
The text was updated successfully, but these errors were encountered: