diff options
Diffstat (limited to 'sonar-ws/src/main/protobuf/ws-commons.proto')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-commons.proto | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto index efd2fee3ca4..9a2b9ce836f 100644 --- a/sonar-ws/src/main/protobuf/ws-commons.proto +++ b/sonar-ws/src/main/protobuf/ws-commons.proto @@ -112,3 +112,15 @@ message Metric { optional string bestValue = 11; optional string worstValue = 12; } + +enum RuleType { + // Zero is required in order to not get MAINTAINABILITY as default value + // See http://androiddevblog.com/protocol-buffers-pitfall-adding-enum-values/ + UNKNOWN = 0; + + // same name as in Java enum IssueType, + // same index values as in database (see column ISSUES.ISSUE_TYPE) + CODE_SMELL = 1; + BUG = 2; + VULNERABILITY = 3; +} |