RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Standard Ruby on Apple Silicon and Docker: one linter, two runners

Standard is RuboCop with an unconfigurable ruleset, and that removes a whole category of style debates from code review. The post covers what it gives you (--fix, --generate-todo, plugins like standard-rails, the Ruby LSP add-on) and how it layers its config on top of RuboCop, first-in-wins.

The practical part is for Rails apps running in Docker Compose. A small bin/standardrb script lints natively on Apple Silicon, including Rosetta-translated shells, and falls back to the container everywhere else, with the same results from both. It also covers lockfile platforms, pg native gems, lefthook wiring with --force-exclusion, and CI.

Standard Ruby on Apple Silicon and Docker: One Linter, Two Runners

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in