barcoop 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8ce64d411c35913faa32cf6523d4b76b41c9c66
4
- data.tar.gz: c6def3f016fa0a2160b4e52e80e886a1f2617547
3
+ metadata.gz: 6490ba52e6de12c0f9489717875c1cf6e25abada
4
+ data.tar.gz: 8b194be47cdff54bc9f9519a014a4bc74e406633
5
5
  SHA512:
6
- metadata.gz: 3692b7c5a638a9df174e9ec3f2a71365980c8d73132b95eb4a5d547631d97ff09a252de00eee0e72ff74ae3b9153a64b420cde078c83d72b6008899c8e597b87
7
- data.tar.gz: 5d965481afdfe7491680bf161126535158f76057747322df4a7a1114ab30bdd1085e00f80b606cc64efa221d048adfe26d08c39a583c0b15519e12f97a68df8d
6
+ metadata.gz: 0b0786f8dbfefbb1c2475d72ac0e953934a8add154a3ea8d79b132cc23d235b112b7d7283022249248c94bdd5e491b7352c0978c0bf72a5fc12863ae30232928
7
+ data.tar.gz: e0968354f8d71ca5df0e2bdb2efc4d065acb267b4b2baa40b99905d4c81cc4dead30c9978cd2dc5a0bb9668e4e9b004c3dcc68794a7d841e2a8b37f76c7dfa92
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  Gemfile.lock
2
+ pkg
data/README.md CHANGED
@@ -24,6 +24,12 @@ inherit_gem:
24
24
  barcoop: conf/rubocop.yml
25
25
  ```
26
26
 
27
+ If your project is a Rails app or engine, use `rubocop_rails.yml`
28
+ ```yaml
29
+ inherit_gem:
30
+ barcoop: conf/rubocop_rails.yml
31
+ ```
32
+
27
33
  ### Cops
28
34
 
29
35
  This gems provides the following cops:
data/conf/rubocop.yml CHANGED
@@ -4,8 +4,6 @@
4
4
  # for default configuration
5
5
 
6
6
  require:
7
- - barcoop/cops/avoid_rails_env.rb
8
- - barcoop/cops/avoid_fixtures.rb
9
7
  - barcoop/cops/avoid_timeout.rb
10
8
 
11
9
  AllCops:
@@ -21,23 +19,18 @@ AllCops:
21
19
  - 'test/dummy/db/**/*'
22
20
  - 'test/dummy/vendor/**/*'
23
21
 
24
- Rails:
25
- Enabled: true
26
22
 
27
23
  Documentation:
28
24
  Enabled: false
29
25
 
30
26
  Metrics/LineLength:
31
27
  Max: 200
32
- # Enabled: false
33
28
 
34
29
  Metrics/MethodLength:
35
30
  Max: 40
36
- # Enabled: false
37
31
 
38
32
  Metrics/ModuleLength:
39
33
  Max: 500
40
- # Enabled: false
41
34
 
42
35
  Metrics/AbcSize:
43
36
  # The ABC size is a calculated magnitude, so this number can be a Fixnum or a Float.
@@ -0,0 +1,6 @@
1
+ require:
2
+ - barcoop/cops/avoid_rails_env.rb
3
+ - barcoop/cops/avoid_fixtures.rb
4
+
5
+ Rails:
6
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Barcoop
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barcoop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Medina
@@ -66,6 +66,7 @@ files:
66
66
  - Rakefile
67
67
  - barcoop.gemspec
68
68
  - conf/rubocop.yml
69
+ - conf/rubocop_rails.yml
69
70
  - lib/barcoop.rb
70
71
  - lib/barcoop/cops/avoid_fixtures.rb
71
72
  - lib/barcoop/cops/avoid_rails_env.rb