}
return set;
}
-}
\ No newline at end of file
+}
widget.setProperty(METRIC_PROPERTY, "public_undocumented_api");
}
-}
\ No newline at end of file
+}
dashboard.addWidget("false_positive_reviews", 2);
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.plugins.core.issue.notification;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.plugins.core.issue;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
}
}
}
-}
\ No newline at end of file
+}
public String toString() {
return getClass().getSimpleName();
}
-}
\ No newline at end of file
+}
super("alerts", "Alerts", "/org/sonar/plugins/core/widgets/alerts.html.erb");
}
-}
\ No newline at end of file
+}
public ComplexityWidget() {
super("complexity", "Complexity", "/org/sonar/plugins/core/widgets/complexity.html.erb");
}
-}
\ No newline at end of file
+}
public CoverageWidget() {
super("code_coverage", "Code coverage", "/org/sonar/plugins/core/widgets/coverage.html.erb");
}
-}
\ No newline at end of file
+}
public DescriptionWidget() {
super("description", "Description", "/org/sonar/plugins/core/widgets/description.html.erb");
}
-}
\ No newline at end of file
+}
public EventsWidget() {
super("events", "Events", "/org/sonar/plugins/core/widgets/events.html.erb");
}
-}
\ No newline at end of file
+}
public HotspotMetricWidget() {
super("hotspot_metric", "Metric hotspot", "/org/sonar/plugins/core/widgets/hotspots/hotspot_metric.html.erb");
}
-}
\ No newline at end of file
+}
public HotspotMostViolatedResourcesWidget() {
super("hotspot_most_violated_resources", "Most violated resources", "/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_resources.html.erb");
}
-}
\ No newline at end of file
+}
public RulesWidget() {
super("rules", "Rules Compliance", "/org/sonar/plugins/core/widgets/rules.html.erb");
}
-}
\ No newline at end of file
+}
public UnresolvedIssuesPerAssigneeWidget() {
super("reviews_per_developer", "Unresolved issues per assignee", "/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb");
}
-}
\ No newline at end of file
+}
assertChartSizeGreaterThan(image, 1000);
saveChart(image, "DistributionAreaChartTest/manySeriesIncludingAnEmptySerie.png");
}
-}
\ No newline at end of file
+}
// you have to check visually that it does not work ! Min value is 0. This is a limitation of JFreeChart.
assertChartSizeGreaterThan(img, 50);
}
-}
\ No newline at end of file
+}
assertThat(decorator.getWeightsBySeverity().get(RulePriority.MAJOR)).isEqualTo(1);
}
-}
\ No newline at end of file
+}
return "Design";
}
-}
\ No newline at end of file
+}
protected String getTemplatePath() {
return "/org/sonar/plugins/design/ui/widgets/file_design.html.erb";
}
-}
\ No newline at end of file
+}
protected String getTemplatePath() {
return "/org/sonar/plugins/design/ui/widgets/package_design.html.erb";
}
-}
\ No newline at end of file
+}
return snapshots.isEmpty() ? null : snapshots.get(0);
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.batch.issue;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.batch.scan.filesystem;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
package org.sonar.runner.batch.ProjectReactorBuilderTest.simple
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
-Fake
\ No newline at end of file
+Fake
package org.sonar;
-public class Included {}
\ No newline at end of file
+public class Included {}
-class Foo {}
\ No newline at end of file
+class Foo {}
-public class Hello {}
\ No newline at end of file
+public class Hello {}
-class FooTest {}
\ No newline at end of file
+class FooTest {}
-public class HelloTest {}
\ No newline at end of file
+public class HelloTest {}
}
}
-}
\ No newline at end of file
+}
throw new SynhtaxHighlightingException("Can not render code", e);
}
}
-}
\ No newline at end of file
+}
public abstract String render(Reader code, List<? extends Channel<HtmlCodeBuilder>> tokenizers);
-}
\ No newline at end of file
+}
}
return "bar";
}
-}
\ No newline at end of file
+}
@Target(ElementType.METHOD)
@interface Foo {
-}
\ No newline at end of file
+}
-package org.sonar.colorizer.samples;
\ No newline at end of file
+package org.sonar.colorizer.samples;
}
return sessionFactory.getSession();
}
-}
\ No newline at end of file
+}
public Long resourceId() {
return resourceId;
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.core.component;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.graph.jdbc;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.graph;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.i18n;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.issue.db;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.issue;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
MyBatis.closeQuietly(session);
}
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.core.notification.db;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.permission;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.resource;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.source.jdbc;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.source;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.core.test;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
public Connection getConnection() throws SQLException {
return database != null && database.getDataSource() != null ? database.getDataSource().getConnection() : null;
}
-}
\ No newline at end of file
+}
}
}
}
-}
\ No newline at end of file
+}
checkTables("shouldInsert", new String[]{"created_at", "updated_at"}, "measure_filters");
}
-}
\ No newline at end of file
+}
DefaultModelFinder provider = new DefaultModelFinder(getSessionFactory());
assertNull(provider.findByName("UNKNOWN"));
}
-}
\ No newline at end of file
+}
}
return false;
}
-}
\ No newline at end of file
+}
BigInteger bi = new BigInteger(1, bytes);
return String.format("%0" + (bytes.length << 1) + "x", bi);
}
-}
\ No newline at end of file
+}
* Used only on classes. Must be keep empty on methods.
*/
String[] value() default {};
-}
\ No newline at end of file
+}
public enum Name {
PRE, DEFAULT, POST
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.api.batch.bootstrap.internal;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.batch.bootstrap;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.component.mock;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.component;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.config.internal;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.config;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
* @since 3.2
*/
String PROP_EMBEDDED_PORT_DEFAULT_VALUE = "9092";
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.api.i18n;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.issue.action;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.issue.condition;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.issue.internal;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.issue;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@Deprecated
Configuration getConfiguration();
-}
\ No newline at end of file
+}
*/
public interface MeasureBuilder {
Measure build();
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.api.platform;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
public abstract RulesProfile createProfile(ValidationMessages validation);
-}
\ No newline at end of file
+}
.append("language", language)
.toString();
}
-}
\ No newline at end of file
+}
.append("key", getKey())
.toString();
}
-}
\ No newline at end of file
+}
this.name = link.getName();
this.href = link.getHref();
}
-}
\ No newline at end of file
+}
public static boolean isParagraph(final Resource resource) {
return StringUtils.equals(PARAGRAPH, resource.getQualifier());
}
-}
\ No newline at end of file
+}
int thanIndex = ArrayUtils.indexOf(SORTED_SCOPES, than);
return index <= thanIndex;
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.api.rule;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
.append("type", type)
.toString();
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.api.scan.filesystem;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.security;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.source;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.test;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.api.user;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
*/
String[] value() default {};
-}
\ No newline at end of file
+}
*/
String getTemplate();
-}
\ No newline at end of file
+}
* @return Content of the Ruby on Rails web service controller class
*/
String getTemplate();
-}
\ No newline at end of file
+}
String[] value() default {};
-}
\ No newline at end of file
+}
*/
String getId();
-}
\ No newline at end of file
+}
*/
public enum WidgetLayoutType {
DEFAULT, NONE
-}
\ No newline at end of file
+}
assertThat(SquidUtils.convertToSquidKeyFormat(new JavaFile("com.foo.Bar"))).isEqualTo(("com/foo/Bar.java"));
assertThat(SquidUtils.convertToSquidKeyFormat(new JavaFile("Bar"))).isEqualTo(("Bar.java"));
}
-}
\ No newline at end of file
+}
}
class ImplementedClass extends AbstractClass {
-}
\ No newline at end of file
+}
package foo;
public class Bar {
-}
\ No newline at end of file
+}
package foo;
public class Whizz {
-}
\ No newline at end of file
+}
import org.junit.Ignore;
public abstract class BarTest {
-}
\ No newline at end of file
+}
public String getS() {
return "";
}
-}
\ No newline at end of file
+}
public String getS() {
return "";
}
-}
\ No newline at end of file
+}
package org.sonar;
-public class Included {}
\ No newline at end of file
+public class Included {}
configureDimensions(params.get(BaseChartWeb.CHART_PARAM_DIMENSIONS));
}
-}
\ No newline at end of file
+}
}
}
-}
\ No newline at end of file
+}
}
}
-}
\ No newline at end of file
+}
}
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.server.db.migrations;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.server.db;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
private User selectUser(String assigneeKey) {
return userFinder.findByLogin(assigneeKey);
}
-}
\ No newline at end of file
+}
}
return param;
}
-}
\ No newline at end of file
+}
}
}
-}
\ No newline at end of file
+}
private ActionPlan selectActionPlan(String planValue, UserSession userSession) {
return actionPlanService.findByKey(planValue, userSession);
}
-}
\ No newline at end of file
+}
}
return param;
}
-}
\ No newline at end of file
+}
return param;
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.server.issue;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.server.permission;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
handler.onServerStop(server);
}
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.server.rule;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
CoreProperties.SERVER_VERSION, server.getVersion(),
CoreProperties.SERVER_STARTTIME, new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(server.getStartedAt())));
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.server.startup;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
handler.doOnNewUser(context);
}
}
-}
\ No newline at end of file
+}
@ParametersAreNonnullByDefault
package org.sonar.server.user;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
package org.sonar.server.util;
-import javax.annotation.ParametersAreNonnullByDefault;
\ No newline at end of file
+import javax.annotation.ParametersAreNonnullByDefault;
assertNull(factory.getChart("unknown"));
}
-}
\ No newline at end of file
+}
return servletUrl.toString();
}
-}
\ No newline at end of file
+}
return params;
}
-}
\ No newline at end of file
+}
return params;
}
-}
\ No newline at end of file
+}
return params;
}
-}
\ No newline at end of file
+}
assertThat(action.supports(new DefaultIssue().setResolution(null))).isTrue();
assertThat(action.supports(new DefaultIssue().setResolution(Issue.RESOLUTION_FIXED))).isFalse();
}
-}
\ No newline at end of file
+}
assertThat(action.supports(new DefaultIssue().setResolution(null))).isTrue();
assertThat(action.supports(new DefaultIssue().setResolution(Issue.RESOLUTION_FIXED))).isFalse();
}
-}
\ No newline at end of file
+}
verify(reader, times(2)).readString(new URI(BASE_URL), Charsets.UTF_8);
}
-}
\ No newline at end of file
+}
return model;
}
-}
\ No newline at end of file
+}
public String getTitle() {
return title;
}
-}
\ No newline at end of file
+}
return stopSquidOnException;
}
-}
\ No newline at end of file
+}
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.base;
\ No newline at end of file
+package org.sonar.wsclient.base;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.component;
\ No newline at end of file
+package org.sonar.wsclient.component;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.connectors;
\ No newline at end of file
+package org.sonar.wsclient.connectors;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.internal;
\ No newline at end of file
+package org.sonar.wsclient.internal;
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.issue.internal;
\ No newline at end of file
+package org.sonar.wsclient.issue.internal;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.issue;
\ No newline at end of file
+package org.sonar.wsclient.issue;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient;
\ No newline at end of file
+package org.sonar.wsclient;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.permissions.internal;
\ No newline at end of file
+package org.sonar.wsclient.permissions.internal;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.permissions;
\ No newline at end of file
+package org.sonar.wsclient.permissions;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.rule;
\ No newline at end of file
+package org.sonar.wsclient.rule;
.append('&');
}
}
-}
\ No newline at end of file
+}
public abstract Class<M> getModelClass();
-}
\ No newline at end of file
+}
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.services;
\ No newline at end of file
+package org.sonar.wsclient.services;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.unmarshallers;
\ No newline at end of file
+package org.sonar.wsclient.unmarshallers;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.user.internal;
\ No newline at end of file
+package org.sonar.wsclient.user.internal;
*/
@javax.annotation.ParametersAreNonnullByDefault
-package org.sonar.wsclient.user;
\ No newline at end of file
+package org.sonar.wsclient.user;
public String url() {
return "http://localhost:" + port();
}
-}
\ No newline at end of file
+}
PrintWriter out = response.getWriter();
out.println("{\"id\":\"123456789\",\"version\":\"2.0\"}");
}
-}
\ No newline at end of file
+}
assertThat(query.getUrl(), is("/api/manual_measures?resource=foo&metric=team_size&val=45&"));
assertThat(query.getModelClass().getName(), is(ManualMeasure.class.getName()));
}
-}
\ No newline at end of file
+}
ManualMeasureDeleteQuery query = ManualMeasureDeleteQuery.create("foo", "team_size");
assertThat(query.getUrl(), is("/api/manual_measures?resource=foo&metric=team_size&"));
}
-}
\ No newline at end of file
+}
assertThat(query.getUrl(), is("/api/projects/my%3Aproject"));
}
-}
\ No newline at end of file
+}
assertThat(query.getUrl(), is("/api/properties?id=foo&value=bar&resource=my%3Aresource&"));
assertThat(query.getModelClass().getName(), is(Property.class.getName()));
}
-}
\ No newline at end of file
+}
PropertyDeleteQuery query = new PropertyDeleteQuery("foo", "my:resource");
assertThat(query.getUrl(), is("/api/properties/foo?resource=my%3Aresource&"));
}
-}
\ No newline at end of file
+}