scripts/spdxcheck: Put excluded files and directories into a separate file
authorThomas Gleixner <tglx@linutronix.de>
Mon, 16 May 2022 10:27:29 +0000 (12:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 May 2022 13:34:33 +0000 (15:34 +0200)
commit0509b270a358fa563946368418f8e832d9b63452
treea147fa9928b8227e6357f9f2908ec0ac42af7d63
parent67924b71412cd965e0d1c55c0cddb0014c8a725b
scripts/spdxcheck: Put excluded files and directories into a separate file

The files and directories which are excluded from scanning are currently
hard coded in the script. That's not maintainable and not accessible for
external tools.

Move the files and directories which should be excluded into a file.  The
default file is scripts/spdxexclude. This can be overridden with the
'-e $FILE' command line option.

The file format and syntax is similar to the .gitignore file.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/spdxcheck.py
scripts/spdxexclude [new file with mode: 0644]