diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2022-05-16 12:27:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-18 15:34:33 +0200 |
commit | 0509b270a358fa563946368418f8e832d9b63452 (patch) | |
tree | a147fa9928b8227e6357f9f2908ec0ac42af7d63 /scripts/spdxexclude | |
parent | 67924b71412cd965e0d1c55c0cddb0014c8a725b (diff) |
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>
Diffstat (limited to 'scripts/spdxexclude')
-rw-r--r-- | scripts/spdxexclude | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/spdxexclude b/scripts/spdxexclude new file mode 100644 index 000000000000..5b30fe246197 --- /dev/null +++ b/scripts/spdxexclude @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Patterns for excluding files and directories + +# Ignore the license directory and the licensing documentation which would +# create lots of noise for no value +LICENSES/ +license-rules.rst |