MCPcopy Create free account
hub / github.com/django/code.djangoproject.com / CMD_LINT

Function CMD_LINT

traccheck.py:234–243  ·  view source on GitHub ↗
(env, options)

Source from the content-addressed store, hash-verified

232
233
234def CMD_LINT(env, options):
235 errors = env.get_lint_errors()
236 if errors:
237 printerr(f"Found {len(errors)} error{'s' if len(errors)>1 else ''}:")
238 for component, error in errors:
239 printerr(error, component, sep="\t")
240 return 1
241
242 printerr("No errors found, congrats")
243 return 0
244
245
246def CMD_COMPONENTS(env, options):

Callers

nothing calls this directly

Calls 1

get_lint_errorsMethod · 0.45

Tested by

no test coverage detected