rubocop-commsworld 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39674230cfbc2ecd43e089a4177043a7036ccc2eb9dff358a88503f9ddbecfe1
4
- data.tar.gz: 44f9471346f05530b6ff89b00692a06214ae84dd2921b1e18831fcb7e4fb2142
3
+ metadata.gz: 44dd55d77d66fcb35f66e5504159198cee53c3f2c2769a948d1f7c14a806c556
4
+ data.tar.gz: 3cbe12f7d9e329280fe2dbf349281dc9529bed9ae41f70e6403753e73d94d1c6
5
5
  SHA512:
6
- metadata.gz: dd243fd8cae487c3385bb7d7aa9c271d0b476cf9bb36deead53d9268790035ee2740cf4c5c7f97219033edb12d1791bd799c21630712a16855cfa1d5c81a4502
7
- data.tar.gz: e550ace3c0cf36da1d3f27c61eb109f0355f08091b597d643108be6a845d1b3dab7d4fa2ce24bd7edca7e28c5f29197362d1fee9de41aa988050409e3019cdb1
6
+ metadata.gz: b57148a69a11510a16618746f7740bdff6378ce494017ce2c938efec7f62912fe0551a401e9102fc9f2ba957795819a0ab4bf20d9023fa1945e8f992fa545625
7
+ data.tar.gz: a4bd9d71a5ffd32094d220cb99773eb80fe31ec29f489dc999f781bbaab5f92d08a2a6f91f9f805795628da863dd3464329edb1c257030f0d270d7a92dff0d43
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-commsworld (0.1.0)
4
+ rubocop-commsworld (0.4.0)
5
5
  rubocop (~> 1.0)
6
6
  rubocop-rails (~> 2.5)
7
7
  rubocop-rspec (~> 2.0)
@@ -9,27 +9,27 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.1.1)
12
+ activesupport (6.1.4)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
17
  zeitwerk (~> 2.3)
18
- ast (2.4.1)
18
+ ast (2.4.2)
19
19
  byebug (11.1.3)
20
- concurrent-ruby (1.1.7)
20
+ concurrent-ruby (1.1.9)
21
21
  diff-lcs (1.4.4)
22
- i18n (1.8.7)
22
+ i18n (1.8.10)
23
23
  concurrent-ruby (~> 1.0)
24
- minitest (5.14.3)
24
+ minitest (5.14.4)
25
25
  parallel (1.20.1)
26
- parser (3.0.0.0)
26
+ parser (3.0.2.0)
27
27
  ast (~> 2.4.1)
28
28
  rack (2.2.3)
29
29
  rainbow (3.0.0)
30
30
  rake (12.3.3)
31
- regexp_parser (2.0.3)
32
- rexml (3.2.4)
31
+ regexp_parser (2.1.1)
32
+ rexml (3.2.5)
33
33
  rspec (3.10.0)
34
34
  rspec-core (~> 3.10.0)
35
35
  rspec-expectations (~> 3.10.0)
@@ -43,22 +43,22 @@ GEM
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
44
  rspec-support (~> 3.10.0)
45
45
  rspec-support (3.10.1)
46
- rubocop (1.8.1)
46
+ rubocop (1.18.4)
47
47
  parallel (~> 1.10)
48
48
  parser (>= 3.0.0.0)
49
49
  rainbow (>= 2.2.2, < 4.0)
50
50
  regexp_parser (>= 1.8, < 3.0)
51
51
  rexml
52
- rubocop-ast (>= 1.2.0, < 2.0)
52
+ rubocop-ast (>= 1.8.0, < 2.0)
53
53
  ruby-progressbar (~> 1.7)
54
54
  unicode-display_width (>= 1.4.0, < 3.0)
55
- rubocop-ast (1.4.0)
56
- parser (>= 2.7.1.5)
57
- rubocop-rails (2.9.1)
55
+ rubocop-ast (1.8.0)
56
+ parser (>= 3.0.1.1)
57
+ rubocop-rails (2.11.3)
58
58
  activesupport (>= 4.2.0)
59
59
  rack (>= 1.1)
60
- rubocop (>= 0.90.0, < 2.0)
61
- rubocop-rspec (2.1.0)
60
+ rubocop (>= 1.7.0, < 2.0)
61
+ rubocop-rspec (2.4.0)
62
62
  rubocop (~> 1.0)
63
63
  rubocop-ast (>= 1.1.0)
64
64
  ruby-progressbar (1.11.0)
@@ -7,6 +7,10 @@ AllCops:
7
7
  - tmp/**/*
8
8
  ExtraDetails: yes
9
9
 
10
+ # TODO: Decide whether to configure this.
11
+ Commsworld/UnspecifiedModelPrivacy:
12
+ Enabled: false
13
+
10
14
  Layout/EmptyLinesAroundBlockBody:
11
15
  Exclude:
12
16
  - db/**/*.rb
@@ -48,8 +52,15 @@ Lint/MissingSuper:
48
52
  Lint/UnusedBlockArgument:
49
53
  Enabled: no
50
54
 
55
+ Metrics/AbcSize:
56
+ Exclude:
57
+ - app/helpers/application_helper.rb
58
+
51
59
  Metrics/BlockLength:
52
60
  Exclude:
61
+ - app/admin/**/*.rb
62
+ - config/initializers/*.rb
63
+ - config/routes.rb
53
64
  - db/**/*.rb
54
65
  - lib/tasks/**/*.rake
55
66
  - spec/**/*_spec.rb
@@ -59,9 +70,20 @@ Metrics/MethodLength:
59
70
  Exclude:
60
71
  - db/**/*.rb
61
72
 
73
+ Metrics/ParameterLists:
74
+ CountKeywordArguments: false
75
+
76
+ Naming/MethodParameterName:
77
+ Exclude:
78
+ - spec/support/**/*.rb
79
+
62
80
  Rails/Delegate:
63
81
  Enabled: no
64
82
 
83
+ Rails/DynamicFindBy:
84
+ Whitelist:
85
+ - find_by_reference
86
+
65
87
  Rails/LexicallyScopedActionFilter:
66
88
  Exclude:
67
89
  - app/controllers/application_controller.rb
@@ -81,6 +103,7 @@ RSpec/ContextWording:
81
103
  RSpec/DescribeClass:
82
104
  Exclude:
83
105
  - spec/features/**/*_spec.rb
106
+ - spec/requests/**/*_spec.rb
84
107
  - spec/system/**/*_spec.rb
85
108
  - spec/support/**/*.rb
86
109
 
@@ -92,6 +115,9 @@ RSpec/InstanceVariable:
92
115
  - spec/components/**/*_spec.rb
93
116
  - spec/support/**/*.rb
94
117
 
118
+ RSpec/MultipleMemoizedHelpers:
119
+ Max: 10
120
+
95
121
  Style/ClassAndModuleChildren:
96
122
  Exclude:
97
123
  - app/components/**/*.rb
@@ -112,6 +138,10 @@ Style/EmptyMethod:
112
138
  Style/FrozenStringLiteralComment:
113
139
  Enabled: no
114
140
 
141
+ Style/GuardClause:
142
+ Exclude:
143
+ - app/controllers/**/*_controller.rb
144
+
115
145
  Style/HashAsLastArrayItem:
116
146
  Enabled: no
117
147
 
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Commsworld
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.4.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-commsworld
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lewis Eason
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop