- ALM used: GitHub
- CI system used: Travis CI
- Languages of the repository: Python
Hi, I am using SonarCloud on an open source project.
The unit tests include parameterized tests with several arbitrary IP addresses as parameter.
SonarCloud is correctly reporting “Using hardcoded IP addresses is security-sensitive” as a security hotspot for these tests, but I would like to suppress these findings for files tests/test_*.py.
According to the docs I found two ways to achieve this, but I am struggeling to implement them:
-
Administration -> General Settings -> Analysis Scope -> Ignore Issues on Multiple Criteria
Issue persisting: How do I identify the Rule Key for the given rule? -
Define a new profile in Administration -> Quality Profiles
Issue persisting: I can’t create a new profile. I only have drop down boxes to chose a profile, but they only contain the defautl profile “Sonar way”.
Any hints wold be appreciated.
Thx,
stdtom