question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignoring multiple rules id in zally

See original GitHub issue

I am evaluating the Zally tool and was wondering if we have some sort of regex to ignore the multiple rules at once?

I know I can have the rules ids specified in the ignoreRules attribute like below but this list will keep on increasing if I add some around 30 to 40 rules to be ignored.

# rules to be ignored system wide by default
# 115 - NoVersionInUriRule.kt
# 129 - KebabCaseInPathSegmentsRule.kt
ignoreRules: M008, M009, M010, M011, H001, H002, S005, S006, S007, 115, 129

Also as per the documentation this flag sets the ignore rule for the whole application? Is there any way through which I can give the rules-id in the client request? Maybe something from the front end which I can add? Any help would be greatly appreciated.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jcolladospcommented, Nov 25, 2021

@beena-yatin-kanyal

curl -X \
POST 'http://localhost:8080/api-violations' \
--header 'Content-Type: application/json' \
--data-raw '{
    "api_definition_string": "https://petstore.swagger.io/v2/swagger.json",
    "ignore_rules": ["218",...]
}'

You can see the api specification here: https://github.com/zalando/zally/blob/master/server/zally-server/src/main/resources/api/zally-api.yaml

0reactions
vadegcommented, Oct 9, 2022

Closing it for now. Feel free to reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

x-zally-ignore doesn't work for some rules · Issue #799 - GitHub
Have been getting tied in knots trying to remember how x-zally-ignore is processed. I've got per-path x-zally-ignore working for rules 134 ...
Read more >
zalando/zally - Gitter
seems I'm out of practice with Zally dev - forgetting issue ids on commits AND pushing without a local ktlint check - sorry...
Read more >
server/src/test/resources/fixtures/api_spp_ignored_rules.json ...
api_spp_ignored_rules.json ; 1. { ; 2. "x-zally-ignore": ["TestCheckApiNameIsPresentJsonRule", "TestCheckApiNameIsPresentRule"], ; 3 ; 4. "swagger": "2.0", ; 5. " ...
Read more >
zally | A minimalistic, simple-to-use API linter
Its standard configuration will check your APIs against the rules defined in ... x-zally-ignore extension in your API definition, you can disable rules...
Read more >
Zally Concepts - GitHub Pages
Zally Concepts. Rule Set. A Rule Set is a bundle or a package of rules. ... @Rule( ruleSet = ZalandoRuleSet::class, id = "150",...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found