Skip to content

Commit 78deed2

Browse files
committed
ci: add linters
Signed-off-by: Eugen Kremer <[email protected]>
1 parent bb44118 commit 78deed2

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/lint.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: MIT
2+
# SPDX-FileCopyrightText: (C) 2025 Siemens
3+
#
4+
# Authors:
5+
# Eugen Kremer <[email protected]>
6+
7+
name: Linting
8+
9+
on:
10+
pull_request:
11+
branches: [ main ]
12+
workflow_dispatch:
13+
14+
jobs:
15+
reuse-compliance:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: REUSE Compliance Check
23+
uses: fsfe/reuse-action@v4
24+
25+
markdown-lint:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
32+
- name: Markdown Lint
33+
uses: articulate/actions-markdownlint@v1
34+
with:
35+
config: .markdownlint.jsonc
36+
files: '**/*.md'
37+
38+
clang-format:
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- name: Checkout code
43+
uses: actions/checkout@v4
44+
45+
- name: Run clang-format check
46+
uses: jidicula/[email protected]
47+
with:
48+
clang-format-version: '18'
49+
check-path: 'src'

REUSE.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2025 Siemens
2+
# SPDX-License-Identifier: MIT
3+
14
version = 1
25
SPDX-PackageName = "pkcs11-to-cmd"
36

@@ -18,3 +21,9 @@ path = ["CODEOWNERS", ".clang-format", ".clangd", ".editorconfig", ".gitignore",
1821
precedence = "aggregate"
1922
SPDX-FileCopyrightText = "2025 Siemens"
2023
SPDX-License-Identifier = "MIT"
24+
25+
[[annotations]]
26+
path = ["docs/*.png", "docs/*.svg", "docs/*.puml"]
27+
precedence = "aggregate"
28+
SPDX-FileCopyrightText = "2025 Siemens"
29+
SPDX-License-Identifier = "MIT"

0 commit comments

Comments
 (0)