I am trying to add a custom rule for my python code where i need to scan logging statements containing payload values in the submodules. These values are present in the submodule which in separate scm repository and it is used via .gitmodules . I am able to see the submodule in the code tab of the sonarqube project.
logging.info(payload)
I need the rule to scan above line and provide below suggestion
logging.info(json.dumps(payload))
. I tried creating by selecting rules and filtering with python profile and provided the details in the description and ran the analysis but it is not working …
I have also provided sonar.scm.exclusions.disabled=true.
Am I missing any steps here ?
I am not able to provide the complete implementation as it is confidential.