Skip to content

Commit 3559bf4

Browse files
JonathangadeaharderJonathan Gadea Harder
andauthored
chore: add structurelint config for Lean 4 project (#17)
Co-authored-by: Jonathan Gadea Harder <jonathangadeaharder@Jonathans-MacBook-Pro.local>
1 parent 155f068 commit 3559bf4

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.structurelint.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
root: true
2+
3+
exclude:
4+
- .git/**
5+
- .lake/**
6+
- "**/.DS_Store"
7+
8+
rules:
9+
max-depth:
10+
max: 5
11+
exemptions:
12+
- ".git/**"
13+
- ".lake/**"
14+
15+
max-files-in-dir:
16+
max: 30
17+
exemptions:
18+
- ".git/**"
19+
20+
naming-convention:
21+
style: "PascalCase"
22+
apply-to:
23+
- "**/*.lean"
24+
exemptions:
25+
- ".git/**"
26+
27+
file-existence:
28+
"README.md":
29+
rule: "exists:1"
30+
exemptions:
31+
- "DriftTheorems/**"
32+
- "Duality/**"
33+
- "blueprint/**"
34+
"lakefile.lean":
35+
rule: "exists:1"
36+
exemptions:
37+
- "DriftTheorems/**"
38+
- "Duality/**"
39+
- "blueprint/**"
40+
41+
disallowed-patterns:
42+
- "*.tmp"
43+
- "*.bak"
44+
- ".DS_Store"
45+
- "*.swp"

0 commit comments

Comments
 (0)