Alix
Alix

Reputation: 2837

Default rule severity in SonarQube Web Service API?

Is there a way to get information about a rule's default severity (the one that is set by the language plugin) through the Web Service API?

Default rule severity

Upvotes: 0

Views: 160

Answers (1)

G. Ann - SonarSource Team
G. Ann - SonarSource Team

Reputation: 22824

Use the api/rules/search to get this data. You'll find the default severity in the "severity" field. To also get activated severity per profile, add activities to your f (field list) parameter value.

Upvotes: 1

Related Questions