All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- README guidance for function-level rescue support and custom
acceptable_calls - test coverage for project-specific error reporter call names
- improved Hex package shape by publishing only the relevant source and docs files
- Function-level rescue detection: Now detects silent rescue in
def/defpblocks (e.g.,defp foo do ... rescue _ -> [] end), not justtry/rescue. Previously, function-level rescues were invisible to the check. - Accumulator bug in
has_acceptable_call?:Macro.prewalkaccumulator was reset tofalseon non-matching AST nodes, potentially missing acceptable calls found earlier in sibling branches.
- Expanded test suite from 5 to 20+ tests covering function-level rescue, accumulator correctness, mixed scenarios, and test file skipping.
- Initial release
CredoExceptionSwallow.Checks.Warning.SilentRescuecheck to detect rescue blocks that silently swallow exceptions- Detects rescue blocks without proper logging, error reporting, or re-raising
- Configurable acceptable function calls (Logger, Sentry, ErrorReporter, reraise, raise)
- Option to skip test files (enabled by default)
- File exclusion support via Credo's standard
filesoption