Skip to content
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

Compact the license headers #2444

Merged
merged 10 commits into from
Jun 6, 2017
Merged

Compact the license headers #2444

merged 10 commits into from
Jun 6, 2017

Conversation

paulirish
Copy link
Member

@paulirish paulirish commented Jun 6, 2017

Followup from #1771 ... And spiritually part of #2276

Primary motivation here: improve the developer experience. Less scrolling. A higher signal:noise ratio of the sourcebase.

While it's easy for experienced eyes to gloss over it, the large license header acts as micro-barrier for new contributors and code voyeurs. IMO, this is a worthwhile step to improve the visual accessibility of the code.


  • In order to reduce the blame/diff history, I've broken up the change into multiple commits.
  • Years are preserved. There was even one 2015! (Whats upbuild-traceviewer-module.js!)
  • I've also normalized the distance of the license header to 'use strict';. Per @brendankenny's demands, there is no extra newline between them.

* limitations under the License.
* @license Copyright 2016 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've got quite the smattering of 'use strict' huh?

@patrickhulce
Copy link
Collaborator

cool, fine by me

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* @license Copyright 2016 Google Inc. All Rights Reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the deal with github bolding/not bolding Copyright in js/ts ha

@paulirish paulirish force-pushed the licenseheaders-mini branch from 7afe2fe to 0f03c47 Compare June 6, 2017 02:21
@paulirish paulirish merged commit 63b4ac1 into master Jun 6, 2017
@paulirish paulirish deleted the licenseheaders-mini branch June 6, 2017 02:22
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

improve the developer experience. Less scrolling. A higher signal:noise ratio of the sourcebase.

I still maintain that you're the only person on earth who cares about this, but I also don't care. This version is at least nicer looking than the other one.

Per @brendankenny's demands, there is no extra newline between them.

after I was asked about it! I can only assume this was to make me party to this PR :P

@paulirish
Copy link
Member Author

after I was asked about it! I can only assume this was to make me party to this PR :P

damn straight! 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants