shlogg · Early preview
Augusts Bautra @augustsbautra

Software Engineering Best Practices For Consistent Code Style

Add trailing commas everywhere, consistent indentation, disallow whitespace for formatting. Consider leading dot syntax.

TL;DR

Add trailing commas everywhere
Use consistent indentation
Disallow whitespace for formatting/aligning
Consider leading dot syntax, YMMW

  
  
  The story

For me it all started with the announcement of version 1.0 release of the standard gem sometime back in March, 2021. Here was a library by the accomplished @searls that pre-configured Rubocop for the benefit of all mankind, and I was eager to imbibe. Perusing the readme, I immediately noticed the "Leading dots on multi-line method chains" point and opened the thread that lead to that decision.
The first argument for adopting the part...