import java.util.Set;
/**
+ * Issue filter used to ignore issues created on lines commented with the tag "NOSONAR".
+ * <p/>
+ * Plugins, via {@link org.sonar.api.BatchExtension}s, must feed this filter by registering the
+ * lines that contain "NOSONAR". Note that filters are disabled for the issues reported by
+ * end-users from UI or web services.
+ *
* @since 3.6
*/
public class NoSonarFilter implements IssueFilter {
*/
public interface RubyIssueService extends ServerComponent {
+ /**
+ * Search for an issue by its key.
+ * <p/>
+ * Ruby example: {@code Api.issues.find('ABCDE-12345')}
+ */
IssueQueryResult find(String issueKey);
/**
* Search for issues.
* <p/>
- * Ruby: <code>Api.issues.find(hash_of_parameters)</code>. <b></B>Keys of parameters must be Ruby strings but not symbols</b>.
+ * Ruby example: {@code Api.issues.find({'statuses' => ['OPEN', 'RESOLVED'], 'assignees' => 'john,carla')}.
+ * <p/>
+ * <b>Keys of parameters must be Ruby strings but not symbols</b>. Multi-value parameters can be arrays ({@code ['OPEN', 'RESOLVED']}) or
+ * comma-separated list of strings ({@code 'OPEN,RESOLVED'}).
* <p/>
+ * Optional parameters are:
* <ul>
* <li>'issues': list of issue keys</li>
* <li>'severities': list of severity to match. See constants in {@link org.sonar.api.rule.Severity}</li>
* <li>'pageSize': maximum number of results per page. Default is {@link org.sonar.api.issue.IssueQuery#DEFAULT_PAGE_SIZE},
* except when the parameter 'components' is set. In this case there's no limit by default (all results in the same page).</li>
* <li>'pageIndex': index of the selected page. Default is 1.</li>
- * <li>'sort': TODO</li>
- * <li>'asc': TODO </li>
+ * <li>'sort': field to sort on. See supported values in {@link IssueQuery}</li>
+ * <li>'asc': ascending or descending sort? Value can be a boolean or strings 'true'/'false'</li>
* </ul>
*/
IssueQueryResult find(Map<String, Object> parameters);
import java.util.List;
+/**
+ * @since 3.6
+ */
public final class Severity {
private Severity() {
public static final String BLOCKER = "BLOCKER";
/**
- * All the supported severities, orderest from {@link #INFO} to {@link #BLOCKER}.
+ * All the supported severity values, ordered from {@link #INFO} to {@link #BLOCKER}.
*/
public static final List<String> ALL = ImmutableList.of(INFO, MINOR, MAJOR, CRITICAL, BLOCKER);
}