Skip to content

cacheventures/code-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •