Skip to content

Commit 80a86ed

Browse files
authored
pre-commit: add insert-license hook for JavaScript files (#410)
https://github.com/Lucas-C/pre-commit-hooks
1 parent cff93b0 commit 80a86ed

23 files changed

+14902
-0
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ repos:
2323
- --license-filepath
2424
- license-templates/LICENSE.txt
2525
- --fuzzy-match-generates-todo
26+
- id: insert-license
27+
name: Add license for all JavaScript files
28+
files: \.js$
29+
args:
30+
- --comment-style
31+
- '/*!| *| */'
32+
- --license-filepath
33+
- license-templates/LICENSE.txt
34+
- --fuzzy-match-generates-todo
2635
- id: forbid-tabs
2736
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
2837
- id: remove-tabs

tmp/js/src/cli/commands/help.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/cli/commands/run.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/cli/commands/version.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/cli/index.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/cli/io/file.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/cli/io/index.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/generator/commands/expression.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/generator/commands/for.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

tmp/js/src/generator/commands/function.js

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)