Let Konsist checks the license header

This commit is contained in:
Benoit Marty 2024-06-27 15:55:57 +02:00 committed by Benoit Marty
parent 92db08909c
commit 4047f4395d
3 changed files with 86 additions and 18 deletions

View file

@ -197,9 +197,7 @@ performance:
# Note: all rules for `comments` are disabled by default, but I put them here to be aware of their existence
comments:
AbsentOrWrongFileLicense:
active: true
licenseTemplateFile: 'license.template'
licenseTemplateIsRegex: true
active: false
CommentOverPrivateFunction:
active: false
CommentOverPrivateProperty:

View file

@ -1,15 +0,0 @@
\/\*
(?:.*\n)* \* Copyright \(c\) 20\d\d New Vector Ltd
(?:.*\n)* \*
\* 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(?:s)?:\/\/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\.
\*\/