gatemedia_rubocop 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/config/.rubocop.yml +19 -8
- data/lib/gatemedia_rubocop/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1518e305ca99f82a9701be2a8f0b56ad185a3d2
|
4
|
+
data.tar.gz: 920a0c87f0e8b92e179773618fcf537c84801553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 645036acb406c93be5125f1f0151638a91adeb0137e93d5864cfa54594fcd9441d5ea1e8ed777cf380a7f804c476acdbe83c6a16af2bffcc7b546dd2fb501244
|
7
|
+
data.tar.gz: 4464ebc99552619ddc5c5ec427860abcf14ec5eaf5cb2685da953a23edd6e2ea06e92f55f53f4759a85fb3fdeb6bfff6bb3cb73294dedec7ab5c8f35a5473a13
|
data/README.md
CHANGED
@@ -25,6 +25,8 @@ inherit_gem:
|
|
25
25
|
gatemedia_rubocop: config/.rubocop.yml
|
26
26
|
```
|
27
27
|
|
28
|
+
You could also put this file in your `$HOME` folder for a global use.
|
29
|
+
|
28
30
|
## Contributing
|
29
31
|
|
30
32
|
Bug reports and pull requests are welcome on GitHub at https://github.com/gatemedia/gatemedia_rubocop.
|
data/config/.rubocop.yml
CHANGED
@@ -23,7 +23,8 @@ AllCops:
|
|
23
23
|
- 'db/schema.rb'
|
24
24
|
# By default, the rails cops are not run. Override in project or home
|
25
25
|
# directory .rubocop.yml files, or by giving the -R/--rails option.
|
26
|
-
|
26
|
+
Rails:
|
27
|
+
Enabled: true
|
27
28
|
|
28
29
|
# Indent private/protected/public as deep as method definitions
|
29
30
|
Style/AccessModifierIndentation:
|
@@ -448,12 +449,26 @@ Style/TrailingBlankLines:
|
|
448
449
|
- final_newline
|
449
450
|
- final_blank_line
|
450
451
|
|
451
|
-
Style/
|
452
|
-
# If
|
453
|
-
#
|
452
|
+
Style/TrailingCommaInArguments:
|
453
|
+
# If `comma`, the cop requires a comma after the last argument, but only for
|
454
|
+
# parenthesized method calls where each argument is on its own line.
|
455
|
+
# If `consistent_comma`, the cop requires a comma after the last argument,
|
456
|
+
# for all parenthesized method calls with arguments.
|
454
457
|
EnforcedStyleForMultiline: no_comma
|
455
458
|
SupportedStyles:
|
456
459
|
- comma
|
460
|
+
- consistent_comma
|
461
|
+
- no_comma
|
462
|
+
|
463
|
+
Style/TrailingCommaInLiteral:
|
464
|
+
# If `comma`, the cop requires a comma after the last item in an array or
|
465
|
+
# hash, but only when each item is on its own line.
|
466
|
+
# If `consistent_comma`, the cop requires a comma after the last item of all
|
467
|
+
# non-empty array and hash literals.
|
468
|
+
EnforcedStyleForMultiline: no_comma
|
469
|
+
SupportedStyles:
|
470
|
+
- comma
|
471
|
+
- consistent_comma
|
457
472
|
- no_comma
|
458
473
|
|
459
474
|
# TrivialAccessors doesn't require exact name matches and doesn't allow
|
@@ -577,10 +592,6 @@ Rails/ActionFilter:
|
|
577
592
|
Include:
|
578
593
|
- app/controllers/**/*.rb
|
579
594
|
|
580
|
-
Rails/DefaultScope:
|
581
|
-
Include:
|
582
|
-
- app/models/**/*.rb
|
583
|
-
|
584
595
|
Rails/HasAndBelongsToMany:
|
585
596
|
Include:
|
586
597
|
- app/models/**/*.rb
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gatemedia_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Colon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.5.1
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Rubocop config file for Gatemedia projects
|