Repository navigation
Release 1.5.0: hold litany to Hypha's rules, write its docs plainly - #5
Merged
Merged
Conversation
litany enforces Hypha's rules in every other repository, but its own litany file selected the default set alone, so the rules the compiler does not hold were held here by reading. The file now opens with Hypha's lint set and make lint runs the litany this tree builds on it. The code meets it: each type's own compare, min and max, the type named at each ignore, matches where a list's head or tail was taken, every case of an owned variant. What AGENTS.md already allowed -- the driver's printing and environment, the benchmarks' clock, the opens of Litany, Cmdliner and Windtrap -- is a per-path with its reason, not an attribute at each use, and the parser vendored from dune stays as dune wrote it. The docs read as notes to the rules' maintainer. Selecting rules never showed how to turn a rule on, and a rule's page opened with a line of codes, "suspicious · warning · nursery · since 1.0 · fix: never · off by default", that no page explained. Selecting rules now starts with the litany file and the flags, each rule's page opens with a table of its group, default, stability, fix and version, and litany explain and litany rules say the same in sentences. Published prose carries no semicolons. make docs copied every odoc folder named litany@<hash>, and dune keeps an old one when the hash changes, so the copy failed on the first's read-only files. The recipe removes them before the build.
An agent using litany reaches it through its package, whose doc/ holds the catalogue and the pages. Its libraries are private to its source tree, so it installs no interface for a pointer to sit in. Its reference now has the table of packages every library's has, naming hypha-litany, and its README's With an agent says, as every library's does, that every package installs the documentation and how to send an agent there.
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.
Why
litany enforces Hypha's rules in every other repository, but its own
litanyfile selected the default set alone, so the rules the compiler does not hold were held here by reading. Its docs read as notes to the rules' maintainer: Selecting rules never showed how to turn a rule on, and each rule's page opened with a line of codes no page explained. Andmake docsfailed once dune kept an old odoc folder beside the new one.Changes
litanyfile opens with Hypha's lint set, andmake lintrunslitany checkon it. The code meets it, and what AGENTS.md allows is aper-pathwith its reason.litany explainsays a rule's state in sentences, andlitany rulesends with a plain count, in place ofsuspicious · warning · nursery · since 1.0 · fix: never · off by defaultand "cherry-picked; outside all".litanyfile and the flags, and Configuration links to it instead of repeating it.litany rules --helpcarry no semicolons.hypha-litany.make docsremoves oldlitany@<hash>odoc folders before it builds, so the copy takes only the current one.Verified
make lint: 0 findings under Hypha's lint set, over 451 units.make testpasses, with the newexplainandrulesoutput reviewed before promotion.make docsbuilds with every internal link valid, andagents/regenerated with it.