lookout.style.format.cmdline_tools¶
Command line utilities to check the quality of a model on a given dataset, visualize errors, etc.
Module Contents¶
-
lookout.style.format.cmdline_tools.add_input_pattern_arg(my_parser:ArgumentParser)¶ Add an input pattern argument to an argpase parser.
Parameters: my_parser – Parser to add the argument to.
-
lookout.style.format.cmdline_tools.add_model_args(my_parser:ArgumentParser)¶ Add arguments to specify model path and language.
Parameters: my_parser – Parser to add the arguments to.
-
lookout.style.format.cmdline_tools.add_bblfsh_arg(my_parser:ArgumentParser)¶ Add an argument to specify the babelfish server connection address.
Parameters: my_parser – Parser to add the argument to.
-
lookout.style.format.cmdline_tools.add_rules_thresholds(my_parser:ArgumentParser)¶ Add threshold arguments to filter rules.
Parameters: my_parser – Parser to add the arguments to.
-
lookout.style.format.cmdline_tools.add_config_arg(my_parser:ArgumentParser)¶ Add analyzer config argument.
Parameters: my_parser – Parser to add the arguments to.
-
lookout.style.format.cmdline_tools.dump_rule_entry(model, hash)¶ Command-line entry for “tool rule”.
-
lookout.style.format.cmdline_tools.create_parser()¶ Create a parser for the lookout.style.format utility.
Returns: an ArgumentParser with an handler defined in the handler attribute.
-
lookout.style.format.cmdline_tools.main()¶ Entry point of the utility.