We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6009d33 commit 1f0f101Copy full SHA for 1f0f101
1 file changed
tools/git/hooks/pre-commit
@@ -197,6 +197,17 @@ run_lint() {
197
fi
198
199
200
+ # Lint license headers...
201
+ files=$(echo "${changed_files}" | tr '\n' ' ')
202
+ if [[ -n "${files}" ]]; then
203
+ make FILES="${files}" lint-license-headers-files > /dev/null >&2
204
+ if [[ "$?" -ne 0 ]]; then
205
+ echo '' >&2
206
+ echo 'License header lint errors.' >&2
207
+ return 1
208
+ fi
209
210
+
211
# TODO: if datapackage.json, validate via schema
212
213
return 0
0 commit comments