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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25e5d9ac090dfa7090f47183e41db77c4204ef915c5f9e62a99ad5c07b85965e
4
- data.tar.gz: 94d609cc4399dc91d6cd6dd974912eccdb1392cf7877296c799576d087d44857
3
+ metadata.gz: 7ace7b38749735c8b0898729eafa80c6b27e39e3561b45325f91151087b093d0
4
+ data.tar.gz: fd642e6e9c689bb111803a7a0649606511484a8ffa7110809a2a68c172ee7e77
5
5
  SHA512:
6
- metadata.gz: 1e92ec6ba82dabfc80622a2e814d519f346eb21dd33e4e55419354d6739431e00fbc5383d5769860ff2cccd42877ecb23bd1a3e266a220d168dac2976b406aa7
7
- data.tar.gz: 59797909106f54f00d7148b1b5abeb09bb58d7497dd52465224f7e8b8e1e6e8803bed03f2ac88302ae49c4d55a67c82675f64719f98f5f4218b0df9e63e615c4
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 this gem to your `Gemfile` (or `gems.rb`, or `gems.deps.rb`):
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
- 2. Create or prepend your Rubocop configuration (usually `.rubocop.yml`) with:
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
@@ -0,0 +1,10 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ AllCops:
5
+ Exclude:
6
+ - bin/*
7
+ - config/boot.rb
8
+ - config/environment.rb
9
+ - config/environments/**/*.rb
10
+ - db/schema.rb
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.3.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-25 00:00:00.000000000 Z
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