Add license checker script #26

Merged
mars merged 3 commits from license-checker into main 2022-11-03 02:36:51 +00:00
1 changed files with 4 additions and 0 deletions

4
check_licenses.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# Depends on: `rg` (ripgrep)
! rg --multiline --files-without-match --glob '*.rs' --pcre2 '(?<!\n)((//)|(#)) Copyright \(c\) \d+ [A-z, ]+\n((//)|(#)) SPDX-License-Identifier: .*\n'