-
Notifications
You must be signed in to change notification settings - Fork 111
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
Bump up year in headers #583
Comments
@krzyk it looks like a minor/cosmetic issue, unless we create an automated check inside pom.xml, to verify the presence of |
@mkordas please update the description to add a test for such case. We should always check that copyright is in the range 2011-current year. This test should be applied to (at a minimum) Another problem is that the LICENSE.txt is updated, but checks.xml doesn't use that, but should, I'm not sure if checkstyle header check is smart enough to look for header deeper in the file. |
@krzyk description updated. I don't think Checkstyle Header check is smart enough to check XML files. I think we need to make new check just for XMLs in Qulice. Would it be in scope of this issue? |
@mkordas no, I think that smart License check would be another task, that could be later on used in projects using qulice |
@krzyk sure, I'll submit issue for that. Do you think we need just one custom smart license check for every type of file? Or maybe we should keep using Checkstyle for non-XML files and create our own |
@mkordas We would need a check for files that don't allow header in the beginning (or are just not caught by checkstyle header check), so we have xml (including .fml), vm, and properties. So not only xml check. And I hope that groovy can be checked by standard checkstyle, if we update extensions. |
@krzyk I think, just a |
@davvd valid bug |
@mkordas thanks a lot for reporting, 15 mins added to your acc, pmt ID |
@mkordas changes have been merged to master, please close this issue |
@krzyk thank you |
@krzyk I have similar task in rultor project. I tried your decision and have a question about |
@vkuchyn this excludes only files that name starts with a dot |
@krzyk problem is that I don't. Suppose because of different environments. |
@vkuchyn white list is problematic, because it might cause that we miss some file extension. |
@krzyk take a look at comment - there is sample of grep code. Idea - chek only those files that has copyright pattern |
We have year 2016 already, so all occurrences of
2015
in licenses and headers should be bumped up.Also all occurrences of
2014
should be reviewed. E.g. for entire year we had outdated license inchecks.xml
.There should be test added to check whether copyright is 2011-current year. It should check at least
.java
,.xml
,.vm
,.groovy
,.txt
,.fml
,.properties
extensions.The text was updated successfully, but these errors were encountered: