rubocop-rubomatic 1.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,36 @@
1
+ inherit_from:
2
+ - ./rubomatic/rubocop.yml
3
+ - ./bundler.yml
4
+ - ./gemspec.yml
5
+ # - ./gemspec_on.yml
6
+ - ./layout.yml
7
+ - ./lint.yml
8
+ - ./metrics.yml
9
+ - ./migration.yml
10
+ - ./naming.yml
11
+ - ./performance.yml
12
+ - ./security.yml
13
+ - ./style.yml
14
+
15
+ inherit_mode:
16
+ merge:
17
+ - Exclude
18
+
19
+ AllCops:
20
+ NewCops: disable
21
+ Exclude:
22
+ - 'vendor/**/*'
23
+ - 'spec/fixtures/**/*'
24
+ - 'tmp/**/*'
25
+ - '.git/**/*'
26
+ - 'bin/*'
27
+ - '.idea/*'
28
+ - 'log/*'
29
+ - 'node_modules/**/*'
30
+ - 'test/**/*'
31
+ - '.irbrc'
32
+ - 'db/schema.rb'
33
+ TargetRubyVersion: <%= ENV['RUBY_MAJOR'] %>
34
+ SuggestExtensions: false
35
+ StyleGuideBaseURL: https://github.com/BrandsInsurance/expert-chainsaw/blob/main/ruby/RUBY_STYLE_GUIDE.adoc
36
+ ActiveSupportExtensionsEnabled: true
@@ -0,0 +1,4 @@
1
+ Rubomatic/Layout/MultilineArrayLineBreaks:
2
+ Enabled: true
3
+ AllowMultilineFinalElement: true
4
+ AllowPercentArray: true
@@ -0,0 +1,5 @@
1
+ require: rubocop-rubomatic
2
+
3
+ inherit_from:
4
+ - ./layout.yml
5
+ - ./style.yml
@@ -0,0 +1,2 @@
1
+ Rubomatic/Style/DisallowedMethods:
2
+ Enabled: true
@@ -0,0 +1,53 @@
1
+ Security/CompoundHash:
2
+ Description: 'When overwriting Object#hash to combine values, prefer delegating to Array#hash over writing a custom implementation.'
3
+ Enabled: true
4
+ VersionAdded: '1.28'
5
+
6
+ Security/Eval:
7
+ Description: 'The use of eval represents a serious security risk.'
8
+ Enabled: true
9
+ VersionAdded: '0.47'
10
+
11
+ Security/IoMethods:
12
+ Description: >-
13
+ Checks for the first argument to `IO.read`, `IO.binread`, `IO.write`, `IO.binwrite`,
14
+ `IO.foreach`, and `IO.readlines`.
15
+ Enabled: true
16
+ Safe: false
17
+ VersionAdded: '1.22'
18
+
19
+ Security/JSONLoad:
20
+ Description: >-
21
+ Prefer usage of `JSON.parse` over `JSON.load` due to potential
22
+ security issues. See reference for more information.
23
+ Reference: 'https://ruby-doc.org/stdlib-2.7.0/libdoc/json/rdoc/JSON.html#method-i-load'
24
+ Enabled: true
25
+ VersionAdded: '0.43'
26
+ VersionChanged: '1.22'
27
+ # Autocorrect here will change to a method that may cause crashes depending
28
+ # on the value of the argument.
29
+ SafeAutoCorrect: false
30
+
31
+ Security/MarshalLoad:
32
+ Description: >-
33
+ Avoid using of `Marshal.load` or `Marshal.restore` due to potential
34
+ security issues. See reference for more information.
35
+ Reference: 'https://ruby-doc.org/core-2.7.0/Marshal.html#module-Marshal-label-Security+considerations'
36
+ Enabled: true
37
+ VersionAdded: '0.47'
38
+
39
+ Security/Open:
40
+ Description: 'The use of `Kernel#open` and `URI.open` represent a serious security risk.'
41
+ Enabled: true
42
+ VersionAdded: '0.53'
43
+ VersionChanged: '1.0'
44
+ Safe: false
45
+
46
+ Security/YAMLLoad:
47
+ Description: >-
48
+ Prefer usage of `YAML.safe_load` over `YAML.load` due to potential
49
+ security issues. See reference for more information.
50
+ Reference: 'https://ruby-doc.org/stdlib-2.7.0/libdoc/yaml/rdoc/YAML.html#module-YAML-label-Security'
51
+ Enabled: true
52
+ VersionAdded: '0.47'
53
+ SafeAutoCorrect: false