leanprover / lean4

Lean 4 programming language and theorem prover
https://lean-lang.org
Apache License 2.0
4.71k stars 424 forks source link

RFC: give linters access to all the syntax up to the current command #6076

Open adomani opened 3 days ago

adomani commented 3 days ago

Proposal

Community Feedback

Besides the Zulip thread mentioned above, this had already come up on Zulip here.

Impact

Add :+1: to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add :+1: to it.

Kha commented 2 days ago

Likely this should be done by giving linters access to the entire snapshot tree; they are closer to language server request handlers than elaborators anyway.

Kha commented 2 days ago

RFC accepted!

adomani commented 2 days ago

Wonderful! This is great!

adomani commented 2 days ago

Also, I am not really sure how I could help, but I am happy to be of any assistance, e.g. by trying out potential solutions in some test cases that I have!