File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
- id : check-yaml
6
6
- id : check-toml
7
7
- repo : https://github.com/Lucas-C/pre-commit-hooks
8
- rev : v1.3.1
8
+ rev : v1.4.2
9
9
hooks :
10
10
- id : insert-license
11
11
files : \.rs$
14
14
- scripts/license-header.txt
15
15
- --comment-style
16
16
- //
17
+ - --use-current-year
17
18
- repo : local
18
19
hooks :
19
20
- id : cargo-sort
24
25
types : [file, toml]
25
26
files : Cargo\.toml
26
27
pass_filenames : false
27
-
Original file line number Diff line number Diff line change 4
4
5
5
for i in $( git ls-files --exclude-standard | grep " \.rs" ) ; do
6
6
# first line -> match -> print line -> quit
7
- matches=$( sed -n " 1{/Copyright [0-9]\{4\} CeresDB Project Authors. Licensed under Apache-2.0./p;};q;" $i )
7
+ matches=$( sed -n " 1{/CeresDB Project Authors. Licensed under Apache-2.0./p;};q;" $i )
8
8
if [ -z " ${matches} " ]; then
9
9
echo " License header is missing from $i ."
10
10
exit 1
Original file line number Diff line number Diff line change 1
- Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0.
1
+ Copyright 2023 CeresDB Project Authors. Licensed under Apache-2.0.
You can’t perform that action at this time.
0 commit comments