Zulip Chat Archive

Stream: CSLib

Topic: Spurious docstring blame


Shreyas Srinivas (Feb 23 2026 at 12:57):

I am getting a spurious docstring linter error in cslib#275

Automatically detecting modules to lint
Default modules: #[Cslib]
-- Found 1 error in 2303 declarations (plus 6406 automatically generated ones) in Cslib with 17 linters

/- The `docBlame` linter reports:
DEFINITIONS ARE MISSING DOCUMENTATION STRINGS: -/
-- Cslib.AlgorithmsTheory.QueryModel
.../cslib/Cslib/AlgorithmsTheory/QueryModel.lean:66:1: error: @Cslib.Algorithms.Model.timeQuery definition missing documentation string

Shreyas Srinivas (Feb 23 2026 at 12:58):

As you can see in the latest commit, the docstring is clearly available : https://github.com/leanprover/cslib/pull/275/changes/7e57d1548fcdc7b19e35894933bd6cf5c2559a5e

Shreyas Srinivas (Feb 23 2026 at 13:02):

This only happens locally apparently when I run lake lint

Chris Henson (Feb 23 2026 at 13:43):

Yes, environment linters are from lake lint, which just like Mathlib uses runLinter from batteries. It seems you resolved this already? I don't see any error locally or in CI.

Shreyas Srinivas (Feb 23 2026 at 13:44):

I still get it in my local folder

Chris Henson (Feb 23 2026 at 13:45):

Have you run lake build since adding the docstring? This is required for environment linters.

Shreyas Srinivas (Feb 23 2026 at 13:45):

I think so. I’ll try again

Shreyas Srinivas (Feb 23 2026 at 13:53):

Apparently it is fixed locally now

Shreyas Srinivas (Feb 23 2026 at 13:53):

Thanks

Shreyas Srinivas (Feb 23 2026 at 13:53):

I did need to run lake build again


Last updated: Feb 28 2026 at 14:05 UTC