-
-
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
discuss about design deprecation cycle (how to handle deprecated linter) #1987
Comments
I support this idea I mentioned above. Users who want to use a linter that has been removed for some reason can use the linter. As for the specification of the deleted status linter, I am thinking of the following
|
A standard deprecation cycle is: available -> deprecated -> removed The questions behind this cycle are:
During the deprecation phase, it possible to have several steps:
The last phase (remove) is breaking, it's expected and it must clear: when something is removed it must be removed. About phase durations, for me, it's better to link this to a version (minor or major) instead of months or a time duration. Now, the main question: do we want to drop an item in a minor version or in a major version? |
Right. So, do you mean that we should erase it completely from the golangci-lint code instead of leaving it on code as
agree :D
I think we should remove deprecated linters in the major version according to Semantic Versioning 2.0.0.
|
May I also suggest that deprecated linters should be removed from the various Example:
As I did not configure an explicit list of linters (but rely on the presets instead) the set of enabled linters should IMHO be free of deprecated linters that cause such warnings. Searching for |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
My proposal is still nearly the same:
Each step is a minor version, ex:
Currently, we consider linters changes (like options that are breaking) like non-breaking changes for golangci-lint itself. Note: currently the deprecated linters are removed from |
Is your feature request related to a problem? Please describe.
Now, Some linters have been deprecated on golangci-lint.
Golangci-lint send out a warn message to users who are using deprecated linter, telling them that it is deprecated.
The number of deprecated linters is expected to increase in the future.
We need to discuss how to handle deprecated linter.
Describe the solution you'd like
deleted
, separate from deprecated?Additional context
had a small discussion on #1986 about how to handle deprecated linter when the
enable-all
is specifiedThe text was updated successfully, but these errors were encountered: