Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (28 loc) · 1009 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 1009 Bytes

Barcoop

Barcoo's shared RuboCop configuration and cops.

Installation

Add this line to your application's Gemfile:

group :development, :test do
  gem 'barcoop', require: false
end  

Or to your gem's gemspec file:

spec.add_development_dependency 'barcoop'

To use it just add the following line to your .rubocop.yml file:

inherit_gem:
  barcoop: conf/rubocop.yml

If your project is a Rails app or engine, use rubocop_rails.yml

inherit_gem:
  barcoop: conf/rubocop_rails.yml

Cops

This gems provides the following cops:

AvoidFixtures: Avoid using fixtures, use FactoryGirl instead

AvoidRailsEnv: Avoid using Rails.env.environment? and prefer adding a feature flag in a configuration file.

AvoidTimeout: Timeout.timeout is not thread safe, see http://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/