2015-11-30 16 views
0

我有我有一些項目的具體設置創建一個插件:Sonarqube插件開發,項目設置命令

@Property(
     key = MyPlugin.SEV1, 
     name = "SEVERITY 1", 
     description = "Severity 1", 
     defaultValue = "Blocker", 
     global = false, 
     project = true), 
@Property(
     key = MyPlugin.SEV2, 
     name = "SEVERITY 2", 
     description = "Severity 2", 
     defaultValue = "Critical", 
     global = false, 
     project = true), 

.... 
.... 

@Property(
     key = MyPlugin.SEV10, 
     name = "SEVERITY 10", 
     description = "Severity 10", 
     defaultValue = "Info", 
     global = false, 
     project = true), 

這些節目在順序Web界面:

嚴重性1

SEVERITY 10

SEVERITY 2

有沒有方式重新排序/強制命令設置顯示爲而不是按字母順序?我注意到一些標準設置頁面似乎實現了這一點。

感謝

+0

已經回答了在開發谷歌組:https://groups.google.com/forum/#!searchin/sonarqube/PropertyDefinition/sonarqube/HwF0uQIbBfU/K8YVdZTUIAAJ –

回答