Skip to content

Commit 5fe88b1

Browse files
committed
fix lint
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
1 parent 9444848 commit 5fe88b1

4 files changed

Lines changed: 4 additions & 16 deletions

File tree

benchmarks/src/main/java/io/prometheus/metrics/benchmarks/HistogramTextFormatBenchmark.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
import org.openjdk.jmh.annotations.State;
2121

2222
/**
23-
* Benchmarks for writing a classic histogram (10 label combinations × 12 buckets) to text
24-
* formats.
23+
* Benchmarks for writing a classic histogram (10 label combinations × 12 buckets) to text formats.
2524
*
2625
* <p>Two variants per format:
2726
*

mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ run = "./mvnw install -DskipTests -Dcoverage.skip=true"
6060
[tasks."lint"]
6161
description = "Run all lints"
6262
depends = ["lint:bom"]
63+
raw_args = true
6364
run = "flint run"
6465

6566
[tasks."lint:fix"]

prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/OpenMetricsTextFormatWriter.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,7 @@ private void writeClassicHistogramBuckets(
207207
for (int i = 0; i < buckets.size(); i++) {
208208
cumulativeCount += buckets.getCount(i);
209209
writeNameAndLabels(
210-
writer,
211-
bucketName,
212-
null,
213-
data.getLabels(),
214-
scheme,
215-
"le",
216-
buckets.getUpperBound(i));
210+
writer, bucketName, null, data.getLabels(), scheme, "le", buckets.getUpperBound(i));
217211
writeLong(writer, cumulativeCount);
218212
Exemplar exemplar;
219213
if (i == 0) {

prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/PrometheusTextFormatWriter.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,7 @@ private void writeHistogram(Writer writer, HistogramSnapshot snapshot, EscapingS
220220
for (int i = 0; i < buckets.size(); i++) {
221221
cumulativeCount += buckets.getCount(i);
222222
writeNameAndLabels(
223-
writer,
224-
bucketName,
225-
null,
226-
data.getLabels(),
227-
scheme,
228-
"le",
229-
buckets.getUpperBound(i));
223+
writer, bucketName, null, data.getLabels(), scheme, "le", buckets.getUpperBound(i));
230224
writeLong(writer, cumulativeCount);
231225
writeScrapeTimestampAndNewline(writer, data);
232226
}

0 commit comments

Comments
 (0)