File: has-mix-of-ids.txt

package info (click to toggle)
golang-github-spdx-tools-golang 0.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,252 kB
  • sloc: xml: 428; makefile: 22; ansic: 5; python: 2
file content (12 lines) | stat: -rw-r--r-- 312 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
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.