This PR changes the way the linting for `linter.unusedSimpArgs` gets the value from the environment. This is achieved by using the appropriate helper functions defined in `Lean.Linter.Basic`. The following now compiles without warning ```lean4 set_option linter.all false in example : True := by simp [False] ``` Fixes #12559
9 lines
567 B
Text
9 lines
567 B
Text
gring_11543.lean:7:8-7:21: warning: declaration uses `sorry`
|
|
gring_11543.lean:17:8-17:22: warning: declaration uses `sorry`
|
|
gring_11543.lean:40:9-40:44: warning: declaration uses `sorry`
|
|
gring_11543.lean:48:9-48:28: warning: declaration uses `sorry`
|
|
gring_11543.lean:58:8-58:25: warning: declaration uses `sorry`
|
|
gring_11543.lean:65:9-65:30: warning: declaration uses `sorry`
|
|
gring_11543.lean:74:8-74:20: warning: declaration uses `sorry`
|
|
gring_11543.lean:91:8-91:22: warning: declaration uses `sorry`
|
|
gring_11543.lean:123:8-123:28: warning: declaration uses `sorry`
|