Skip to content

Commit

Permalink
Upgrade license-check-and-add to 4.0.5 (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Masahiro Sakamoto authored Oct 30, 2023
1 parent 325853d commit 40c7624
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 286 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18

- name: Run Test
run: |
./tests/run-unit-tests.sh
- name: Check license headers
run: |
npm run license:checkheader
validation-yarn:
name: Validation use yarn install
Expand Down
43 changes: 43 additions & 0 deletions license-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"license": "license-header.txt",
"trailingWhitespace": "TRIM",
"ignoreFile": ".gitignore",
"ignore": [
"NOTICE",
"**/*.txt",
"**/*.bat",
"**/*.pem",
"**/*.key",
"**/*.crt"
],
"defaultFormat": {
"prepend": "#",
"eachLine": {
"prepend": "# "
},
"append": "#"
},
"licenseFormats": {
"c|cc|cpp|h|hpp|js|ts|css": {
"prepend": "/**",
"eachLine": {
"prepend": " * "
},
"append": " */"
},
"conf|gitignore|npmignore|eslintignore|sh|py|yml|yaml": {
"prepend": "#",
"eachLine": {
"prepend": "# "
},
"append": "#"
},
"html|xml|md": {
"prepend": "<!--\n",
"eachLine": {
"prepend": " "
},
"append": "\n-->"
}
}
}
Loading

0 comments on commit 40c7624

Please sign in to comment.