Project

barcoop

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
barcoo's rubocop config and cops
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0

Runtime

~> 0.74.0
 Project Readme

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/