git-afsantos / haros

H(igh) A(ssurance) ROS - Static analysis of ROS application code.
MIT License
190 stars 37 forks source link

Implement fine-grained control over the exported issues #51

Closed git-afsantos closed 5 years ago

git-afsantos commented 5 years ago

As per the meeting today with @wasowski and @gavanderhoorn, we have decided that HAROS needs customisable control over what issues are exported after the analysis takes place.

The implementation of this feature will be composed of three smaller features.

  1. Blacklisting individual rules by their unique id. This specification should be done in the settings YAML file, within ~/.haros. At a later stage, this might also be customisable in each project's YAML.

  2. Blacklisting rules by tag. This should also be specified in the settings file.

  3. Ignoring specific lines in the source file. Many tools allow users to write special comments or annotations in the source, so that the analysis ignores certain lines of the source file. HAROS should implement the same kind of annotations, but make them applicable to all plugins.

git-afsantos commented 5 years ago

Not particularly proud of the PR, but it solves the issue, while avoiding compatibility issues.