def cli(ctx, path, **kwds): """Check specified tool(s) for common errors and adherence to best practices. """ lint_args = build_lint_args(**kwds) exit = lint_tools_on_path(ctx, path, lint_args) sys.exit(exit)
def cli(ctx, paths, **kwds): """Check specified tool(s) for common errors and adherence to best practices. """ lint_args = build_lint_args(ctx, **kwds) exit = lint_tools_on_path( ctx, paths, lint_args, recursive=kwds["recursive"] ) sys.exit(exit)
def cli(ctx, uris, **kwds): """Check for common errors and best practices.""" lint_args = build_tool_lint_args(ctx, **kwds) exit_code = lint_tools_on_path(ctx, uris, lint_args, recursive=kwds["recursive"]) # TODO: rearchitect XUnit. # if kwds['urls']: # collected_data, url_exit_code = check_urls(ctx, paths, **kwds) # if kwds.get('report_xunit', False): # with open(kwds['report_xunit'], 'w') as handle: # handle.write(build_report.template_data( # collected_data, template_name='xunit.tpl')) ctx.exit(exit_code)
def cli(ctx, paths, **kwds): """Check tools for common errors and adherence to best practices.""" lint_args = build_lint_args(ctx, **kwds) exit_code = lint_tools_on_path( ctx, paths, lint_args, recursive=kwds["recursive"] ) # TODO: rearchitect XUnit. # if kwds['urls']: # collected_data, url_exit_code = check_urls(ctx, paths, **kwds) # if kwds.get('report_xunit', False): # with open(kwds['report_xunit'], 'w') as handle: # handle.write(build_report.template_data( # collected_data, template_name='xunit.tpl')) ctx.exit(exit_code)