arcadia_cops 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bd311576a85df26bc0ec95d52dd6ecd5fe2b2b0
4
- data.tar.gz: af60523f56d95bdf670c5102f8b88fb8205fee2a
3
+ metadata.gz: 84600629053ba1052a1d4038e1bd2779207c9bd4
4
+ data.tar.gz: 8825d24775f597ec9a5db9b1c75d7211407c9260
5
5
  SHA512:
6
- metadata.gz: 0be0177915bf5626d5e00145f9a698dbfccb1de3ce6254748653c99210319fa502431f51dbd8798921e6793cfb8f025288bd15ed8979c48e4cbe32ba4349ec85
7
- data.tar.gz: dd95d5e221b623795d7ce838526252452f186c72b9b188f9df3c291540fcde885ed5980f57af928f9e0b337afdc634ea080b033ad5f1263d4e5fe0a75ccfe177
6
+ metadata.gz: 54f250e1f25650cd492999b95e68f673450140e4c75190f12e03e2db031ebce4426d59f8b888328a64a83ccae93c420c62fac9b428ad96b6112962375d7f10b7
7
+ data.tar.gz: 5834e7bd2b73b6fcd2635d5c80590ad2e18010792e4939fe15d451077a4804bee183f72b250d5dda593e48ba3206f575243b1bcaba452916c28142123e22e9aa
data/README.md ADDED
@@ -0,0 +1,27 @@
1
+ Arcadia Power Rubocop Configuration
2
+ ===================================
3
+ The arcadia_cops gem contains enabled and customized [rubocop](https://github.com/bbatsov/rubocop) cops to check and enforce our style guide.
4
+
5
+ ## Install
6
+
7
+ ```ruby
8
+ # Add to your gemfile
9
+ gem 'arcadia_cops'
10
+ ```
11
+
12
+ Then setup your `.rubocop.yml` file per [rubocop docs](http://rubocop.readthedocs.io/en/latest/configuration/#inheriting-configuration-from-a-dependency-gem).
13
+
14
+
15
+ ## Development
16
+
17
+ Add a new cop to the `enabled.yml`, bump the version, and put in a PR for review.
18
+
19
+ To see all cops including those that aren't enabled run `bundle exex rubocop --show-cops`.
20
+
21
+ ## Release
22
+
23
+ Ensure you have bumped the version and run `rake release` to release to rubygems.org.
24
+
25
+ ## Other
26
+
27
+ `arcadia_cops` also maintains the rubocop version to maintain parity across repos.
File without changes
@@ -17,9 +17,63 @@ Layout/AlignHash:
17
17
  Align the elements of a hash literal if they span more than
18
18
  one line.
19
19
 
20
+ Layout/AlignParameters:
21
+ Description: Align the parameters of a method call if they span more than one line.
22
+ StyleGuide: "#no-double-indent"
23
+ EnforcedStyle: with_fixed_indentation
24
+ SupportedStyles:
25
+ - with_first_parameter
26
+ - with_fixed_indentation
27
+ IndentationWidth: 2
28
+
20
29
  Layout/BlockEndNewline:
21
30
  Description: 'Put end statement of multiline block on its own line.'
22
31
 
32
+ Style/DefWithParentheses:
33
+ Description: 'Use def with parentheses when there are arguments.'
34
+ StyleGuide: '#method-parens'
35
+
36
+ Style/MethodDefParentheses:
37
+ Description: Checks if the method definitions have or don't have parentheses.
38
+ StyleGuide: "#method-parens"
39
+ EnforcedStyle: require_parentheses
40
+ SupportedStyles:
41
+ - require_parentheses
42
+ - require_no_parentheses
43
+ - require_no_parentheses_except_multiline
44
+
45
+ Layout/FirstMethodArgumentLineBreak:
46
+ Description: Checks for a line break before the first argument in a multi-line method
47
+ call.
48
+
49
+ Layout/MultilineMethodCallBraceLayout:
50
+ Description: Checks that the closing brace in a method call is either on the same
51
+ line as the last method argument, or a new line.
52
+ EnforcedStyle: symmetrical
53
+ SupportedStyles:
54
+ - symmetrical
55
+ - new_line
56
+ - same_line
57
+
58
+ Layout/MultilineMethodDefinitionBraceLayout:
59
+ Description: Checks that the closing brace in a method definition is either on the
60
+ same line as the last method parameter, or a new line.
61
+ EnforcedStyle: symmetrical
62
+ SupportedStyles:
63
+ - symmetrical
64
+ - new_line
65
+ - same_line
66
+
67
+ Layout/ClosingParenthesisIndentation:
68
+ Description: Checks the indentation of hanging closing parentheses.
69
+
70
+ Style/BlockDelimiters:
71
+ Description: >-
72
+ Avoid using {...} for multi-line blocks (multiline chaining is
73
+ always ugly).
74
+ Prefer {...} over do...end for single-line blocks.
75
+ StyleGuide: '#single-line-blocks'
76
+
23
77
  Style/CommentAnnotation:
24
78
  Description: >-
25
79
  Checks formatting of special comments
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcadia_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - justin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.49.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  description: Contains enabled rubocops for arcadia power ruby repos.
28
56
  email:
29
57
  - justin@arcadiapower.com
@@ -31,10 +59,9 @@ executables: []
31
59
  extensions: []
32
60
  extra_rdoc_files: []
33
61
  files:
34
- - lib/arcadia_cops.rb
35
- - lib/arcadia_cops/config.yml
36
- - lib/arcadia_cops/enabled.yml
37
- - lib/arcadia_cops/version.rb
62
+ - README.md
63
+ - config/config.yml
64
+ - config/enabled.yml
38
65
  homepage: https://github.com/ArcadiaPower/rubocop/
39
66
  licenses:
40
67
  - MIT
@@ -1,3 +0,0 @@
1
- module ArcadiaCops
2
- VERSION = '1.0.1'
3
- end
data/lib/arcadia_cops.rb DELETED
@@ -1,2 +0,0 @@
1
- module ArcadiaCops
2
- end