Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.51 KB

linters.md

File metadata and controls

24 lines (20 loc) · 1.51 KB

Linting and Code Inspection

Running Lint and CI tasks

RubyMine/Webstorm Linting Configuration

  • I started out trying to make RubyMine and WebStorm catch and fix linting errors. However, I find it faster to just do this with the command line. Your mileage may vary.

  • Create a custom scope like this for RubyMine, named "Inspection Scope"

    file[react-rails-tutorial]:/&&!file[react-rails-tutorial]:tmp//&&!file[react-rails-tutorial]:log//&&!file[react-rails-tutorial]:client/node_modules//&&!file[react-rails-tutorial]:client/assets/fonts//&&!file[react-rails-tutorial]:app/assets/fonts//&&!file[react-rails-tutorial]:bin//&&!file[react-rails-tutorial]:app/assets/javascripts//

  • Install the code style and inspection files in client/jetbrains

  • Use the installed inspection settings and new Inspection Scope for code inspection.

  • RubyMine configuration is optional. All linters run from the command line.

Linters

  1. Rubocop
  2. Ruby-Lint
  3. Eslint
  4. scss-lint
  5. brakeman
  6. bundle-audit