fashion_police 1.2.4 → 2.0.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: a66ab079123035a99d3825847e8c4a1be7c1941e
4
- data.tar.gz: 617d830178aedad41733f1161957cc1fcb43fa45
3
+ metadata.gz: e126b9b98346f31b6861fd50a08ddc4aa4456e0b
4
+ data.tar.gz: c9d9c6781d120d678a26a064d9ec9e90bcc923ad
5
5
  SHA512:
6
- metadata.gz: a6a63f9927af6acd80b8a93970e87f507028c2e9c6dce4ca4797aaa69177d631a4479cefe7c2bd1c6d19fe3ab83400b86b5b0fadbacaabfefd0f4fc49f72e086
7
- data.tar.gz: 4fdaee250291c225ad81f2b67d0241e668c6fa3b859d3720ede735df9e33cd272ae4acc99c565d0e343efdbaa996785ed2ee326ee4194d0e89bf8859cecf81d3
6
+ metadata.gz: aadd0501b0ef679dfec0b45564e4890e1ad10a355d81de5cdb51935e79682553ba2d75310a74af2937ba7d06448116919303aac3b795f6ab39d30b8e3a9c44a0
7
+ data.tar.gz: 8de3c35084a0ad3c7bd80fb5e252b6fe5bd5827307575fd1599606d7f72cf58f0e252584966390b53259033dc277f56c8a22b70acdb2be47a3d967e05b0313d0
data/.rubocop.yml CHANGED
@@ -1,138 +1 @@
1
- require: rubocop-rspec
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.3
5
- DisplayCopNames: true
6
-
7
- # Do not sort gems in Gemfile, since we are grouping them by functionality.
8
- Bundler/OrderedGems:
9
- Enabled: false
10
-
11
- # Add a comment before each gem in Gemfile.
12
- Bundler/GemComment:
13
- Enabled: true
14
-
15
- # Trailing commas are required on multiline method arguments.
16
- Style/TrailingCommaInArguments:
17
- EnforcedStyleForMultiline: comma
18
-
19
- # Trailing commas are required in multiline arrays.
20
- Style/TrailingCommaInArrayLiteral:
21
- EnforcedStyleForMultiline: comma
22
-
23
- # Trailing commas are required in multiline hashes.
24
- Style/TrailingCommaInHashLiteral:
25
- EnforcedStyleForMultiline: comma
26
-
27
- # Allow indenting multiline chained operations.
28
- Layout/MultilineMethodCallIndentation:
29
- EnforcedStyle: indented
30
-
31
- # Allow empty lines around blocks in specs.
32
- Layout/EmptyLinesAroundBlockBody:
33
- Exclude:
34
- - spec/**/*
35
-
36
- # Allow not adding parentheses around blocks in DSLs.
37
- # E.g.:
38
- # expect { … }.to change { … }
39
- Lint/AmbiguousBlockAssociation:
40
- Exclude:
41
- - spec/**/*
42
-
43
- # Limit method length (default is 10).
44
- Metrics/MethodLength:
45
- Max: 15
46
-
47
- # Limit class length (default is 100).
48
- Metrics/ClassLength:
49
- Max: 200
50
-
51
- # Do not require `# frozen_string_literal: true` at the top of every file.
52
- FrozenStringLiteralComment:
53
- Enabled: false
54
-
55
- # Allow ASCII comments (e.g "…").
56
- Style/AsciiComments:
57
- Enabled: false
58
-
59
- # Do not comment the class we create, since the name should be self explanatory.
60
- Documentation:
61
- Enabled: false
62
-
63
- # Do not verify the length of the blocks in DSLs.
64
- Metrics/BlockLength:
65
- Exclude:
66
- - "**/*/spec/**/*"
67
- - lib/tasks/**/*
68
- - app/admin/**/*
69
- - config/routes.rb
70
- ExcludedMethods:
71
- - included
72
-
73
- # Allow any number of keyword arguments in methods.
74
- Metrics/ParameterLists:
75
- CountKeywordArgs: false
76
-
77
- # Prefer `a_variable_1` to `a_variable1`.
78
- Naming/VariableNumber:
79
- EnforcedStyle: snake_case
80
-
81
- # Prefer `== 0`, `< 0`, `> 0` to `zero?`, `negative?` or `positive?`,
82
- # since they don't exist before Ruby 2.3 or Rails 5 and can be ambiguous.
83
- Style/NumericPredicate:
84
- EnforcedStyle: comparison
85
-
86
- # This cop by default assumes that `Rails.root.join('foo', 'bar')` works
87
- # better under Windows than `Rails.root.join('foo/bar')`.
88
- Rails/FilePath:
89
- EnforcedStyle: slashes
90
-
91
- # Do not checks for the use of output safety calls like `html_safe` and `raw`,
92
- # we know what we are doing.
93
- Rails/OutputSafety:
94
- Enabled: false
95
-
96
- # Allow `update_attribute`, we know when to use it.
97
- Rails/SkipsModelValidations:
98
- Enabled: false
99
-
100
- # Allow creating tables without timestamps, whe know what we are doing.
101
- Rails/CreateTableWithTimestamps:
102
- Enabled: false
103
-
104
- # Allow using `allow_any_instance_of` for stubbing.
105
- RSpec/AnyInstance:
106
- Enabled: false
107
-
108
- # Allow `let!` to setup test data in specs.
109
- RSpec/LetSetup:
110
- Enabled: false
111
-
112
- # Allow a nesting of up to 5 of describe/context blocks (default is 3).
113
- RSpec/NestedGroups:
114
- Max: 5
115
-
116
- # Allow any number of expectations in an example, for performance.
117
- RSpec/MultipleExpectations:
118
- Enabled: false
119
-
120
- # Allow using normal test doubles, since they are useful for mocking.
121
- RSpec/VerifiedDoubles:
122
- Enabled: false
123
-
124
- # Limit example length (default is 5)
125
- RSpec/ExampleLength:
126
- Max: 10
127
-
128
- # Prefer `change { User.count }` to `change(User, :count)`.
129
- RSpec/ExpectChange:
130
- EnforcedStyle: block
131
-
132
- # Allow template token "%{foo}" since they are used in translation keys.
133
- Style/FormatStringToken:
134
- EnforcedStyle: template
135
-
136
- # Prefer `->` to `lambda`.
137
- Style/Lambda:
138
- EnforcedStyle: literal
1
+ inherit_from: default.yml
data/CHANGELOG.md CHANGED
@@ -1,8 +1,40 @@
1
- Rubocop Gem updates
1
+ RuboCop Gem updates
2
2
  ===================
3
3
 
4
4
  ## Unreleased
5
5
 
6
+ ## v2.0.0
7
+
8
+ Breaking change:
9
+ - Can now inherit `Exclude` directives. For that you need to change your
10
+ `.rubocop.yml`:
11
+
12
+ Replace:
13
+
14
+ ```yml
15
+ inherit_gem:
16
+ fashion_police:
17
+ - .rubocop.yml
18
+ ```
19
+
20
+ By:
21
+
22
+ ```yml
23
+ inherit_gem:
24
+ fashion_police:
25
+ - default.yml
26
+
27
+ inherit_mode:
28
+ merge:
29
+ - Exclude
30
+ ```
31
+
32
+ Features:
33
+ - Update RuboCop dependency.
34
+
35
+ Fixes:
36
+ - Disable `Rails/Delegate`.
37
+
6
38
  ## v1.2.4
7
39
 
8
40
  Fixes:
@@ -33,7 +65,7 @@ Fixes:
33
65
 
34
66
  Features:
35
67
  - Prefer template style for "Style/FormatStringToken"
36
- - Add rubocop rules for RSpec
68
+ - Add RuboCop rules for RSpec
37
69
 
38
70
  Fixes:
39
71
  - Remove excluded files for AllCops, since they are not inherited
data/README.md CHANGED
@@ -25,7 +25,11 @@ Then, add to your `.rubocop.yml`:
25
25
  ```yml
26
26
  inherit_gem:
27
27
  fashion_police:
28
- - .rubocop.yml
28
+ - default.yml
29
+
30
+ inherit_mode:
31
+ merge:
32
+ - Exclude
29
33
  ```
30
34
 
31
35
  ### Release
data/default.yml ADDED
@@ -0,0 +1,143 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.3
5
+ DisplayCopNames: true
6
+
7
+ # Do not sort gems in Gemfile, since we are grouping them by functionality.
8
+ Bundler/OrderedGems:
9
+ Enabled: false
10
+
11
+ # Add a comment before each gem in Gemfile.
12
+ Bundler/GemComment:
13
+ Enabled: true
14
+
15
+ # Trailing commas are required on multiline method arguments.
16
+ Style/TrailingCommaInArguments:
17
+ EnforcedStyleForMultiline: comma
18
+
19
+ # Trailing commas are required in multiline arrays.
20
+ Style/TrailingCommaInArrayLiteral:
21
+ EnforcedStyleForMultiline: comma
22
+
23
+ # Trailing commas are required in multiline hashes.
24
+ Style/TrailingCommaInHashLiteral:
25
+ EnforcedStyleForMultiline: comma
26
+
27
+ # Allow indenting multiline chained operations.
28
+ Layout/MultilineMethodCallIndentation:
29
+ EnforcedStyle: indented
30
+
31
+ # Allow empty lines around blocks in specs.
32
+ Layout/EmptyLinesAroundBlockBody:
33
+ Exclude:
34
+ - spec/**/*
35
+
36
+ # Allow not adding parentheses around blocks in DSLs.
37
+ # E.g.:
38
+ # expect { … }.to change { … }
39
+ Lint/AmbiguousBlockAssociation:
40
+ Exclude:
41
+ - spec/**/*
42
+
43
+ # Limit method length (default is 10).
44
+ Metrics/MethodLength:
45
+ Max: 15
46
+
47
+ # Limit class length (default is 100).
48
+ Metrics/ClassLength:
49
+ Max: 200
50
+
51
+ # Do not require `# frozen_string_literal: true` at the top of every file.
52
+ FrozenStringLiteralComment:
53
+ Enabled: false
54
+
55
+ # Allow ASCII comments (e.g "…").
56
+ Style/AsciiComments:
57
+ Enabled: false
58
+
59
+ # Do not comment the class we create, since the name should be self explanatory.
60
+ Documentation:
61
+ Enabled: false
62
+
63
+ # Do not verify the length of the blocks in DSLs.
64
+ Metrics/BlockLength:
65
+ Exclude:
66
+ - "**/*/spec/**/*"
67
+ - lib/tasks/**/*
68
+ - app/admin/**/*
69
+ - config/routes.rb
70
+ ExcludedMethods:
71
+ - included
72
+
73
+ # Allow any number of keyword arguments in methods.
74
+ Metrics/ParameterLists:
75
+ CountKeywordArgs: false
76
+
77
+ # Prefer `a_variable_1` to `a_variable1`.
78
+ Naming/VariableNumber:
79
+ EnforcedStyle: snake_case
80
+
81
+ # Prefer `== 0`, `< 0`, `> 0` to `zero?`, `negative?` or `positive?`,
82
+ # since they don't exist before Ruby 2.3 or Rails 5 and can be ambiguous.
83
+ Style/NumericPredicate:
84
+ EnforcedStyle: comparison
85
+
86
+ # This cop by default assumes that `Rails.root.join('foo', 'bar')` works
87
+ # better under Windows than `Rails.root.join('foo/bar')`.
88
+ Rails/FilePath:
89
+ EnforcedStyle: slashes
90
+
91
+ # Do not checks for the use of output safety calls like `html_safe` and `raw`,
92
+ # we know what we are doing.
93
+ Rails/OutputSafety:
94
+ Enabled: false
95
+
96
+ # Allow `update_attribute`, we know when to use it.
97
+ Rails/SkipsModelValidations:
98
+ Enabled: false
99
+
100
+ # Allow creating tables without timestamps, whe know what we are doing.
101
+ Rails/CreateTableWithTimestamps:
102
+ Enabled: false
103
+
104
+ # Do not enforce the use of `delegate`, since small methods are easier to
105
+ # read.
106
+ Rails/Delegate:
107
+ Enabled: false
108
+
109
+ # Allow using `allow_any_instance_of` for stubbing.
110
+ RSpec/AnyInstance:
111
+ Enabled: false
112
+
113
+ # Allow `let!` to setup test data in specs.
114
+ RSpec/LetSetup:
115
+ Enabled: false
116
+
117
+ # Allow a nesting of up to 5 of describe/context blocks (default is 3).
118
+ RSpec/NestedGroups:
119
+ Max: 5
120
+
121
+ # Allow any number of expectations in an example, for performance.
122
+ RSpec/MultipleExpectations:
123
+ Enabled: false
124
+
125
+ # Allow using normal test doubles, since they are useful for mocking.
126
+ RSpec/VerifiedDoubles:
127
+ Enabled: false
128
+
129
+ # Limit example length (default is 5)
130
+ RSpec/ExampleLength:
131
+ Max: 10
132
+
133
+ # Prefer `change { User.count }` to `change(User, :count)`.
134
+ RSpec/ExpectChange:
135
+ EnforcedStyle: block
136
+
137
+ # Allow template token "%{foo}" since they are used in translation keys.
138
+ Style/FormatStringToken:
139
+ EnforcedStyle: template
140
+
141
+ # Prefer `->` to `lambda`.
142
+ Style/Lambda:
143
+ EnforcedStyle: literal
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'fashion_police'
3
- spec.version = '1.2.4'
3
+ spec.version = '2.0.0'
4
4
  spec.authors = ['Sunny Ripert']
5
5
  spec.email = ['sunny.ripert@kisskissbankbank.com']
6
6
 
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
 
14
14
  # Rubocop dependency to share the same version among our projects.
15
15
  # >= 0.59.0 for "Bundler/GemComment" cop.
16
- spec.add_dependency 'rubocop', '>= 0.59'
16
+ spec.add_dependency 'rubocop', '>= 0.61.1'
17
17
 
18
18
  # RSpec rules
19
19
  spec.add_dependency 'rubocop-rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fashion_police
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-07 00:00:00.000000000 Z
11
+ date: 2019-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.59'
19
+ version: 0.61.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0.59'
26
+ version: 0.61.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +81,7 @@ files:
81
81
  - LICENSE
82
82
  - README.md
83
83
  - Rakefile
84
+ - default.yml
84
85
  - fashion_police.gemspec
85
86
  homepage: https://github.com/KissKissBankBank/fashion_police
86
87
  licenses: []