Lines Matching full:spdx

2 # SPDX-License-Identifier: GPL-2.0
47 # Read the spdx data from the LICENSES directory
55 spdx = SPDXdata()
66 if lid in spdx.licenses:
69 spdx.licenses.append(lid)
71 elif l.startswith('SPDX-Exception-Identifier:'):
73 spdx.exceptions[exception] = []
75 elif l.startswith('SPDX-Licenses:'):
77 if not lic in spdx.licenses:
79 spdx.exceptions[exception].append(lic)
83 if not len(spdx.exceptions[exception]):
84 … raise SPDXException(el, 'Exception %s is missing SPDX-Licenses' %exception)
85 spdx.exception_files += 1
87 spdx.license_files += 1
89 return spdx
100 def __init__(self, spdx): argument
101 self.spdx = spdx
133 if not id in self.spdx.licenses:
137 if id not in self.spdx.exceptions:
139 if self.lastid not in self.spdx.exceptions[id]:
208 if line.find("SPDX-License-Identifier:") < 0:
229 # Should we check for more SPDX ids in the same file and
330 ap = ArgumentParser(description='SPDX expression checker')
339 help='Show files without SPDX.')
355 # Initialize SPDX data
356 spdx = read_spdxdata(repo) variable
359 parser = id_parser(spdx)
410 sys.stderr.write('License files: %12d\n' %spdx.license_files)
411 sys.stderr.write('Exception files: %12d\n' %spdx.exception_files)
412 sys.stderr.write('License IDs %12d\n' %len(spdx.licenses))
413 sys.stderr.write('Exception IDs %12d\n' %len(spdx.exceptions))
420 sys.stderr.write('Files with SPDX: %12d %3d%%\n' %(parser.spdx_valid, pc))
423 sys.stderr.write('Files without SPDX:%12d %3d%%\n' %(missing, mpc))
434 sys.stderr.write('Incomplete directories: SPDX in Files\n')
445 sys.stderr.write('Files without SPDX:\n')