lean-ja / lean-ja/lean-by-example

環境リンターもオプションで制御できるようになった

Open
#2,541 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
188
Forks
15
Avg merge
9h 8m
Merged PRs (30d)
6

Description

v4.32.0 のリリースノートより

Environment Linters via Options🔗
#13893 (building on #13852's builtin linter sets) makes environment linters controlled by Lean options (Lean.Option), just like ordinary linters. Each environment linter is tied to a boolean option, so you can enable or disable it per declaration with set_option linter.X false in ... and across a lint run with the new lake lint --linters=linter.X,-linter.Y flag. Using --lint-only with the same syntax collects information only from the specified linters. Breaking change: the previous lake lint flags --extra, --lint-all, and the builtin_nolint attribute are removed in favour of this option-based control. linter.extra becomes a linter set whose members are the existing extra linters.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating documentation or examples in lean-by-example that discuss linters, then compare them with the v4.32.0 release-note details in this issue. Review Lean.Option, set_option linter.X, lake lint --linters, and --lint-only; done means the relevant guidance reflects the option-based controls and removed flags.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.