-
Notifications
You must be signed in to change notification settings - Fork 1
95 lines (95 loc) · 2.6 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
# SPDX-FileCopyrightText: 2023 The MalwareTracesGenerator development team
#
# SPDX-License-Identifier: CC0-1.0
name: Lint the project
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
yamllint:
name: Lint with yamllint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create requirements file for setup-python
run: touch ./requirements.txt
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- name: Install yamllint
run: pip install yamllint
- name: Check YAML formatting
run: yamllint -s .
reuse:
name: Lint with REUSE
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint licenses
uses: fsfe/reuse-action@v3
markdownlint-cli2:
name: Lint with markdownlint-cli2
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint Markdown code
uses: DavidAnson/markdownlint-cli2-action@v17
clippy:
name: Lint with Clippy
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Clippy
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Add caching
uses: Swatinem/rust-cache@v2
- name: Lint Rust code
run: |-
cargo clippy `
--workspace `
--all-targets `
--all-features `
-- -D warnings
cargo-deny:
name: Lint with cargo-deny
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint Rust code
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
cargo-outdated:
name: Lint with cargo-outdated
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Add caching
uses: Swatinem/rust-cache@v2
- name: Install cargo-outdated
run: cargo install --locked cargo-outdated
- name: Lint Rust code
run: cargo outdated -v --exit-code 1 -R -w
taplo:
name: Lint with taplo
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install taplo
uses: uncenter/setup-taplo@v1
- name: Lint TOML code
run: taplo lint --verbose **.toml