Skip to content

Commit c93e48c

Browse files
authored
add Checkstyle (#1199)
* add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> * add checkstyle Signed-off-by: Gregor Zeitlinger <[email protected]> --------- Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent d6572b7 commit c93e48c

File tree

51 files changed

+764
-238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+764
-238
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
max_line_length = 100
5+
indent_size = 2
6+
7+
[pom.xml]
8+
indent_size = 4

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ If you're getting errors when running tests:
2727

2828
- Use `-Dspotless.check.skip=true` to skip the formatting check during development.
2929
- Use `-Dcoverage.skip=true` to skip the coverage check during development.
30+
- Use `-Dcheckstyle.skip=true` to skip the checkstyle check during development.
3031
- Use `-Dwarnings=-nowarn` to skip the warnings during development.
3132

3233
## Updating the Protobuf Java Classes

checkstyle-suppressions.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
3+
<!DOCTYPE suppressions PUBLIC
4+
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
5+
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
6+
7+
<suppressions>
8+
<suppress checks="Javadoc" files="."/>
9+
</suppressions>

checkstyle.xml

Lines changed: 375 additions & 0 deletions
Large diffs are not rendered by default.

examples/example-exemplars-tail-sampling/example-greeting-service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<configuration>
5858
<transformers>
5959
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
60-
<mainClass>io.prometheus.metrics.examples.otel_exemplars.greeting.Main</mainClass>
60+
<mainClass>io.prometheus.metrics.examples.otel.exemplars.greeting.Main</mainClass>
6161
</transformer>
6262
</transformers>
6363
</configuration>

examples/example-exemplars-tail-sampling/example-greeting-service/src/main/java/io/prometheus/metrics/examples/otel_exemplars/greeting/GreetingServlet.java renamed to examples/example-exemplars-tail-sampling/example-greeting-service/src/main/java/io/prometheus/metrics/examples/otel/exemplars/greeting/GreetingServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.prometheus.metrics.examples.otel_exemplars.greeting;
1+
package io.prometheus.metrics.examples.otel.exemplars.greeting;
22

33
import static io.prometheus.metrics.model.snapshots.Unit.nanosToSeconds;
44

examples/example-exemplars-tail-sampling/example-greeting-service/src/main/java/io/prometheus/metrics/examples/otel_exemplars/greeting/Main.java renamed to examples/example-exemplars-tail-sampling/example-greeting-service/src/main/java/io/prometheus/metrics/examples/otel/exemplars/greeting/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.prometheus.metrics.examples.otel_exemplars.greeting;
1+
package io.prometheus.metrics.examples.otel.exemplars.greeting;
22

33
import io.prometheus.metrics.exporter.servlet.jakarta.PrometheusMetricsServlet;
44
import io.prometheus.metrics.instrumentation.jvm.JvmMetrics;

examples/example-exemplars-tail-sampling/example-hello-world-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<configuration>
5858
<transformers>
5959
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
60-
<mainClass>io.prometheus.metrics.examples.otel_exemplars.app.Main</mainClass>
60+
<mainClass>io.prometheus.metrics.examples.otel.exemplars.app.Main</mainClass>
6161
</transformer>
6262
</transformers>
6363
</configuration>

examples/example-exemplars-tail-sampling/example-hello-world-app/src/main/java/io/prometheus/metrics/examples/otel_exemplars/app/HelloWorldServlet.java renamed to examples/example-exemplars-tail-sampling/example-hello-world-app/src/main/java/io/prometheus/metrics/examples/otel/exemplars/app/HelloWorldServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.prometheus.metrics.examples.otel_exemplars.app;
1+
package io.prometheus.metrics.examples.otel.exemplars.app;
22

33
import static io.prometheus.metrics.model.snapshots.Unit.nanosToSeconds;
44
import static java.net.http.HttpResponse.BodyHandlers.ofString;

examples/example-exemplars-tail-sampling/example-hello-world-app/src/main/java/io/prometheus/metrics/examples/otel_exemplars/app/Main.java renamed to examples/example-exemplars-tail-sampling/example-hello-world-app/src/main/java/io/prometheus/metrics/examples/otel/exemplars/app/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.prometheus.metrics.examples.otel_exemplars.app;
1+
package io.prometheus.metrics.examples.otel.exemplars.app;
22

33
import io.prometheus.metrics.exporter.servlet.jakarta.PrometheusMetricsServlet;
44
import io.prometheus.metrics.instrumentation.jvm.JvmMetrics;

0 commit comments

Comments
 (0)