lifen-ruby-style 1.0.8 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.overcommit.yml +26 -16
- data/README.md +3 -2
- data/default_overcommit.yml +26 -16
- data/default_rubocop.yml +10 -6
- data/lib/lifen/ruby_style/version.rb +1 -1
- data/lifen-ruby-style.gemspec +3 -2
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cbac6f002e6d616e150c920089419d9a44b5b7b93c549dff410be015a353210
|
4
|
+
data.tar.gz: f2d267a1b83879b8bfea25b49ea08d28b9664deef816d93083761c208685a970
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0c69f959d219382dd5392b1f8beb0e3972a5520f8859abaaccb83908c4e04b336b5a5433b3cc6f1966860dfff9c44e1fa74757dd18342fa34e86ce9da71b5e9
|
7
|
+
data.tar.gz: 7f11f7497a3b3a26657865d0a9856c1620cde6bebeeba19473d063086075195402fbc0a247eb74b289dd9ff2c7a328d5d35d5b754af3078ffdf17d22126c9510
|
data/.overcommit.yml
CHANGED
@@ -16,37 +16,47 @@
|
|
16
16
|
# Uncomment the following lines to make the configuration take effect.
|
17
17
|
|
18
18
|
PreCommit:
|
19
|
+
RubocopDaemonStart:
|
20
|
+
enabled: true
|
21
|
+
command: ['bundle', 'exec', 'rubocop-daemon', 'start']
|
22
|
+
parallelize: false
|
23
|
+
|
19
24
|
RuboCop:
|
20
25
|
enabled: true
|
21
|
-
command: [
|
26
|
+
command: ['bundle', 'exec', 'rubocop-daemon', 'exec', '--', '--format=emacs', '--auto-correct']
|
27
|
+
required_executable: 'rubocop-daemon'
|
28
|
+
flags: []
|
29
|
+
install_command: 'gem install rubocop-daemon'
|
22
30
|
problem_on_unmodified_line: ignore
|
23
31
|
|
24
32
|
GoFmt:
|
25
33
|
enabled: false
|
26
34
|
|
35
|
+
AuthorEmail:
|
36
|
+
enabled: false
|
37
|
+
AuthorName:
|
38
|
+
enabled: false
|
39
|
+
BrokenSymlinks:
|
40
|
+
enabled: false
|
41
|
+
CaseConflicts:
|
42
|
+
enabled: false
|
43
|
+
MergeConflicts:
|
44
|
+
enabled: false
|
45
|
+
|
27
46
|
CommitMsg:
|
28
47
|
CapitalizedSubject:
|
29
48
|
enabled: false
|
30
49
|
|
50
|
+
EmptyMessage:
|
51
|
+
enabled: false
|
52
|
+
|
31
53
|
SingleLineSubject:
|
32
|
-
enabled:
|
54
|
+
enabled: false
|
33
55
|
on_warn: fail
|
34
56
|
|
35
57
|
TextWidth:
|
36
|
-
enabled:
|
58
|
+
enabled: false
|
37
59
|
|
38
60
|
TrailingPeriod:
|
39
|
-
enabled:
|
61
|
+
enabled: false
|
40
62
|
on_warn: fail
|
41
|
-
#PreCommit:
|
42
|
-
# TrailingWhitespace:
|
43
|
-
# enabled: true
|
44
|
-
# exclude:
|
45
|
-
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files
|
46
|
-
#
|
47
|
-
#PostCheckout:
|
48
|
-
# ALL: # Special hook name that customizes all hooks of this type
|
49
|
-
# quiet: true # Change all post-checkout hooks to only display output on failure
|
50
|
-
#
|
51
|
-
# IndexTags:
|
52
|
-
# enabled: true # Generate a tags file with `ctags` each time HEAD changes
|
data/README.md
CHANGED
@@ -289,11 +289,12 @@ $ bundle exec rubocop --fail-fast # inspect files in order of modification time
|
|
289
289
|
Pour de la correction automatique :
|
290
290
|
|
291
291
|
```bash
|
292
|
-
$ bundle exec rubocop -a # auto-correct offenses.
|
293
292
|
$ bundle exec rubocop --safe # run only safe cops.
|
294
|
-
$ bundle exec rubocop --
|
293
|
+
$ bundle exec rubocop --auto-correct # run auto-correct only when it's safe.
|
294
|
+
$ bundle exec rubocop --auto-correct-all # run auto-correct (safe and unsafe).
|
295
295
|
$ bundle exec rubocop --lint # run only lint cops.
|
296
296
|
$ bundle exec rubocop --fix-layout # run only layout cops, with auto-correct on.
|
297
|
+
$ bundle exec rubocop --auto-correct-all --only "Style/AccessModifierDeclarations,Style/Alias,Style/AndOr,Style/ArrayJoin" # run autocorrect on listed cops
|
297
298
|
```
|
298
299
|
|
299
300
|
Liste des commandes disponibles :
|
data/default_overcommit.yml
CHANGED
@@ -16,37 +16,47 @@
|
|
16
16
|
# Uncomment the following lines to make the configuration take effect.
|
17
17
|
|
18
18
|
PreCommit:
|
19
|
+
RubocopDaemonStart:
|
20
|
+
enabled: true
|
21
|
+
command: ['bundle', 'exec', 'rubocop-daemon', 'start']
|
22
|
+
parallelize: false
|
23
|
+
|
19
24
|
RuboCop:
|
20
25
|
enabled: true
|
21
|
-
command: [
|
26
|
+
command: ['bundle', 'exec', 'rubocop-daemon', 'exec', '--', '--format=emacs', '--auto-correct']
|
27
|
+
required_executable: 'rubocop-daemon'
|
28
|
+
flags: []
|
29
|
+
install_command: 'gem install rubocop-daemon'
|
22
30
|
problem_on_unmodified_line: ignore
|
23
31
|
|
24
32
|
GoFmt:
|
25
33
|
enabled: false
|
26
34
|
|
35
|
+
AuthorEmail:
|
36
|
+
enabled: false
|
37
|
+
AuthorName:
|
38
|
+
enabled: false
|
39
|
+
BrokenSymlinks:
|
40
|
+
enabled: false
|
41
|
+
CaseConflicts:
|
42
|
+
enabled: false
|
43
|
+
MergeConflicts:
|
44
|
+
enabled: false
|
45
|
+
|
27
46
|
CommitMsg:
|
28
47
|
CapitalizedSubject:
|
29
48
|
enabled: false
|
30
49
|
|
50
|
+
EmptyMessage:
|
51
|
+
enabled: false
|
52
|
+
|
31
53
|
SingleLineSubject:
|
32
|
-
enabled:
|
54
|
+
enabled: false
|
33
55
|
on_warn: fail
|
34
56
|
|
35
57
|
TextWidth:
|
36
|
-
enabled:
|
58
|
+
enabled: false
|
37
59
|
|
38
60
|
TrailingPeriod:
|
39
|
-
enabled:
|
61
|
+
enabled: false
|
40
62
|
on_warn: fail
|
41
|
-
#PreCommit:
|
42
|
-
# TrailingWhitespace:
|
43
|
-
# enabled: true
|
44
|
-
# exclude:
|
45
|
-
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files
|
46
|
-
#
|
47
|
-
#PostCheckout:
|
48
|
-
# ALL: # Special hook name that customizes all hooks of this type
|
49
|
-
# quiet: true # Change all post-checkout hooks to only display output on failure
|
50
|
-
#
|
51
|
-
# IndexTags:
|
52
|
-
# enabled: true # Generate a tags file with `ctags` each time HEAD changes
|
data/default_rubocop.yml
CHANGED
@@ -45,7 +45,7 @@ Layout/IndentationConsistency:
|
|
45
45
|
EnforcedStyle: indented_internal_methods
|
46
46
|
|
47
47
|
Layout/LineLength:
|
48
|
-
|
48
|
+
Enabled: false
|
49
49
|
|
50
50
|
Layout/MultilineMethodCallIndentation:
|
51
51
|
EnforcedStyle: indented
|
@@ -74,22 +74,24 @@ Metrics/MethodLength:
|
|
74
74
|
Metrics/ModuleLength:
|
75
75
|
Max: 250
|
76
76
|
|
77
|
+
Metrics/ParameterLists:
|
78
|
+
Enabled: false
|
79
|
+
|
77
80
|
Metrics/PerceivedComplexity:
|
78
81
|
Enabled: false
|
79
82
|
|
80
83
|
Naming/MemoizedInstanceVariableName:
|
81
84
|
EnforcedStyleForLeadingUnderscores: required
|
82
85
|
|
83
|
-
RSpec/DescribeClass:
|
84
|
-
Exclude:
|
85
|
-
- spec/lib/tasks/deployment/**/*
|
86
|
-
|
87
86
|
Style/BlockDelimiters:
|
88
87
|
EnforcedStyle: braces_for_chaining
|
89
88
|
|
90
89
|
Style/ClassAndModuleChildren:
|
91
90
|
Enabled: false
|
92
91
|
|
92
|
+
Style/ExplicitBlockArgument:
|
93
|
+
AutoCorrect: false
|
94
|
+
|
93
95
|
Style/Documentation:
|
94
96
|
Enabled: false
|
95
97
|
|
@@ -140,6 +142,8 @@ RSpec/AnyInstance:
|
|
140
142
|
|
141
143
|
RSpec/DescribedClass:
|
142
144
|
EnforcedStyle: explicit
|
145
|
+
Exclude:
|
146
|
+
- spec/lib/tasks/deployment/**/*
|
143
147
|
|
144
148
|
RSpec/EmptyExampleGroup:
|
145
149
|
Enabled: false
|
@@ -160,7 +164,7 @@ RSpec/MultipleMemoizedHelpers:
|
|
160
164
|
Enabled: false
|
161
165
|
|
162
166
|
RSpec/NestedGroups:
|
163
|
-
|
167
|
+
Enabled: false
|
164
168
|
|
165
169
|
RSpec/NotToNot:
|
166
170
|
EnforcedStyle: to_not
|
data/lifen-ruby-style.gemspec
CHANGED
@@ -30,10 +30,11 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
32
|
spec.add_dependency 'overcommit'
|
33
|
-
spec.add_dependency 'rubocop', '~>
|
33
|
+
spec.add_dependency 'rubocop', '~> 1.5'
|
34
|
+
spec.add_dependency 'rubocop-daemon'
|
34
35
|
spec.add_dependency 'rubocop-performance', '~> 1.5'
|
35
36
|
spec.add_dependency 'rubocop-rails', '~> 2.4'
|
36
|
-
spec.add_dependency 'rubocop-rspec', '~>
|
37
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.0'
|
37
38
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
38
39
|
spec.add_development_dependency 'rake', '~> 10.0'
|
39
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lifen-ruby-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Lifen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: overcommit
|
@@ -30,14 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-daemon
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rubocop-performance
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +86,14 @@ dependencies:
|
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
89
|
+
version: '2.0'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '2.0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
164
|
- !ruby/object:Gem::Version
|
151
165
|
version: '0'
|
152
166
|
requirements: []
|
153
|
-
rubygems_version: 3.0.
|
167
|
+
rubygems_version: 3.0.3
|
154
168
|
signing_key:
|
155
169
|
specification_version: 4
|
156
170
|
summary: Lifen style guides and shared style configs.
|