Closed damiencarol closed 3 years ago
from sonarqube import SonarCloudClient
token = "..." sonar = SonarCloudClient(sonarcloud_url="https://sonarcloud.io", token=token) issues = sonar.issues.search_issues(componentKeys="...") for issue in issues: print(f"key: {issue['key']}") print(f"rule: {sonar.rules.get_rule(issue['rule'], organization)}")
hi, you miss "organization" param in the function get_rule.
ok. thanks.
This snippet:
Generate: