Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 1b0eb74

Browse files
authored
Merge pull request #159 from mobify/update-copyright-error-message
Update copyright tool's lint failure message
2 parents 66e43fb + 44876a9 commit 1b0eb74

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## To be released
2+
- Provided more detailed linting error message in copyright header tool
3+
14
## v2.8.1 (May 8, 2017)
25
- Fixes whitespace / newline management in copyright tool
36
- Fix to additional space added when --update flag passed into copyright tool

copyright/copyright.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ args
152152
})
153153

154154
if (error) {
155-
console.log(`${red}${blackBG}ERROR${defaultBG} - Please run the copyright headers tool in this project`)
155+
console.log(`${red}${blackBG}ERROR${defaultBG} - Some source files are missing copyright headers. Please run 'copyright --fix' on these files. Mobify projects are configured with an npm run task named 'copyright:fix' that you can use to do this.`)
156156
process.exit(1)
157157
} else {
158158
console.log(`${cyan}Copyright headers are present in target files`)
159-
}
159+
}

0 commit comments

Comments
 (0)