-
Notifications
You must be signed in to change notification settings - Fork 2.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
Add missing copyright headers to .rb files #17578
base: dev
Are you sure you want to change the base?
Conversation
This effectively removes the year from a bunch of copyright headers. Apparently we stopped indicating a specific year at some point, but didn't propagate this change.
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. |
Check notice
Code scanning / Brakeman
Potential HTTP verb confusion. HEAD is routed like GET but request.get? will return false. Note
# modify it under the terms of the GNU General Public License version 3. | ||
# | ||
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: | ||
# Copyright (C) 2006-2013 Jean-Philippe Lang |
Check warning
Code scanning / Brakeman
Model attribute used in file name. Warning
8e8789f
to
208436f
Compare
The copyright task was so far only built to update existing (and properly marked) copyright headers. We are now adding the capability to add a missing header for Ruby files. This allows us to properly indicate copyright where it was previously forgotten to be done.
208436f
to
89d5a7a
Compare
What are you trying to accomplish?
We discussed that for best compliance with GPL each and every file should have a GPL header. While many files had one, not all of them were covered yet.
This PR is experimentally adding support to our existing
copyright.rake
task to create missing headers for Ruby files only.The PR is composed of three commits, for better reviewability:
Additional notes
As far as I can tell, the remaining linter failures are a consequence of me touching files that failed validation beforehand.
copyright.rake
passes Rubocop checks now. Given an approval I will ignore linter failures of the CI for this pull request.Screenshots
Pre-Review checklist