Add regex to license check

This commit is contained in:
Yarmo Mackenbach 2022-02-25 11:30:09 +01:00
parent b666f281e4
commit 5634f7e0ec
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
5 changed files with 17 additions and 41 deletions

View file

@ -1,30 +1,3 @@
# Copyright (C) 2021 Yarmo Mackenbach
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Also add information on how to contact you by electronic and paper mail.
#
# If your software can interact with users remotely through a computer network,
# you should also make sure that it provides a way for users to get its source.
# For example, if your program is a web application, its interface could display
# a "Source" link that leads users to an archive of the code. There are many
# ways you could offer source, and different solutions will be better for different
# programs; see section 13 for the specific requirements.
#
# You should also get your employer (if you work as a programmer) or school,
# if any, to sign a "copyright disclaimer" for the program, if necessary. For
# more information on this, and how to apply and follow the GNU AGPL, see <https://www.gnu.org/licenses/>.
**/\.git **/\.git
**/*.md **/*.md
@ -33,10 +6,12 @@
**/*.env **/*.env
**/*.pug **/*.pug
\.drone\.yml
package.json package.json
package-lock.json yarn.lock
yarn\.lock robots.txt
robots\.txt \.licenseignore
\.drone.yml
\.editorconfig \.editorconfig
Dockerfile \.envrc
shell.nix
Dockerfile

View file

@ -1,4 +1,4 @@
Copyright (C) 2021 Yarmo Mackenbach Copyright (C) ##[0-9]{4}## ##[a-zA-Z0-9\s]+##
This program is free software: you can redistribute it and/or modify it under This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free the terms of the GNU Affero General Public License as published by the Free

View file

@ -1,5 +1,5 @@
{ {
"ignore": ".licenseignore", "ignoreFile": ".licenseignore",
"license": "LICENSE.HEADER", "license": "LICENSE.HEADER",
"licenseFormats": { "licenseFormats": {
"php": { "php": {
@ -9,10 +9,11 @@
"prepend": "// " "prepend": "// "
} }
}, },
"dotfile|licenseignore|gitignore|yml": { "dotfile|yml": {
"eachLine": { "eachLine": {
"prepend": "# " "prepend": "# "
} }
} }
} },
"regexIdentifier": "##"
} }

View file

@ -21,7 +21,7 @@
"string-replace-middleware": "^1.0.2" "string-replace-middleware": "^1.0.2"
}, },
"devDependencies": { "devDependencies": {
"license-check-and-add": "^3.0.4", "license-check-and-add": "^4.0.3",
"nodemon": "^2.0.7" "nodemon": "^2.0.7"
}, },
"scripts": { "scripts": {

View file

@ -2793,10 +2793,10 @@ libravatar@^3.0.0:
resolved "https://registry.npmjs.org/libravatar/-/libravatar-3.0.0.tgz" resolved "https://registry.npmjs.org/libravatar/-/libravatar-3.0.0.tgz"
integrity sha512-GAr2zj0toWHLMrVOkmn+TyudU9QX2kvHIxLZwmz7mT6Q6IrhVCAnN+3MFLAULf2w9XZe0NKOr5V5XRKgLRm5Eg== integrity sha512-GAr2zj0toWHLMrVOkmn+TyudU9QX2kvHIxLZwmz7mT6Q6IrhVCAnN+3MFLAULf2w9XZe0NKOr5V5XRKgLRm5Eg==
license-check-and-add@^3.0.4: license-check-and-add@^4.0.3:
version "3.0.5" version "4.0.3"
resolved "https://registry.npmjs.org/license-check-and-add/-/license-check-and-add-3.0.5.tgz" resolved "https://registry.yarnpkg.com/license-check-and-add/-/license-check-and-add-4.0.3.tgz#c941288563da412c0dbdad2af3bea8485e4d0b62"
integrity sha512-+mg2fBZanV/OGioub4EKvQyMaTjcsV+oSj85uQPdiBOtSVnn1CcL8d/sPvnmRyApdz7PXQMzM1H4QKqJsCJN3g== integrity sha512-2dFjAOviPmukS35Udy+D1fNnWeGbJaIfOM/fstsYlofnviyDJDSx1w++nStyxFffa2R9RIB0myH3Pvxv0q7jWA==
dependencies: dependencies:
fs-extra "^8.1.0" fs-extra "^8.1.0"
gitignore-to-glob "^0.3.0" gitignore-to-glob "^0.3.0"