Could you provide a screenshot of the warning? I searched our codebase for the phrase “avoid constant literals” but didn’t find any results—we typically refer to this as “No magic numbers.” I want to verify that this warning is actually from SonarQube in the IDE!
Colin
(Colin)
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| @SuppressWarnings does not work with a constant | 4 | 1696 | April 5, 2022 | |
| @SuppressWarnings with String constants form other classes not working | 5 | 1785 | May 4, 2023 | |
| [Lint] Suppress redundant rules for IDE | 3 | 715 | November 4, 2020 | |
| Different results for SonarLint 4.1.0 vs. SonarCFamily 6.1 plugin | 9 | 1716 | April 11, 2019 | |
| SonarLint Eclipse Plugin Configuration | 1 | 1166 | October 4, 2022 |