lifen-ruby-style 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/default.yml +45 -2
- data/lib/lifen/ruby_style/version.rb +1 -1
- data/lifen-ruby-style.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d266969ce59289650e1ee18330ec94c63e099b648bdbbe8efcf8ccf53eedfa0
|
4
|
+
data.tar.gz: 68b9aac1db031889b185bbe579197a002d8f90ba7480523261057f26908cf90c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f78e4151a49cfbadbc3003e00401ef3b0335166685dabbc02e6711fe90373ca783b0b95b09a8708d8f2331d54c101e10e3956adfcbb94359e7e8296d83e697
|
7
|
+
data.tar.gz: a1b7a1e9b262b424a8f7b16503f4852933f790ab04c81780afe3bdcf362609219521b2172794a7f52a7f89cd50ccd6187a4183aeda66549554ce54f91edb872c
|
data/README.md
CHANGED
@@ -64,4 +64,21 @@ Il suffit d'ajouter dans le flow un job avant les tests (ou en parallèles) avec
|
|
64
64
|
|
65
65
|
```bash
|
66
66
|
git diff-tree -r --no-commit-id --name-only 'origin/develop..HEAD' | xargs --no-run-if-empty bundle exec rubocop --config .rubocop.yml --force-exclusion --fail-level warn
|
67
|
+
```
|
68
|
+
|
69
|
+
## Evolution des règles
|
70
|
+
|
71
|
+
Pour modifier la configuration, le plus simple est de le faire sur un projet en local en modifiant le `Gemfile` :
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
group :development, :test do
|
75
|
+
gem 'lifen-ruby-style', path: '../lifen-ruby-style'
|
76
|
+
end
|
77
|
+
```
|
78
|
+
|
79
|
+
ainsi que le fichier `.rubocop.yml` :
|
80
|
+
|
81
|
+
```yaml
|
82
|
+
inherit_from:
|
83
|
+
- ../lifen-ruby-style/default.yml
|
67
84
|
```
|
data/default.yml
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
1
3
|
AllCops:
|
2
4
|
DisplayCopNames: true
|
3
5
|
DisplayStyleGuide: true
|
4
6
|
ExtraDetails: false
|
5
7
|
TargetRubyVersion: 2.5
|
6
8
|
Exclude:
|
7
|
-
- 'spec/**/*.rb'
|
8
9
|
- 'test/**/*.rb'
|
9
10
|
- 'bin/*'
|
10
11
|
- '*.gemspec'
|
@@ -106,4 +107,46 @@ Style/SymbolArray:
|
|
106
107
|
EnforcedStyle: brackets
|
107
108
|
|
108
109
|
Style/WordArray:
|
109
|
-
EnforcedStyle: brackets
|
110
|
+
EnforcedStyle: brackets
|
111
|
+
|
112
|
+
RSpec/AnyInstance:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
RSpec/Be:
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
RSpec/DescribedClass:
|
119
|
+
EnforcedStyle: explicit
|
120
|
+
|
121
|
+
RSpec/ExampleLength:
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
RSpec/HookArgument:
|
125
|
+
EnforcedStyle: each
|
126
|
+
|
127
|
+
RSpec/MultipleExpectations:
|
128
|
+
Enabled: false
|
129
|
+
|
130
|
+
RSpec/ImplicitExpect:
|
131
|
+
EnforcedStyle: should
|
132
|
+
|
133
|
+
RSpec/ImplicitSubject:
|
134
|
+
Enabled: false
|
135
|
+
|
136
|
+
RSpec/MessageSpies:
|
137
|
+
EnforcedStyle: receive
|
138
|
+
|
139
|
+
RSpec/NestedGroups:
|
140
|
+
Enabled: false
|
141
|
+
|
142
|
+
RSpec/NotToNot:
|
143
|
+
EnforcedStyle: to_not
|
144
|
+
|
145
|
+
RSpec/VerifiedDoubles:
|
146
|
+
Enabled: false
|
147
|
+
|
148
|
+
RSpec/ContextWording:
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
RSpec/LetSetup:
|
152
|
+
Enabled: false
|
data/lifen-ruby-style.gemspec
CHANGED
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
31
|
spec.add_dependency "rubocop", "~> 0.58"
|
32
|
+
spec.add_dependency "rubocop-rspec", "~> 1.29"
|
32
33
|
spec.add_development_dependency "bundler", "~> 1.15"
|
33
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
34
35
|
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: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Lifen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.58'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.29'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.29'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|