diff options
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/project4/has-id-to-ignore.txt | 8 | ||||
-rw-r--r-- | testdata/project4/has-id.txt | 3 | ||||
-rw-r--r-- | testdata/project4/has-mix-of-ids.txt | 12 |
3 files changed, 23 insertions, 0 deletions
diff --git a/testdata/project4/has-id-to-ignore.txt b/testdata/project4/has-id-to-ignore.txt new file mode 100644 index 0000000..bd63676 --- /dev/null +++ b/testdata/project4/has-id-to-ignore.txt @@ -0,0 +1,8 @@ +this file actually contains some code talking about IDs, and should be ignored + +if file.contains("SPDX-License-Identifier: GPL-2.0") { + // do something... + +} + +We don't want to pick up that line as the short-form ID for this file. diff --git a/testdata/project4/has-id.txt b/testdata/project4/has-id.txt new file mode 100644 index 0000000..5545f2c --- /dev/null +++ b/testdata/project4/has-id.txt @@ -0,0 +1,3 @@ +// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + +somebody was kind enough to stick an spdx short-form ID in here diff --git a/testdata/project4/has-mix-of-ids.txt b/testdata/project4/has-mix-of-ids.txt new file mode 100644 index 0000000..b6aa5d1 --- /dev/null +++ b/testdata/project4/has-mix-of-ids.txt @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: MIT + +the short-form ID above is correct, and should be picked up. + +the following code is talking about IDs, and should be ignored + +if file.contains("SPDX-License-Identifier: GPL-2.0") { + // do something... + +} + +We don't want to pick up that line as the short-form ID for this file. |