Skip to content

Commit ddd25f5

Browse files
committed
ci: update to rust version of flint
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent 0217eef commit ddd25f5

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

.github/config/flint.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[checks.lychee]
2+
check_all_local = true

.github/workflows/reusable-link-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
GITHUB_TOKEN: ${{ github.token }}
2323
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
2424
PR_HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
25-
run: mise run lint:links
25+
run: mise run lint
2626

2727
- name: Link check for pushes and scheduled workflows
2828
if: github.event_name != 'pull_request'
2929
env:
3030
GITHUB_TOKEN: ${{ github.token }}
31-
run: mise run lint:links --full
31+
run: mise run lint

mise.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[tools]
2+
# Linters
3+
"github:grafana/flint" = "0.20.3"
24
lychee = "0.23.0"
35

6+
[env]
7+
FLINT_CONFIG_DIR = ".github/config"
8+
49
[settings]
510
# Only install tools explicitly defined in the [tools] section above
611
idiomatic_version_file_enable_tools = []
@@ -11,7 +16,10 @@ windows_executable_extensions = ["sh"]
1116
windows_default_file_shell_args = "bash"
1217
use_file_shell_for_executable_tasks = true
1318

14-
# Pick the tasks you need from flint (https://github.com/grafana/flint)
15-
[tasks."lint:links"]
16-
description = "Check for broken links in changed files + all local links"
17-
file = "https://raw.githubusercontent.com/grafana/flint/eded4cd370c729289a6de327a1a26831e10a39b9/tasks/lint/links.sh" # v0.20.2
19+
[tasks.lint]
20+
description = "Run lint checks"
21+
run = "flint run"
22+
23+
[tasks."lint:fix"]
24+
description = "Auto-fix lint issues"
25+
run = "flint run --fix"

0 commit comments

Comments
 (0)