Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace SemanticBlocks with custom BlockDelimiters #263

Merged
merged 1 commit into from
Mar 3, 2021

Commits on Mar 3, 2021

  1. Replace SemanticBlocks with custom BlockDelimiters

    This change will move Standard from attempting to enforce Weirich-style semantic blocks, because there will always be edge-cases we can't cover automatically, given how expressive Ruby is and the fact that certain cases are genuinely ambiguous, such that an automated tool cannot reliably determine the authorial intent of a block.
    
    Instead, the new rule will only enforce that single-line blocks be delimited with `{` and `}`, but otherwise allow users to use whatever multiline format they wish.
    searls committed Mar 3, 2021
    Configuration menu
    Copy the full SHA
    37cde0d View commit details
    Browse the repository at this point in the history