rspec/rules/S1192/azureresourcemanager/exceptions-arm.adoc
Marcin Stachniuk def7b6c0ee
SONARIAC-1429 S1192: String literals should be raised less often (#3903)
* SONARIAC-1429 S1192: String literals should be raised less often

* Code review remarks

Co-authored-by: Peter Trifanov <peter.trifanov@sonarsource.com>

---------

Co-authored-by: Peter Trifanov <peter.trifanov@sonarsource.com>
2024-04-23 11:00:18 +02:00

10 lines
374 B
Plaintext

The following are ignored:
* literals with fewer than 5 characters
* literals with only letters, numbers, underscores, hyphens and periods
* `apiVersion` property of a resource (see rule S6874)
* `type` in nested templates
* `$schema` property
* version numbers like `1.0.0` or `1-0-0`
* escaped template expressions starting with `[[`, like `[[variables('variableName')]`