rrrene / credo

A static code analysis tool for the Elixir language with a focus on code consistency and teaching.
http://credo-ci.org/
MIT License
4.93k stars 417 forks source link

feat: allow ignoring module attributes in Credo.Check.Readability.StrictModuleLayout #1048

Closed btkostner closed 10 months ago

btkostner commented 1 year ago

A lot of libraries define custom attributes and DSLs that adjust code in the next function. This PR allows users to ignore specific attributes from the Credo.Check.Readability.StrictModuleLayout check. Documentation and tests included.

Examples:

btkostner commented 1 year ago

@rrrene Sorry for the ping but is there anything I can do to get this reviewed and merged? I'm pretty sure GH was having issues when I submitted the PR and that's why the checks are all failing.

btkostner commented 10 months ago

Alright, checks are running again 👍

rrrene commented 10 months ago

@btkostner Thx! Will be released for X-Mas 🎄 👍

btkostner commented 10 months ago

@rrrene Awesome! Thank you for your work maintaining this awesome library 🎊