-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathlint.yaml
52 lines (46 loc) · 1.7 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
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
includes:
- remote: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.7.4/tasks/lint.yaml
tasks:
- name: fix
description: "Fix formatting issues in the repo"
actions:
- description: install codespell deps
cmd: CMD=pip && which $CMD || CMD=pip3 && $CMD install codespell
- description: "Pepr Format"
cmd: npx pepr format
- description: Fix codespell lint issues
cmd: |
codespell || true
codespell -w
- name: check
description: "Run linting checks"
actions:
- description: install pepr deps
cmd: npm ci
- description: "Pepr Format check"
cmd: npx pepr format --validate-only
- description: install yamllint and codespell deps
cmd: CMD=pip && which $CMD || CMD=pip3 && $CMD install yamllint codespell
- description: yaml lint
cmd: yamllint . -c .yamllint --no-warnings
- description: codespell lint
cmd: codespell
- description: Install addlicense dep
# renovate: datasource=github-tags depName=google/addlicense versioning=semver
cmd: GOPATH="$HOME/go" go install github.com/google/addlicense@v1.1.1
- description: license lint
task: license
- name: oscal
actions:
- description: Lula Lint OSCAL
task: remote:oscal
- name: license
actions:
- description: Lint for the SPDX license identifier being in source files
task: remote:license
- name: fix-license
actions:
- description: Add the SPDX license identifier to source files
task: remote:fix-license