stan icon indicating copy to clipboard operation
stan copied to clipboard

Various grouping options for Observations

Open vrom911 opened this issue 5 years ago • 1 comments

Currently, we group Observations by filepath for the console output. However, it is not the only possible option. User can be interested in e.g. Severity grouping, or Category grouping as well.

We need to come up with a strategy to extend current settings.

vrom911 avatar Apr 13 '20 16:04 vrom911

@vrom911 I think we will have an enum that defines all grouping options. Something like:

data GroupBy
    = ByModule
    | ByCategory
    | ByInspection

and then we will define separate functions that will perform appropriate grouping and header printing.

chshersh avatar Apr 19 '20 13:04 chshersh