Merge pull request 'Add license checker script' (#26) from license-checker into main

Reviewed-on: #26
This commit is contained in:
mars 2022-11-03 02:36:50 +00:00
commit 0da4c7d900
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'