Skip to content

JSON Path as ignore rules? #716

@danie1k

Description

@danie1k

Hi!
If I understand correctly current behavior of Ignoring Violations, an explicit path to a component needs to be given.
It's later compared literally, in the code, if I read code correctly:

for _, i := range ignored[r.Rule.Id] {
// Check if the single Path matches
if r.Path == i {
found = true

In my project I have quite a lot of ignore rules to set.

Can this behavior be upgraded, so a valid JSON Path can be given as ignore rule and then evaluated in the code as such?
That would be useful especially because of the wildcard selector [*] (https://www.rfc-editor.org/rfc/rfc9535.html#name-wildcard-selector)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions