-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.alint.yml
More file actions
120 lines (104 loc) · 3.17 KB
/
Copy path.alint.yml
File metadata and controls
120 lines (104 loc) · 3.17 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Generated by `alint init`. Adjust as needed.
# Detected: Rust.
# Run `alint check` to lint, `alint fix` to apply auto-fixable rules.
# See https://alint.org for the full ruleset reference.
version: 1
ignore:
- "styles-legacy/**"
- "tests/csl-test-suite/**"
- ".beans/**"
extends:
- alint://bundled/oss-baseline@v1
- alint://bundled/rust@v1
rules:
- id: oss-no-trailing-whitespace
paths:
exclude:
- ".beans/**"
- "**/*.md"
- "docs/**"
- "scripts/**/*.js"
- "scripts/**/*.py"
- "scripts/report-data/**"
- "tests/fixtures/**"
- id: oss-license-exists
level: off
- id: oss-dependency-update-tool
level: off
- id: oss-codeowners-exists
level: off
- id: oss-code-of-conduct-exists
level: off
- id: broken-markdown-links
kind: markdown_paths_resolve
paths:
- "docs/guides/*.md"
- "docs/policies/*.md"
- "docs/reference/*.md"
- "README.md"
- "CLAUDE.md"
prefixes:
- "crates/"
- "docs/"
- "scripts/"
- "tests/"
- "examples/"
- "locales/"
- "registry/"
- "./docs/"
level: error
- id: skill-manifest-frontmatter
kind: file_content_matches
paths:
- ".claude/skills/*/SKILL.md"
- ".skills/*/SKILL.md"
pattern: "(?s)^---\\n.*name: .+\\n.*description: .+\\n.*---"
level: error
- id: coverage-manifest-version
kind: json_path_equals
paths:
- "tests/fixtures/coverage-manifest.json"
path: "$.version"
equals: 1
level: error
- id: baseline-files-exist
kind: file_exists
paths:
- "scripts/report-data/oracle-top10-baseline.json"
- "scripts/report-data/core-quality-baseline.json"
- "scripts/report-data/verification-policy.yaml"
- "scripts/report-data/fixture-sufficiency.yaml"
level: off
- id: rust-license-header
kind: file_content_matches
paths: "crates/**/*.rs"
pattern: "(?s)^/\\*\\nSPDX-License-Identifier: MIT OR Apache-2.0\\nSPDX-FileCopyrightText: © 2023-2026 Bruce D'Arcus and Citum contributors\\n\\*/"
level: warning
- id: rust-crate-readme
kind: file_exists
paths: "crates/*/README.md"
level: off
- id: rust-no-println
kind: file_content_forbidden
paths:
- "crates/citum-engine/**/*.rs"
- "crates/citum-schema/**/*.rs"
pattern: '\bprintln!\('
level: warning
- id: rust-cargo-metadata
kind: file_content_matches
paths: "crates/*/Cargo.toml"
pattern: "(?s)license(\\.workspace)?\\s*=.*repository(\\.workspace)?\\s*="
level: warning
- id: conventional-commits
kind: git_commit_message
pattern: '^(Revert ".+"|fixup! .+|squash! .+|(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\((edtf|engine|schema|migrate|store|cli|server|styles|locale|i18n|ci|hooks|beans|scripts|tooling|spec|docs|release|refs|report|examples|bindings|security|demo)\))?(!)?: [a-z].+)'
subject_max_length: 50
requires_body: true
since: "{{env.ALINT_BASE_SHA | default('origin/main')}}"
level: error
- id: rust-mod-doc
kind: file_content_matches
paths: "crates/*/src/lib.rs"
pattern: "(?s)^(/\\*.*?\\*/\\s*)?//!"
level: warning