rspec/rules/S109/how-to-fix-it.adoc
Rudy Regazzoni bc15ffe77e
Modify S109: Migrate To LayC (#3235)
## Review

A dedicated reviewer checked the rule description successfully for:

- [x] logical errors and incorrect information
- [x] information gaps and missing content
- [x] text style and tone
- [x] PR summary and labels follow [the
guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
2023-10-11 13:58:56 +02:00

5 lines
235 B
Plaintext

== How to fix it
Replacing them with a constant allows us to provide a meaningful name associated with the value.
Instead of adding complexity to the code, it brings clarity and helps to understand the context and the global meaning.