File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ for fn in $(find . -type f \( \
9
9
-name " *.scss" -o \
10
10
! -name " *.min.js" \
11
11
-name " *.js" \) \
12
+ ! -path " ./.cache*" \
12
13
! -path " ./.state*" \
14
+ ! -path " ./.venv*" \
13
15
! -path " ./docs*" \
14
16
! -path " ./htmlcov*" \
15
17
! -path " ./node_modules*" \
@@ -18,7 +20,7 @@ for fn in $(find . -type f \( \
18
20
! -path " ./warehouse/static/html*" \
19
21
! -path " ./warehouse/static/js/vendor*" ) ; do
20
22
# Check for license in first 5 lines (allows for shebang, encoding and handles comment character in various languages)
21
- if [[ ! " $( head -5 $fn | grep " ^ *\(#\|\*\|\/\/\) .* License\(d*\) " ) " ]]; then
23
+ if [[ ! " $( head -5 $fn | grep " ^ *\(#\|\*\|\/\/\|\/\*\|{#\).*License " ) " ]]; then
22
24
echo $fn is missing a license
23
25
EXIT_CODE=1
24
26
fi
Original file line number Diff line number Diff line change @@ -34,17 +34,7 @@ Every code file must start with the boilerplate licensing notice:
34
34
35
35
.. code-block :: python
36
36
37
- # Licensed under the Apache License, Version 2.0 (the "License");
38
- # you may not use this file except in compliance with the License.
39
- # You may obtain a copy of the License at
40
- #
41
- # http://www.apache.org/licenses/LICENSE-2.0
42
- #
43
- # Unless required by applicable law or agreed to in writing, software
44
- # distributed under the License is distributed on an "AS IS" BASIS,
45
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
46
- # See the License for the specific language governing permissions and
47
- # limitations under the License.
37
+ # SPDX-License-Identifier: Apache-2.0
48
38
49
39
You can view :doc: `patterns ` to see more patterns that should be used within
50
40
Warehouse.
You can’t perform that action at this time.
0 commit comments