Skip to content

Commit aa2ded3

Browse files
committed
ci: suppress verbose bom output and fix lychee.toml line length
Only print output from the BOM linter on errors, aligning with the super-linter idiom. Add lychee.toml to the relaxed editorconfig line-length group since URL remap patterns exceed 100 chars. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent 908b4be commit aa2ded3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ indent_size = 2
77
[{version-rules.xml,maven-wrapper.properties,checkstyle.xml,docker-compose.yaml,docker-compose.yml,Dockerfile,example_target_info.json,mise.toml,mvnm,mvnw.cmd,generate-protobuf.sh,.gitleaksignore,prometheus.properties}]
88
max_line_length = 200
99

10-
[{grafana-dashboard-*.json,.editorconfig,super-linter.env,renovate.json5}]
10+
[{grafana-dashboard-*.json,.editorconfig,super-linter.env,lychee.toml,renovate.json5}]
1111
max_line_length = 300
1212

1313
[pom.xml]

.mise/tasks/lint/bom.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def add_dir(dir_path: Path, want: List[str]):
3636
raise FileNotFoundError(f"Directory {dir_path} does not exist.")
3737

3838
if any(dir_path.name == ig for ig in IGNORE_DIRS):
39-
print(f"Skipping {dir_path}")
4039
return
4140

4241
pom = dir_path / "pom.xml"
@@ -47,7 +46,6 @@ def add_dir(dir_path: Path, want: List[str]):
4746
if not artifact_id:
4847
raise RuntimeError(f"No artifactId found in {pom}")
4948

50-
print(f"Found artifactId '{artifact_id}' in {pom}")
5149
want.append(artifact_id)
5250

5351

@@ -108,7 +106,6 @@ def main() -> int:
108106
sys.stdout.writelines(diff)
109107
return 1
110108
else:
111-
print("BOM file is up to date.")
112109
return 0
113110

114111
except Exception as e:

0 commit comments

Comments
 (0)