diff --git a/sonar-project.properties b/sonar-project.properties index 923aea25..c0b5d474 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -12,3 +12,11 @@ sonar.python.version=3.12 sonar.newCode.referenceBranch=main sonar.exclusions=tests/**,.tox/** + +# Ansible module argument_spec is conventionally defined with the dict(...) +# constructor (not {...} literals) for readability and consistency across the +# collection. Suppress python:S7498 ("prefer literal syntax"), which conflicts +# with that convention and otherwise re-fires on every new module argument. +sonar.issue.ignore.multicriteria=e1 +sonar.issue.ignore.multicriteria.e1.ruleKey=python:S7498 +sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.py