Skip to content

No results with a severity of 'error' or higher found! #2156

@max-moritz

Description

@max-moritz

Describe the bug

Ok, this is nitpicking 😊 .... but ... error is the highest severity so or higher does not make sense in console output No results with a severity of 'error' or higher found!

To Reproduce

Run

spectral lint -r ruleset.yml api.yml --display-only-failures

where api.yml does not violate any rule defined in ruleset.yml with severity error (it may produce warn, info, hint results)

Expected behavior

No results with a severity of 'error' found!

Environment (remove any that are not applicable):

  • Library version: 6.3.0

Additional context

Generally, output should be one of:
No results with a severity of 'error' found!
No results with a severity of 'warn' or higher found!
No results with a severity of 'info' or higher found!
No results with a severity of 'hint' or higher found!

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions