servactory-rubocop 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rubocop-gem.yml +69 -0
- data/rubocop-rails.yml +64 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52f33371f8ed8d17e480608f2859edbf4ea4c583a754344983c5d1e87c451487
|
4
|
+
data.tar.gz: 0da958eaf3396e1cde6276a401be19f5ba59f6536e94117e875376d180c906e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 020d89809671257f6f89ab38997f60115a00fb4bf257b346f1f2698c093e3ed81c792ebc7d6df3111db93baa386cba812a5164e54feb4a85afa3be17340e9b6f
|
7
|
+
data.tar.gz: 16a78295d0322b810f89cb2cb98cdb0cb1c905cfc08fc1b19eeae0c00cad264aeb70d31f51e7357edd7c9b88e0cfcf8d34604ca69b64ada35cd3d63ab57b843b
|
data/rubocop-gem.yml
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-performance
|
3
|
+
- rubocop-rake
|
4
|
+
- rubocop-rspec
|
5
|
+
|
6
|
+
inherit_mode:
|
7
|
+
merge:
|
8
|
+
- Exclude
|
9
|
+
|
10
|
+
AllCops:
|
11
|
+
NewCops: enable
|
12
|
+
|
13
|
+
################################################################################
|
14
|
+
|
15
|
+
Gemspec/DevelopmentDependencies:
|
16
|
+
Enabled: pending
|
17
|
+
EnforcedStyle: gemspec
|
18
|
+
SupportedStyles:
|
19
|
+
- Gemfile
|
20
|
+
- gems.rb
|
21
|
+
- gemspec
|
22
|
+
AllowedGems: [ ]
|
23
|
+
Include:
|
24
|
+
- '**/*.gemspec'
|
25
|
+
- '**/Gemfile'
|
26
|
+
- '**/gems.rb'
|
27
|
+
|
28
|
+
################################################################################
|
29
|
+
|
30
|
+
Metrics/ParameterLists:
|
31
|
+
Max: 12
|
32
|
+
|
33
|
+
Naming/BlockForwarding:
|
34
|
+
Enabled: pending
|
35
|
+
EnforcedStyle: explicit
|
36
|
+
BlockForwardingName: block
|
37
|
+
|
38
|
+
Naming/VariableNumber:
|
39
|
+
EnforcedStyle: snake_case
|
40
|
+
|
41
|
+
Style/ArgumentsForwarding:
|
42
|
+
UseAnonymousForwarding: false
|
43
|
+
|
44
|
+
Style/CaseEquality:
|
45
|
+
AllowOnConstant: true
|
46
|
+
AllowOnSelfClass: false
|
47
|
+
|
48
|
+
Style/Documentation:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Style/HashSyntax:
|
52
|
+
EnforcedShorthandSyntax: always
|
53
|
+
|
54
|
+
Style/StringLiterals:
|
55
|
+
EnforcedStyle: double_quotes
|
56
|
+
|
57
|
+
################################################################################
|
58
|
+
|
59
|
+
RSpec/ExampleLength:
|
60
|
+
Max: 20
|
61
|
+
|
62
|
+
RSpec/IndexedLet:
|
63
|
+
Max: 4
|
64
|
+
|
65
|
+
RSpec/MultipleMemoizedHelpers:
|
66
|
+
Max: 8
|
67
|
+
|
68
|
+
RSpec/NestedGroups:
|
69
|
+
Max: 8
|
data/rubocop-rails.yml
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-factory_bot
|
3
|
+
- rubocop-performance
|
4
|
+
- rubocop-rails
|
5
|
+
- rubocop-rake
|
6
|
+
- rubocop-rspec
|
7
|
+
- rubocop-rspec_rails
|
8
|
+
|
9
|
+
inherit_mode:
|
10
|
+
merge:
|
11
|
+
- Exclude
|
12
|
+
|
13
|
+
AllCops:
|
14
|
+
NewCops: enable
|
15
|
+
|
16
|
+
################################################################################
|
17
|
+
|
18
|
+
Style/ClassAndModuleChildren:
|
19
|
+
EnforcedStyle: compact
|
20
|
+
Exclude:
|
21
|
+
- config/application.rb
|
22
|
+
|
23
|
+
Style/Documentation:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Style/HashSyntax:
|
27
|
+
EnforcedShorthandSyntax: always
|
28
|
+
|
29
|
+
Style/StringLiterals:
|
30
|
+
EnforcedStyle: double_quotes
|
31
|
+
|
32
|
+
################################################################################
|
33
|
+
|
34
|
+
Rails/Output:
|
35
|
+
Exclude:
|
36
|
+
- db/**/*.rb
|
37
|
+
|
38
|
+
################################################################################
|
39
|
+
|
40
|
+
RSpec/EmptyExampleGroup:
|
41
|
+
Exclude:
|
42
|
+
- spec/requests/**/*.rb
|
43
|
+
|
44
|
+
RSpec/ExampleLength:
|
45
|
+
Max: 20
|
46
|
+
|
47
|
+
RSpec/MultipleMemoizedHelpers:
|
48
|
+
Max: 16
|
49
|
+
|
50
|
+
RSpec/NamedSubject:
|
51
|
+
EnforcedStyle: named_only
|
52
|
+
|
53
|
+
RSpec/NestedGroups:
|
54
|
+
Max: 10
|
55
|
+
|
56
|
+
RSpec/SpecFilePathFormat:
|
57
|
+
Include:
|
58
|
+
- "spec/**/*_spec.rb"
|
59
|
+
Exclude:
|
60
|
+
- "spec/requests/**/*_spec.rb"
|
61
|
+
|
62
|
+
RSpec/VariableName:
|
63
|
+
AllowedPatterns:
|
64
|
+
- Authorization
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servactory-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
@@ -114,7 +114,9 @@ email:
|
|
114
114
|
executables: []
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
|
-
files:
|
117
|
+
files:
|
118
|
+
- rubocop-gem.yml
|
119
|
+
- rubocop-rails.yml
|
118
120
|
homepage: https://github.com/servactory/rubocop
|
119
121
|
licenses:
|
120
122
|
- MIT
|