Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.7 KB

File metadata and controls

24 lines (16 loc) · 1.7 KB

Cache Ventures Code Style

This repository contains linter configuration packages used by the development team at Cache Ventures.

Language Linter Package
Ruby RuboCop Version
JavaScript ESLint Version

Ruby updates

After the Ruby gem is updated in a project, in order to get rubocop to read the new rubocop.yml, you may need to run rubocop --restart-server.

Ruby .rubocop file

We have Layout/LineLength enabled with autocorrection off and a line length of 80 configured. In order to enable linting in our editors without having rubocop output all of the violations for the line length being exceeded when it runs, each project including the Ruby gem should have a .rubocop file in its base directory, containing the following line:

--display-only-fail-level-offenses

This configures a default argument for rubocop. If you want to override it to display the line length violations, you can pass RUBOCOP_OPTS= before the rubocop command on the CLI, since the environment variable options take precedence over the .rubocop file's arguments.