standard
standard copied to clipboard
Ruby's bikeshed-proof linter and formatter 🚲
After talking to @vinistock at Kaigi, I want to take a stab at advertising a working Ruby LSP addon from within the gem so that Ruby LSP users can get...
Hi, I found an error in standardrb with this code: ```ruby config.cache_store = :redis_cache_store, {url: ENV.fetch("REDIS_URL", "redis://localhost:6379")} ``` standardrb v1.22.1
Curly braces are a part of Regex syntax (`.{3,}`, `.{,9}` etc.), so if the literal contains curlybraces, I have to use some other unspecified fallback delimiters. Bikeshedding ensues. Let's use...
## Background The [dot-config](https://dot-config.github.io/) standard is a pseudo-extension of the [XDG Base Directory Standard](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) from the FreeDesktop project. It proposes that the `$PROJECT_ROOT/.config` folder contains all the configuration files for...
I'm looking at adapting Standard in new and existing codebases in our company. One thing that's throwing me off is that there doesn't seem to be a central place to...
First off, I love this project, and it's brought significant joy to my life and the lives of my team. Truly - _thank you_ for the significant amount of hard...
I'm on Windows and I want to override the EnforcedStyle from "native" to "lf", so here's my .standard.yml ```yaml plugins: - standard-rails ignore: - 'db/migrate/20240401101848_create_delayed_jobs.rb': - Layout/ExtraSpacing - Rails/ReversibleMigrationMethodDefinition #...
The originally recommended Github Action in the README has gone unmaintained and no longer works due to the Ruby version being too old. See: * https://github.com/andrewmcodes/standardrb-action/pull/20 * https://github.com/andrewmcodes/standardrb-action/pull/23 * https://github.com/andrewmcodes/standardrb-action/commits/main/...
I think i am missing something about how to set up my linting/syntax checking, but for some reason in all my ruby projects, i get this error on the Gemfile.lock:...
Just updated standard to 1.34.0 and saw this failure: ```ruby def set_time_zone(&block) Time.use_zone(current_user.time_zone, &block) end ``` Which auto-fixes to this: ```ruby def set_time_zone(&) Time.use_zone(current_user.time_zone, &) end ``` I was kinda...