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 +4 -4
- data/README.adoc +40 -0
- data/configs/brands_insurance/rubocop.yml +2 -0
- data/configs/brands_insurance/style.yml +2 -0
- data/configs/bundler.yml +80 -0
- data/configs/gemspec.yml +2 -0
- data/configs/gemspec_on.yml +71 -0
- data/configs/layout.yml +1204 -0
- data/configs/lint.yml +987 -0
- data/configs/metrics.yml +110 -0
- data/configs/migration.yml +6 -0
- data/configs/naming.yml +316 -0
- data/configs/performance.yml +128 -0
- data/configs/rails.yml +1054 -0
- data/configs/rubocop.yml +37 -0
- data/configs/security.yml +53 -0
- data/configs/style.yml +2503 -0
- data/lib/rubomatic/version.rb +1 -1
- metadata +16 -1
data/configs/rubocop.yml
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
inherit_from:
|
2
|
+
- ./brands_insurance/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
|
+
- ./rails.yml
|
13
|
+
- ./security.yml
|
14
|
+
- ./style.yml
|
15
|
+
|
16
|
+
inherit_mode:
|
17
|
+
merge:
|
18
|
+
- Exclude
|
19
|
+
|
20
|
+
AllCops:
|
21
|
+
NewCops: disable
|
22
|
+
Exclude:
|
23
|
+
- 'vendor/**/*'
|
24
|
+
- 'spec/fixtures/**/*'
|
25
|
+
- 'tmp/**/*'
|
26
|
+
- '.git/**/*'
|
27
|
+
- 'bin/*'
|
28
|
+
- '.idea/*'
|
29
|
+
- 'log/*'
|
30
|
+
- 'node_modules/**/*'
|
31
|
+
- 'test/**/*'
|
32
|
+
- '.irbrc'
|
33
|
+
- 'db/schema.rb'
|
34
|
+
TargetRubyVersion: <%= ENV['RUBY_MAJOR'] %>
|
35
|
+
SuggestExtensions: false
|
36
|
+
StyleGuideBaseURL: https://github.com/BrandsInsurance/expert-chainsaw/blob/main/ruby/RUBY_STYLE_GUIDE.adoc
|
37
|
+
ActiveSupportExtensionsEnabled: 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
|