RuboCop rules for Socketry projects.
bundle add rubocop-socketry
Please see the project documentation for more details.
Ensures that blank lines have the same indentation as the previous non-blank line.
Layout/ConsistentBlankLineIndentation:
Enabled: truePlease see the project releases for all releases.
- Fixed
Layout/BlockDelimiterSpacingto correctly distinguish between statement and expression contexts for blocks insidedo...endblocks.
- Fixed
Layout/BlockDelimiterSpacingto correctly handle blocks insidedo...endblocks (statements should have space before braces).
- Refined
Style/GlobalExceptionVariablesto allow global exception variables in safe contexts:- Inside rescue blocks (well-defined scope).
- In rescue modifiers (
expression rescue $!). - In method parameter defaults (
def foo(error = $!)).
- Added specific warning for using global exception variables in ensure blocks (extremely unsafe).
- Extended
Layout/BlockDelimiterSpacingto handle lambda and proc constructs (->,lambda,proc,Proc.new).
- Added
Style/GlobalExceptionVariablescop to warn against using global exception variables ($!,$@,$ERROR_INFO,$ERROR_POSITION).
- Added
Layout/BlockDelimiterSpacingcop to enforce consistent spacing before block delimiters.
- Initial implementation of
Layout/ConsistentBlankLineIndentation.
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create new Pull Request.
In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.