rubomatic 0.0.1.pre.rc.2 → 1.0.0.pre.rc.1

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
  SHA256:
3
- metadata.gz: af30f0b401cdd45178d225ebd409c1407de78896bcb09193e8a82bd78fcc25e3
4
- data.tar.gz: 6d3d02c1e4bdd5cfed22a39d16648e9cf5b784038ccfde9ff13876e469a1dd35
3
+ metadata.gz: 07a11630e4e638deb463b42b9a7dbbc9d1285190568333758ff8527d9844a4ee
4
+ data.tar.gz: 4c78a1fa6b870e9c427d4505cfdb8b147c4b5399ea8de0065f6cfcc2aa5ffdbf
5
5
  SHA512:
6
- metadata.gz: 68d3dcf932228532dab6e04ab2cb089c19c67e969507348a366a5f6e48cc244fd83f19c2bf71019786c14a8a88546b40aaef37577e01db1e798688bbb8fa3071
7
- data.tar.gz: d9998deab4ef67efbbd2fce3828d199d94a5cc95fb1e7c574a210469da9c9ea6c063150f85407d0c61ca037aa385577e1a7c0326daf497628e5d7b36454a2404
6
+ metadata.gz: 2ee24bc2c91f153838233274bb7c87fdb94109f96f7894dc7d9e47560157879980d1b18370855b25d5ee5ef857fcb915284e621afb76abcf9eafac5259e3675d
7
+ data.tar.gz: f1e99fdefc9c50e02a5fb238512523d616587ce68b2849df75a1ee16d6f371db9fdc448970f0300541afd6490b0ae477c7610c29d2c1bd2758adc50259f2823a
data/README.adoc CHANGED
@@ -34,6 +34,46 @@ inherit_gem:
34
34
  rubomatic: configs/rubocop.yml
35
35
  ----
36
36
 
37
+ If you need to override a setting:
38
+
39
+ [source,yaml]
40
+ ----
41
+ # Add to Naming/VariableNumber.AllowedIdentifiers
42
+ require:
43
+ - rubocop-rails
44
+ - rubocop-performance
45
+ - rubocop-brands_insurance
46
+
47
+ inherit_gem:
48
+ rubomatic: configs/rubocop.yml
49
+
50
+ Naming/VariableNumber:
51
+ inherit_mode:
52
+ merge:
53
+ - AllowedIdentifiers
54
+ AllowedIdentifiers:
55
+ - street_2
56
+ ----
57
+
58
+ [source,yaml]
59
+ ----
60
+ # Completely override Naming/VariableNumber.AllowedIdentifiers
61
+ require:
62
+ - rubocop-rails
63
+ - rubocop-performance
64
+ - rubocop-brands_insurance
65
+
66
+ inherit_gem:
67
+ rubomatic: configs/rubocop.yml
68
+
69
+ Naming/VariableNumber:
70
+ inherit_mode:
71
+ override:
72
+ - AllowedIdentifiers
73
+ AllowedIdentifiers:
74
+ - street_2
75
+ ----
76
+
37
77
  == Changelog
38
78
 
39
79
  See xref:./CHANGELOG.adoc[CHANGELOG] see see changes
@@ -0,0 +1,2 @@
1
+ inherit_from:
2
+ - ./style.yml
@@ -0,0 +1,2 @@
1
+ BrandsInsurance/Style/DisallowedMethods:
2
+ Enabled: true
@@ -0,0 +1,80 @@
1
+ Bundler/DuplicatedGem:
2
+ Description: 'Checks for duplicate gem entries in Gemfile.'
3
+ Enabled: true
4
+ Severity: warning
5
+ VersionAdded: '0.46'
6
+ VersionChanged: '1.40'
7
+ Include:
8
+ - '**/*.gemfile'
9
+ - '**/Gemfile'
10
+ - '**/gems.rb'
11
+
12
+ Bundler/GemComment:
13
+ Description: 'Add a comment describing each gem.'
14
+ Enabled: false
15
+ VersionAdded: '0.59'
16
+ VersionChanged: '0.85'
17
+ Include:
18
+ - '**/*.gemfile'
19
+ - '**/Gemfile'
20
+ - '**/gems.rb'
21
+ IgnoredGems: [ ]
22
+ OnlyFor: [ ]
23
+
24
+ Bundler/GemFilename:
25
+ Description: 'Enforces the filename for managing gems.'
26
+ Enabled: true
27
+ VersionAdded: '1.20'
28
+ EnforcedStyle: 'Gemfile'
29
+ SupportedStyles:
30
+ - 'Gemfile'
31
+ - 'gems.rb'
32
+ Include:
33
+ - '**/Gemfile'
34
+ - '**/gems.rb'
35
+ - '**/Gemfile.lock'
36
+ - '**/gems.locked'
37
+
38
+ Bundler/GemVersion:
39
+ Description: 'Requires or forbids specifying gem versions.'
40
+ Enabled: true
41
+ VersionAdded: '1.14'
42
+ EnforcedStyle: 'required'
43
+ SupportedStyles:
44
+ - 'required'
45
+ - 'forbidden'
46
+ Include:
47
+ - '**/*.gemfile'
48
+ - '**/Gemfile'
49
+ - '**/gems.rb'
50
+ AllowedGems: [ ]
51
+
52
+ Bundler/InsecureProtocolSource:
53
+ Description: >-
54
+ The source `:gemcutter`, `:rubygems` and `:rubyforge` are deprecated
55
+ because HTTP requests are insecure. Please change your source to
56
+ 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
57
+ Enabled: true
58
+ Severity: warning
59
+ VersionAdded: '0.50'
60
+ VersionChanged: '1.40'
61
+ AllowHttpProtocol: true
62
+ Include:
63
+ - '**/*.gemfile'
64
+ - '**/Gemfile'
65
+ - '**/gems.rb'
66
+
67
+ Bundler/OrderedGems:
68
+ Description: >-
69
+ Gems within groups in the Gemfile should be alphabetically sorted.
70
+ Enabled: false
71
+ VersionAdded: '0.46'
72
+ VersionChanged: '0.47'
73
+ TreatCommentsAsGroupSeparators: true
74
+ # By default, "-" and "_" are ignored for order purposes.
75
+ # This can be overridden by setting this parameter to true.
76
+ ConsiderPunctuation: false
77
+ Include:
78
+ - '**/*.gemfile'
79
+ - '**/Gemfile'
80
+ - '**/gems.rb'
@@ -0,0 +1,2 @@
1
+ Gemspec:
2
+ Enabled: false
@@ -0,0 +1,71 @@
1
+ Gemspec/DependencyVersion:
2
+ Description: 'Requires or forbids specifying gem dependency versions.'
3
+ Enabled: true
4
+ VersionAdded: '1.29'
5
+ EnforcedStyle: 'required'
6
+ SupportedStyles:
7
+ - 'required'
8
+ - 'forbidden'
9
+ Include:
10
+ - '**/*.gemspec'
11
+ AllowedGems: [ ]
12
+
13
+ Gemspec/DeprecatedAttributeAssignment:
14
+ Description: Checks that deprecated attribute assignments are not set in a gemspec file.
15
+ Enabled: true
16
+ Severity: warning
17
+ VersionAdded: '1.30'
18
+ VersionChanged: '1.40'
19
+ Include:
20
+ - '**/*.gemspec'
21
+
22
+ Gemspec/DuplicatedAssignment:
23
+ Description: 'An attribute assignment method calls should be listed only once in a gemspec.'
24
+ Enabled: true
25
+ Severity: warning
26
+ VersionAdded: '0.52'
27
+ VersionChanged: '1.40'
28
+ Include:
29
+ - '**/*.gemspec'
30
+
31
+ Gemspec/OrderedDependencies:
32
+ Description: >-
33
+ Dependencies in the gemspec should be alphabetically sorted.
34
+ Enabled: true
35
+ VersionAdded: '0.51'
36
+ TreatCommentsAsGroupSeparators: true
37
+ # By default, "-" and "_" are ignored for order purposes.
38
+ # This can be overridden by setting this parameter to true.
39
+ ConsiderPunctuation: false
40
+ Include:
41
+ - '**/*.gemspec'
42
+
43
+ Gemspec/RequireMFA:
44
+ Description: 'Checks that the gemspec has metadata to require Multi-Factor Authentication from RubyGems.'
45
+ Enabled: true
46
+ Severity: warning
47
+ VersionAdded: '1.23'
48
+ VersionChanged: '1.40'
49
+ Reference:
50
+ - https://guides.rubygems.org/mfa-requirement-opt-in/
51
+ Include:
52
+ - '**/*.gemspec'
53
+
54
+ Gemspec/RequiredRubyVersion:
55
+ Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.'
56
+ Enabled: true
57
+ Severity: warning
58
+ VersionAdded: '0.52'
59
+ VersionChanged: '1.40'
60
+ Include:
61
+ - '**/*.gemspec'
62
+
63
+ Gemspec/RubyVersionGlobalsUsage:
64
+ Description: Checks usage of RUBY_VERSION in gemspec.
65
+ StyleGuide: '#no-ruby-version-in-the-gemspec'
66
+ Enabled: true
67
+ Severity: warning
68
+ VersionAdded: '0.72'
69
+ VersionChanged: '1.40'
70
+ Include:
71
+ - '**/*.gemspec'