Skip to content
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ddd25f5
ci: update to rust version of flint
zeitlinger Apr 22, 2026
705401a
ci: preserve full link-check mode on push
zeitlinger Apr 22, 2026
36ea753
ci: allow raw args for lint task
zeitlinger Apr 22, 2026
6ae4434
docs: fix OpenTelemetry Java coding patterns link
zeitlinger Apr 23, 2026
3337dd9
chore: update flint to 0.20.4
zeitlinger Apr 23, 2026
0ed543a
fix: add flint-managed linter configs
zeitlinger Apr 23, 2026
328535a
fix: finish rust-native formatter cutover
zeitlinger Apr 23, 2026
4576dbe
chore: keep flint config under config dir
zeitlinger Apr 23, 2026
1f28629
ci: keep flint rollout scoped to lychee
zeitlinger Apr 26, 2026
22ef1e1
chore: update flint to v0.21.0
zeitlinger Apr 27, 2026
ab98205
chore: clarify yamllint ownership
zeitlinger Apr 27, 2026
c764664
Merge branch 'main' into use-rust-flint-v2
zeitlinger Apr 27, 2026
7ddf659
chore: rely on flint renovate preset
zeitlinger Apr 27, 2026
ea0d4d4
chore: clean otel mise and renovate config
zeitlinger Apr 27, 2026
a0c10bb
chore: keep first-round otel tools minimal
zeitlinger Apr 27, 2026
d2af6d0
chore: keep first-round otel config minimal
zeitlinger Apr 27, 2026
6ee1030
chore: keep first-round otel rollout minimal
zeitlinger Apr 27, 2026
846e086
chore: restore minimal mise settings
zeitlinger Apr 27, 2026
596f582
chore: drop unrelated contributing doc drift
zeitlinger Apr 27, 2026
1fc5b52
chore: sync contributing guide with upstream main
zeitlinger Apr 27, 2026
7ac974d
docs: point style guide link to coding patterns
zeitlinger Apr 27, 2026
a14261e
ci: pass current flint GitHub env vars
zeitlinger Apr 27, 2026
1c27524
chore: drop redundant mise setting
zeitlinger Apr 27, 2026
023a57f
chore: rely on flint task defaults
zeitlinger Apr 27, 2026
96454d5
ci: rename lint workflow
zeitlinger Apr 28, 2026
07a94bb
fix: drop unrelated editorconfig changes
zeitlinger Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ ij_java_wrap_comments = false
ij_java_wrap_first_method_in_call_chain = false
ij_java_wrap_long_lines = false

# Java line length is handled by google-java-format
max_line_length = off
[*.proto]
ij_continuation_indent_size = 2
ij_proto_keep_indents_on_empty_lines = false
Expand Down Expand Up @@ -761,3 +763,7 @@ ij_properties_spaces_around_key_value_delimiter = false
[{*.yaml, *.yml}]
ij_yaml_keep_indents_on_empty_lines = false
ij_yaml_keep_line_breaks = true

[*.md]
# Markdown line length is handled by rumdl
max_line_length = off
5 changes: 5 additions & 0 deletions .github/config/flint.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[checks.lychee]
check_all_local = true

[settings]
setup_migration_version = 2
12 changes: 1 addition & 11 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
"github>grafana/flint#v0.21.0",
'config:best-practices',
'helpers:pinGitHubActionDigestsToSemver',
'customManagers:githubActionsVersions',
Expand Down Expand Up @@ -66,17 +67,6 @@
},
],
customManagers: [
{
// keep SHA-pinned raw.githubusercontent.com URLs in mise.toml up to date
customType: 'regex',
datasourceTemplate: 'github-tags',
managerFilePatterns: [
'/^mise\\.toml$/',
],
matchStrings: [
'https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/(?<currentDigest>[a-f0-9]{40})/.*#\\s*(?<currentValue>v\\S+)',
],
},
{
customType: 'regex',
datasourceTemplate: 'docker',
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
run: mise run lint:links
run: mise run lint

- name: Link check for pushes and scheduled workflows
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ github.token }}
run: mise run lint:links --full
run: mise run lint --full
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ generate semantic conventions classes from the release contents.

## Style guide

This repository follows the OpenTelemetry Java
repository's [style guide](https://github.com/open-telemetry/opentelemetry-java/blob/main/CONTRIBUTING.md#style-guideline).
This repository follows the OpenTelemetry Java repository's
[coding patterns](https://github.com/open-telemetry/opentelemetry-java/blob/main/docs/knowledge/README.md).
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

broke before and is now fixed: Error: https://raw.githubusercontent.com/open-telemetry/opentelemetry-java/main/CONTRIBUTING.md#style-guideline | Cannot find fragment: Fragment not found in document. Check if fragment exists or page structure

20 changes: 11 additions & 9 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
[tools]
"github:grafana/flint" = "0.21.0"
lychee = "0.23.0"

[settings]
# Only install tools explicitly defined in the [tools] section above
idiomatic_version_file_enable_tools = []

# Windows configuration for file-based tasks
# Based on: https://github.com/jdx/mise/discussions/4461
windows_executable_extensions = ["sh"]
windows_default_file_shell_args = "bash"
use_file_shell_for_executable_tasks = true
[tasks.lint]
description = "Run link checks"
raw_args = true
run = "flint run lychee"

# Pick the tasks you need from flint (https://github.com/grafana/flint)
[tasks."lint:links"]
description = "Check for broken links in changed files + all local links"
file = "https://raw.githubusercontent.com/grafana/flint/feab606ce514fbbf2722cc26aeafa39956383cf3/tasks/lint/links.sh" # v0.21.0
[tasks."lint:fix"]
description = "Auto-fix lint issues"
run = "flint run --fix"

[env]
FLINT_CONFIG_DIR = ".github/config"
Loading