-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
What is the file_header rule about? #1492
Comments
It validates that a certain string or regex should be present (or avoided) on the file header. By the default, this rule warns against occurrences of "Copyright". You can see an example of how it can be configured on SwiftLint configuration file. |
OK, so the error message wasn't very informative. I would suggest to change it to something more like:
|
It's just that the rule can enforce that a certain string/pattern must be avoided as well, so "should match the project pattern" doesn't feel right to me. But I agree we can have a better message here. |
Suggestions? |
|
I do not understand what is the issue reported by the rule
file_header
.What does it mean?
Does it mean I need to change the Copyright year for all my files on every January 1st?
The text was updated successfully, but these errors were encountered: