alpinelab-codestyle 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +20 -3
- data/config/default.yml +9 -0
- data/config/rails.yml +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ace7b38749735c8b0898729eafa80c6b27e39e3561b45325f91151087b093d0
|
4
|
+
data.tar.gz: fd642e6e9c689bb111803a7a0649606511484a8ffa7110809a2a68c172ee7e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2630184c3cc94a1e378401d8d77ca95084c2a704482aa60306c12b1ee9cf729e78adf68a5e1b4f5d8bac106da30912de8d0136f9857f6b130c444c2c1e0cdad0
|
7
|
+
data.tar.gz: 24127902e54bb1404a562346dfc43579ed3c89f408b6696f40261c1635c9eb3b7c95b09ccf225c18112b86a25393576829e55d50b61f073d4d6cc162b036600d
|
data/README.md
CHANGED
@@ -4,10 +4,26 @@ Code style used by AlpineLab in all our projects.
|
|
4
4
|
|
5
5
|
## Usage
|
6
6
|
|
7
|
-
1. Add
|
7
|
+
1. Add `rubocop` gems to your `Gemfile` (or `gems.rb`, or `gems.deps.rb`):
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
group :development do
|
10
|
+
group :development, :test do
|
11
|
+
gem "rubocop", "~> x.y", require: false
|
12
|
+
gem "rubocop-md", "~> x.y", require: false
|
13
|
+
end
|
14
|
+
```
|
15
|
+
|
16
|
+
or install them manually:
|
17
|
+
|
18
|
+
```shell
|
19
|
+
gem install rubocop rubocop-md
|
20
|
+
```
|
21
|
+
|
22
|
+
2. Add `alpinelab-codestyle` gem to your `Gemfile`
|
23
|
+
(or `gems.rb`, or `gems.deps.rb`):
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
group :development, :test do
|
11
27
|
gem "alpinelab-codestyle", "~> x.y"
|
12
28
|
end
|
13
29
|
```
|
@@ -18,12 +34,13 @@ Code style used by AlpineLab in all our projects.
|
|
18
34
|
gem install alpinelab-codestyle
|
19
35
|
```
|
20
36
|
|
21
|
-
|
37
|
+
3. Create or prepend your Rubocop configuration (usually `.rubocop.yml`) with:
|
22
38
|
|
23
39
|
```yaml
|
24
40
|
inherit_gem:
|
25
41
|
alpinelab-codestyle:
|
26
42
|
- config/default.yml
|
43
|
+
- config/rails.yml
|
27
44
|
```
|
28
45
|
|
29
46
|
## Best practices
|
data/config/default.yml
CHANGED
@@ -15,3 +15,12 @@ Style/DoubleNegation:
|
|
15
15
|
|
16
16
|
Style/StringLiterals:
|
17
17
|
EnforcedStyle: double_quotes
|
18
|
+
|
19
|
+
Style/TrailingCommaInArguments:
|
20
|
+
EnforcedStyleForMultiline: consistent_comma
|
21
|
+
|
22
|
+
Style/TrailingCommaInArrayLiteral:
|
23
|
+
EnforcedStyleForMultiline: consistent_comma
|
24
|
+
|
25
|
+
Style/TrailingCommaInHashLiteral:
|
26
|
+
EnforcedStyleForMultiline: consistent_comma
|
data/config/rails.yml
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alpinelab-codestyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AlpineLab developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- LICENSE.md
|
53
53
|
- README.md
|
54
54
|
- config/default.yml
|
55
|
+
- config/rails.yml
|
55
56
|
homepage: https://www.alpine-lab.com
|
56
57
|
licenses:
|
57
58
|
- MIT
|