Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flexible リンタの警告が消えない問題の修正 #961

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: lean action
uses: leanprover/lean-action@v1
with:
build-args: "--log-level=error"
build-args: "--fail-level=warning"

# Lean の更新により Windows 環境でだけビルドが壊れる可能性もあるので、
# 念のために Windows 環境でもビルドを行う
Expand Down
7 changes: 5 additions & 2 deletions LeanByExample/Reference/Option/Flexible.lean
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,17 @@ end --#
-/
section --#

-- flexible tactic リンタを有効にする
set_option linter.flexible true
-- 技術的な理由で、一時的に flexible tactic リンタを無効にしている --#
set_option linter.flexible false --#

/--
warning: 'simp' is a flexible tactic modifying '⊢'…
note: this linter can be disabled with `set_option linter.flexible false`
-/
#guard_msgs (warning) in
-- 技術的な理由で、`#guard_msgs` のスコープ内でリンタを有効にしている
set_option linter.flexible true in

example {n m : Nat} (h : n = m) : True ∧ (n = m) := by
simp
exact h
Expand Down