Lines Matching +full:stdout +full:- +full:path
2 # SPDX-License-Identifier: GPL-2.0
43 if not os.path.isfile(el.path):
47 for l in open(el.path).readlines():
48 if l.startswith('Valid-License-Identifier:'):
55 elif l.startswith('SPDX-Exception-Identifier:'):
59 elif l.startswith('SPDX-Licenses:'):
65 elif l.startswith("License-Text:"):
68 … raise SPDXException(el, 'Exception %s is missing SPDX-Licenses' %exception)
127 r'[A-Za-z.0-9\-+]+'
177 if line.find("SPDX-License-Identifier:") < 0:
184 if line.strip().endswith('-->'):
185 expr = expr.rstrip('-->').strip()
201 sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok))
203 sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, col, pe.txt))
210 if el.path.startswith("LICENSES"):
212 if el.path.find("license-rules.rst") >= 0:
214 if not os.path.isfile(el.path):
216 with open(el.path, 'rb') as fd:
217 parser.parse_lines(fd, args.maxlines, el.path)
219 def scan_git_subtree(tree, path): argument
220 for p in path.strip('/').split('/'):
227 …ap.add_argument('path', nargs='*', help='Check path or file. If not given full git tree scan. For …
228 ap.add_argument('-m', '--maxlines', type=int, default=15,
230 ap.add_argument('-v', '--verbose', action='store_true', help='Verbose statistics output')
233 # Sanity check path arguments
234 if '-' in args.path and len(args.path) > 1:
235 sys.stderr.write('stdin input "-" must be the only path argument\n')
251 sys.stderr.write('%s: %s\n' %(se.el.path, se.txt))
262 if len(args.path) and args.path[0] == '-':
264 parser.parse_lines(stdin, args.maxlines, '-')
266 if args.path:
267 for p in args.path:
268 if os.path.isfile(p):
270 elif os.path.isdir(p):
273 sys.stderr.write('path %s does not exist\n' %p)