• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dblock / rubocop-exception_messages / 34474704560
100%

Build:
DEFAULT BRANCH: master
Ran 10 Sep 2026 12:05PM UTC
Jobs 1
Files 10
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2026 12:04PM UTC coverage: 100.0%. Remained the same
34474704560

push

github

dblock
Add ExceptionMessages/RequireMessage cop

Opt-in cop that flags a bare `raise SomeError` (or `raise SomeError.new`)
with no message, since a message-less raise leaves nothing but the class
name to go on in a backtrace. `AllowedExceptions` allowlists exception
classes that don't need a message, and defaults to `NotImplementedError`,
since it's conventionally raised bare (e.g. for an abstract method, or a
feature unsupported on the current platform); RuboCop array config
replaces rather than merges, so a custom `AllowedExceptions` must repeat
`NotImplementedError` to keep it exempted.

Also documents in AGENTS.md that README examples use the
`raise Class, "message"` form for brevity unless the choice of raise
form is itself what a cop checks.

Closes #15.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

29 of 29 new or added lines in 2 files covered. (100.0%)

228 of 228 relevant lines covered (100.0%)

12.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34474704560.1 10 Sep 2026 12:05PM UTC 10
100.0
GitHub Action Run
Source Files on build 34474704560
  • Tree
  • List 10
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34474704560
  • 94b6d683 on github
  • Prev Build on master (#34165096375)
  • Next Build on master (#34551437222)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc