Skip to content

Commit

Permalink
Set Apache-2.0 headers flush, within 72 columns
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Jun 15, 2017
1 parent 9cc3f6a commit 32b520c
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions licensor
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,21 @@ if (license === 'Apache-2.0') {

var licenseURL = 'http://www.apache.org/licenses/LICENSE-2.0'
var header = [
'/* Copyright ' + year + ' ' + owners,
' *',
' * 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',
' *', (
' * ' + licenseURL ),
' *',
' * 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.',
' */'
'/*',
'Copyright ' + year + ' ' + owners,
'',
'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',
'',
(' ' + licenseURL),
'',
'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.',
'*/'
].join('\n')

var probablyHasHeader = function (fileContent) {
Expand Down

0 comments on commit 32b520c

Please sign in to comment.