-
Notifications
You must be signed in to change notification settings - Fork 10
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
Builtin year constant #5
Comments
Actually, it is a problem only if go-header using under golangci-linter. Directly can be used something like Also, I think this case should work fine if golangci linter has an option I'll try to discuss this problem with golangci-team. |
I think it makes sense to support old files as well. For example, if the template changes, I'd expect old files to be updated as well, so I should be able to lint everything, too. |
2. Code cleanup Signed-off-by: Denis Tingajkin <[email protected]>
Should be fixed in golangci since v1.34.0. |
Closing this. Let me know if something still not working as expected :) |
Add a builtin constant for the current year. It would also be nice, if go header could validate headers that contain previous years, since they don't have to be updated.
The text was updated successfully, but these errors were encountered: