Skip to content

Commit 635071f

Browse files
committed
Turned on linter
1 parent 931ddea commit 635071f

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/workflows/lean_action_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
use-github-cache: true
2626

2727
leioscrypto-spec:
28-
if: true
28+
if: false # Turn off because the `proofwidgets` dependency fails to build due to an `npm` dependency.
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v4

post-cip/formal-crypto/lean/lakefile.lean

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ import Lake
22

33
open Lake DSL
44

5+
abbrev linter : Array LeanOption := #[
6+
⟨`linter.longLine, true⟩,
7+
-- (`linter.style.multiGoal, true),
8+
-- (`linter.textBased.trailingWhitespace, true),
9+
-- (`linter.defLemma, true),
10+
⟨`linter.missingEnd, true⟩,
11+
⟨`linter.setOption, true
12+
]
13+
514
package «leioscrypto» where
615
version := StdVer.mk (SemVerCore.mk 0 1 0) ""
716
testDriver := "leioscrypto_test"
@@ -12,7 +21,7 @@ package «leioscrypto» where
1221
⟨`autoImplicit, false⟩,
1322
-- suppresses the checkBinderAnnotations error/warning
1423
⟨`checkBinderAnnotations, false⟩,
15-
]
24+
] ++ linter.map fun s ↦ { s with name := `weak ++ s.name }
1625
moreServerOptions := #[
1726
⟨`trace.debug, true⟩,
1827
]

post-cip/formal-crypto/lean/src/Leioscrypto.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import Leioscrypto.Registration
77
import Leioscrypto.StakeDistribution
88
import Leioscrypto.Types
99
import Leioscrypto.Vote
10+
import Mathlib.Tactic.Linter
11+
12+
13+
#lint
14+
1015

1116
/-!
1217
# Leioscrypto: formalization of Leios cryptography.

0 commit comments

Comments
 (0)