boxt_rubocop 0.0.40 → 0.0.41

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/default.yml +17 -0
  4. data/rails.yml +2 -0
  5. data/rspec.yml +13 -0
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ba3a53e5f3793c4146a7f07021c52e0dd2722ffe2b6ebc7a4ec17d2323cd9bb
4
- data.tar.gz: baf079b29ea7bf8389e3a397ad44c6d5a3a4b1681df3e507c147d3479125783f
3
+ metadata.gz: 6e96f314026104893b461b70ec41d928bd73b9d8ebe502ea634b820e9fc84829
4
+ data.tar.gz: 0427f624d0a77b95e68d4ba28284ceb82aabbb8c897682a15c40effd97fedb74
5
5
  SHA512:
6
- metadata.gz: 75c70dc5ceb1d58c9a73866e01b8f305d288753c0d247fbdf344f40b96d75a0185ddcddc167b6c5832d8afad2d303726aea6350f226edb67f2724dfbe6a85ff9
7
- data.tar.gz: 4a34d3da2073004757b29895822d1a84cf25315225a9aa7fe9c82b7ffe2291e043bd83f6bd74c5c49495871e19e7843d01266a04769a75e5581e94f0773e8a67
6
+ metadata.gz: d24d184e62bbe367994c27911b1c51589e699bf06ecec85ca2f6b5ab9d83380141de3b4d216d7a36ac258c4d9451ad53045c955bb52b9dc820ca887db40d083a
7
+ data.tar.gz: 1abf75870417e9c5b274ceb7c6c908494efaf29b67d3a498c7d25577692c9fa79c8c1cba02eeea591da3c7edad4853226c3fabc48d19e5ef051601b9cac888bb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.40
1
+ 0.0.41
data/default.yml CHANGED
@@ -6,38 +6,55 @@ AllCops:
6
6
  - tmp/**/*
7
7
  - vendor/**/*
8
8
  NewCops: enable
9
+
9
10
  Layout/ClassStructure:
10
11
  Enabled: true
12
+
11
13
  Layout/LineLength:
12
14
  Exclude:
13
15
  - config/routes.rb
14
16
  - config/routes/*
15
17
  Max: 120
18
+
16
19
  Metrics/AbcSize:
17
20
  Exclude:
18
21
  - db/migrate/**/*
22
+
19
23
  Metrics/BlockLength:
24
+ CountAsOne: ["array", "hash"]
20
25
  Exclude:
21
26
  - "*.gemspec"
22
27
  - Gemfile
28
+ - config/environments/*
23
29
  - config/routes.rb
24
30
  - config/routes/*
25
31
  - db/migrate/**/*
32
+ - lib/tasks/**/*
26
33
  - spec/**/*
27
34
  - test/**/*
35
+
28
36
  Metrics/ClassLength:
37
+ CountAsOne: ["array", "hash"]
29
38
  Exclude:
30
39
  - db/migrate/**/*
31
40
  - spec/**/*
32
41
  - test/**/*
42
+
33
43
  Metrics/MethodLength:
44
+ CountAsOne: ["array", "heredoc", "hash"]
34
45
  Exclude:
35
46
  - db/migrate/**/*
36
47
  - spec/**/*
37
48
  - test/**/*
49
+
50
+ Metrics/ModuleLength:
51
+ CountAsOne: ["array", "hash"]
52
+
38
53
  Style/Documentation:
39
54
  Enabled: false
55
+
40
56
  Style/DoubleNegation:
41
57
  Enabled: false
58
+
42
59
  Style/StringLiterals:
43
60
  EnforcedStyle: double_quotes
data/rails.yml CHANGED
@@ -2,12 +2,14 @@ Rails/ApplicationController:
2
2
  Exclude:
3
3
  - spec/**/*
4
4
  - test/**/*
5
+
5
6
  Rails/SkipsModelValidations:
6
7
  Exclude:
7
8
  - db/migrate/**/*
8
9
  - lib/tasks/**/*
9
10
  - spec/**/*
10
11
  - test/**/*
12
+
11
13
  Rails/UnknownEnv:
12
14
  Environments:
13
15
  - cucumber
data/rspec.yml CHANGED
@@ -3,13 +3,26 @@
3
3
  RSpec/DescribeClass:
4
4
  Exclude:
5
5
  - spec/tasks/**/*
6
+
6
7
  # Avoid opening modules and defining specs within them
7
8
  RSpec/DescribedClassModuleWrapping:
8
9
  Enabled: true
10
+
9
11
  # This is to prevent Rubocop from bugging on a spec helper that doesn't contain an example, which the support ones don't
10
12
  RSpec/LeadingSubject:
11
13
  Exclude:
12
14
  - spec/support
15
+
16
+ # Allow arrays and hashes to be counted as one line in examples
17
+ RSpec/ExampleLength:
18
+ CountAsOne: ["array", "hash"]
19
+
20
+ # Because 5 is a bit mean
21
+ RSpec/MultipleMemoizedHelpers:
22
+ Max: 10
23
+
13
24
  # Allow there to be a max of 4 example groups deep in Rspec tests
14
25
  RSpec/NestedGroups:
15
26
  Max: 4
27
+
28
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxt_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boxt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-14 00:00:00.000000000 Z
11
+ date: 2023-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop