Skip to content

Commit

Permalink
chore: add dep and NPM script to check and fix license in files
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanmaisse committed Mar 11, 2021
1 parent b32e376 commit 39b2fe7
Show file tree
Hide file tree
Showing 4 changed files with 548 additions and 566 deletions.
13 changes: 13 additions & 0 deletions LICENSE_TEMPLATE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright (C) ###[0-9]{4}### The Gravitee team (http://gravitee.io)

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

http://www.apache.org/licenses/LICENSE-2.0

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.
44 changes: 44 additions & 0 deletions license-check-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"ignore": [
"*",
"node/**",
"node_modules/**",
"**/*.svg",
"storybook-static/**",
"wc/**",
"docs/**",
"docker/**",
"index.js",
"src/index.js",
"**/*.generated.*",
"coverage/**",
"dist/**",
".*/**",
"**/.DS_Store",
"**/Thumbs.db",
"**/*.adoc",
"assets/css/github-markdown-css/**",
"assets/css/highlight.js/**",
"assets/css/codemirror/**",
"assets/css/asciidoctor/**"
],
"license": "LICENSE_TEMPLATE.txt",
"licenseFormats": {
"js|ts|css|scss|less|php|as|c|java|cpp|go|cto|acl": {
"prepend": "/*",
"append": " */",
"eachLine": {
"prepend": " * "
}
},
"txt": {}
},
"defaultFormat": {
"prepend": "/*",
"append": " */",
"eachLine": {
"prepend": " * "
}
},
"regexIdentifier": "###"
}
Loading

0 comments on commit 39b2fe7

Please sign in to comment.