Skip to content

Lint documentation and clean up Markdown - #12

Merged
dblock merged 1 commit into
masterfrom
dblock/docs-lint
Nov 24, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/docs-lint

Conversation

@dblock

@dblock dblock commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Adds documentation linting and cleans up the Markdown.

  • Adds rubocop-md, rubocop-prose, rubocop-spellcheck, and rubocop-yaml with RuboCop 1.92 and rubocop-rake. They install only on MRI Ruby 3.3 and newer, so older Rubies in the test matrix still run specs.
  • rake lint checks Ruby, Ruby examples in Markdown, YAML, and spelling. A new Lint workflow (lint.yml) runs it on Ruby 4.0. rake runs lint and specs where lint is available.
  • .spellcheck.txt holds reviewed project vocabulary. .rubocop_todo.yml is regenerated for RuboCop 1.92, so existing Ruby code is not changed here.
  • This gem had no RuboCop before: adds rubocop and lint Rake tasks to the root Gemfile and Rakefile, and records existing Ruby offenses in a generated .rubocop_todo.yml instead of changing code. The Appraisal gemfiles used by the test matrix are unchanged.
  • README: rewrites the introduction, title-cases headings, moves the development notes into a new CONTRIBUTING.md, and links the project documentation.
  • Fixes typos (Instantitate, oberserver).

Validation: On Ruby 4.0.9, bundle exec rake lint runs 49 files through RuboCop with no offenses, and BUNDLE_GEMFILE=gemfiles/mongoid_9.gemfile bundle exec rake passes 62 unit and 2 integration examples against local MongoDB.

This PR was written by an AI (Claude) on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21iR4JxWxGGyXdJ3uc9

Add rubocop-md, rubocop-prose, rubocop-spellcheck, and rubocop-yaml
with RuboCop 1.92 on MRI Ruby 3.3 and newer, run them through a
`rake lint` task in a separate Lint workflow, add reviewed project
vocabulary to .spellcheck.txt, and clean up the Markdown documentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21iR4JxWxGGyXdJ3uc9
@dblock dblock mentioned this pull request Nov 23, 2026
@dblock
dblock added this pull request to stack #15 November 23, 2026 23:30
@github-actions

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 94.253%. remained the same — dblock/docs-lint into master

@dblock
dblock merged commit a14f57e into master Nov 24, 2026
20 checks passed
@dblock
dblock deleted the dblock/docs-lint branch November 24, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants