@@ -245,7 +245,7 @@ public class SearchAction implements IssuesWsAction { | |||
.setBooleanPossibleValues(); | |||
action.createParam(PARAM_RULES) | |||
.setDescription("Comma-separated list of coding rule keys. Format is <repository>:<rule>") | |||
.setExampleValue("squid:AvoidCycles"); | |||
.setExampleValue("java:S1144"); | |||
action.createParam(PARAM_TAGS) | |||
.setDescription("Comma-separated list of tags.") | |||
.setExampleValue("security,convention"); |
@@ -71,7 +71,7 @@ public class DeactivateRuleAction implements QProfileWsAction { | |||
deactivate.createParam(PARAM_RULE) | |||
.setDescription("Rule key") | |||
.setRequired(true) | |||
.setExampleValue("squid:AvoidCycles"); | |||
.setExampleValue("java:S1144"); | |||
} | |||
@Override |
@@ -65,7 +65,7 @@ public class DeleteAction implements RulesWsAction { | |||
.createParam(PARAM_KEY) | |||
.setDescription("Rule key") | |||
.setRequired(true) | |||
.setExampleValue("squid:XPath_1402065390816"); | |||
.setExampleValue("java:S1144"); | |||
} | |||
@Override |
@@ -60,7 +60,7 @@ public class RepositoriesAction implements RulesWsAction { | |||
action.createParam(Param.TEXT_QUERY) | |||
.setDescription("A pattern to match repository keys/names against") | |||
.setExampleValue("squid"); | |||
.setExampleValue("java"); | |||
action.createParam(LANGUAGE) | |||
.setDescription("A language key; if provided, only repositories for the given language will be returned") | |||
.setExampleValue("java"); |
@@ -101,12 +101,12 @@ public class RuleWsSupport { | |||
action | |||
.createParam(PARAM_RULE_KEY) | |||
.setDescription("Key of rule to search for") | |||
.setExampleValue("squid:S001"); | |||
.setExampleValue("java:S1144"); | |||
action | |||
.createParam(PARAM_REPOSITORIES) | |||
.setDescription("Comma-separated list of repositories") | |||
.setExampleValue("checkstyle,findbugs"); | |||
.setExampleValue("java,html"); | |||
action | |||
.createParam(PARAM_SEVERITIES) |
@@ -21,7 +21,7 @@ | |||
{"key": "javascript", "name": "SonarQube", "language": "js"}, | |||
{"key": "objc", "name": "SonarQube", "language": "objc"}, | |||
{"key": "php", "name": "SonarQube", "language": "php"}, | |||
{"key": "squid", "name": "SonarQube", "language": "java"}, | |||
{"key": "java", "name": "SonarQube", "language": "java"}, | |||
{"key": "stylecop", "name": "StyleCop", "language": "cs"} | |||
] | |||
} |
@@ -35,7 +35,7 @@ | |||
"tokensCount": 3, | |||
"local": false, | |||
"externalIdentity": "sbrandhof@ldap.com", | |||
"externalProvider": "LDAP", | |||
"externalProvider": "sonarqube", | |||
"avatar": "3930ad855bc7fe48db8e9a663174cdd3" | |||
} | |||
] |
@@ -353,7 +353,7 @@ public class SearchActionTest { | |||
UserDto simon = db.users().insertUser(u -> u.setLogin("sbrandhof").setName("Simon").setEmail("s.brandhof@company.tld") | |||
.setLocal(false) | |||
.setExternalLogin("sbrandhof@ldap.com") | |||
.setExternalIdentityProvider("LDAP") | |||
.setExternalIdentityProvider("sonarqube") | |||
.setScmAccounts(asList("simon.brandhof", "s.brandhof@company.tld"))); | |||
GroupDto sonarUsers = db.users().insertGroup("sonar-users"); | |||
GroupDto sonarAdministrators = db.users().insertGroup("sonar-administrators"); |
@@ -1,9 +1,9 @@ | |||
{"more": false, "total": 1, | |||
"results": [ | |||
{ | |||
"key": "squid:AvoidCycle", | |||
"repository": "squid", | |||
"name": "Avoid cycle", | |||
"key": "java:S1144", | |||
"repository": "java", | |||
"name": "Unused \"private\" methods should be removed", | |||
"language": "Java", | |||
"status": "READY", | |||
"debtCharacteristic": "REUSABILITY", |