-
Notifications
You must be signed in to change notification settings - Fork 2
Improve error reporting #30
Copy link
Copy link
Open
Description
Any problems found in the analysis run by the tool are stored as instances of unit_static_analyser.checker.errors.UnitCheckerError. The output for these is currently not formatted at all and we just print the __repr__ of the instances. This output could be more nicely formatted with the module name and line number where the error occurred. Most of the relevant information is already stored in the UnitCheckerError instance with the exception of the module name. This issue covers:
- Adding a
module_nameattribute toUnitCheckerError. - Extending the error factory functions in
unit_static_analyser.checker.errorsto take and store module names. - Updating all calls to error factories in
unit_static_analyser.checkerto passself.current_module_name. - Updating the printing of errors in
unit_static_analyser/__init__.pyto be nicely formatted with module name and line number. - Update the
assert_errorfunction intest_checker.pyto check that the module name is correctly specified.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels