Unity-Technologies / ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
Other
806 stars 66 forks source link

Arbitrary groups support #91

Closed mtrive closed 2 years ago

mtrive commented 2 years ago

Problem Each reported issue must have a ProblemDescriptor associated with it. This was a requirement, early on, when Project Auditor focused on diagnostics but nowadays, this concept does not apply to all reported issues. In fact, Project Auditor is both a diagnostic as well as general-purpose reporting tool.

The second problem related to descriptors is that they are used to group issues. Unfortunately this is very limiting. It is not possibly to group issues by a different criteria such as filename, area, assembly name or any other arbitrary property.

Solution This PR removes the need to specify a descriptor when an issue is created. In addition, it introduces a feature that allows the user to group issues by any of the properties of the issue. This implemented using a new dropdown selection:

group-desc

Here are a couple of example that were not possible before: group-by-filename

group-by-assembly