Repository navigation
chore: lint deslag's own comments for verbs negated through their objects - #147
Merged
Merged
Conversation
…ects Turn on verbs_no_nouns in the [rust] section of deslag's own config and reword the 89 places in the comments of src/ that it found. The house style is to negate the verb, so "has no budget" is now "does not have a budget". Where a comment quoted the lint's own example, the example is now in a code span. Only comments change. The density lint stays off for Rust: it fires on the module docs.
Say "any" where a singular read as one particular key, file or field, and keep the origin checks' comment from reading as if they are skipped.
webern
marked this pull request as ready for review
October 9, 2026 00:03
2 tasks done
webern
added a commit
that referenced
this pull request
Oct 31, 2026
## Human Summary Describe the lints a bit better in the README.md. LLM written then re-written by me. ## Summary The README's Cool Lints section was two one-line examples and a TODO that said to sell it better. This rewrites the section. Each of the three construction lints gets its own heading: `verbs_no_nouns`, `verbs_nothing` and `not_at_all`. Each one says what the tic is, what the lint tells the LLM to do, and shows before/after pairs. The pairs are not invented. They are rewrites from this repo's own history, made when each lint was first turned on against the Rust doc comments: #147 for `verbs_no_nouns`, #193 for `not_at_all` and #233 for `verbs_nothing`. The "89 findings in 45 files" count is from the #147 description. A closing part says why these are not allow-lists: the word sets are Rust data, and each lint must hold its corpus claim (llm files trip it at least 3 times as often as human files, at most 3.5% of human files trip it), which the tests re-derive on every run. Only `README.md` changes. The README has `llm_edit: false`; the owner authorized this edit for the Cool Lints section only. ## Testing - [x] `make ci-fast`: exit 0 - [x] every before/after pair checked against the diff of the commit it came from ## References - #147, #193, #233: the source of the examples - Related: #43, the issue that named the verbs-no-nouns tic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
[rust]section merged in #146 lets deslag lint the comments of its own source. This turns onverbs_no_nounsthere, as[md]already has it, and rewords what it found.The lint flags a verb negated through its object, as in
ships no X. This repo writesdoes not ship X, so "has no budget" became "does not have a budget", and so on across 45 files undersrc/. Only comments change: no code, no case, no golden file, no.stderr, notags.txt.densitystays off for Rust, because it fires on the//!module docs.The one config change is the new
[rust.lints.verbs_no_nouns]table in.agents/deslag.toml. No other setting, threshold or exception list moved.Counts, measured by
make check-deslagonefb39fd:src/change/mod.rs:111and:112).//text without code spans 0, other 0.bakes no cakes) are in code spans now. The 5 tagger cases read a noun phrase as a verb followed byno: "lines no wider than", "the ones no lint had settings for" (twice), "goes no further than", "confirm's no business". Each had an honest rewording that says the same thing, so each was reworded and none is exempted.A comment that made a claim that was not true would have had the claim dropped. None needed it.
Testing
make test: exit 0make check-fmt check-clippy check-doc check-typos check-deslag: exit 0deslag check --base origin/main: exit 0src/and.agents/deslag.tomlchangesReferences