Skip to content

Display Only Unique Warnings/Errors w/ File Count #295

@bendhouseart

Description

@bendhouseart

Putting this here before I forget, but came across an older dataset that is valid, but with the improvements to the validator now displays itself as having 10's of thousands of warnings. I'm thinking something like this for the json output for starters:

{
    "code": "SIDECAR_KEY_RECOMMENDED",
    "subCode": "GradientSetType",
    "severity": "warning",
    "rule": "rules.sidecars.mri.MRIHardware",
    "issueMessage": "Field description: It should be possible to infer the gradient coil from the scanner model.\nIf not, for example because of a custom upgrade or use of a gradient\ninsert set, then the specifications of the actual gradient coil should be\nreported independently.\n",
    "count": 620
}

I feel like the count is a bit less intimidating than a terminal screaming at you 620 times.

Mostly putting this here so I don't forget about it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions