rubocop-config-oharagroup 1.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f274112c889043b064b3299ec10333d895292d22
4
+ data.tar.gz: 6100574af0e7e359550855fce2b096fe3e3a7943
5
+ SHA512:
6
+ metadata.gz: 2278856db14da2c8d3eb67892624829d41c95955f51c4579d91092e2c1b368b595dcc9b61c750c7ddeec11f14a176b70d5d9c8ca55f5beff1dcca0317c5a2570
7
+ data.tar.gz: adfc15123645c67d001958dda08c708986c92d54c27d081d4145b2bb877fd0f7a0b70ac20376cb81988d9eebf34093388c8cd8e2b580a5495280f097187a1e36
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2017 Scott O'Hara, oharagroup.net
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/default.yml ADDED
@@ -0,0 +1,122 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'bin/*'
4
+ - 'node_modules/**/*'
5
+ - 'vendor/**/*'
6
+
7
+ # ------------------------------------------------------------
8
+ # Cops that rubocop disables by default, but we want to enable
9
+ # ------------------------------------------------------------
10
+
11
+ Layout/FirstArrayElementLineBreak:
12
+ Enabled: true
13
+
14
+ Layout/FirstHashElementLineBreak:
15
+ Enabled: true
16
+
17
+ Layout/FirstMethodArgumentLineBreak:
18
+ Enabled: true
19
+
20
+ Layout/FirstMethodParameterLineBreak:
21
+ Enabled: true
22
+
23
+ Layout/MultilineAssignmentLayout:
24
+ Enabled: true
25
+
26
+ Style/AutoResourceCleanup:
27
+ Enabled: true
28
+
29
+ Style/CollectionMethods:
30
+ Enabled: true
31
+
32
+ Style/Copyright:
33
+ Enabled: true
34
+ Notice: 'Copyright \(c\) 2016 Scott O.Hara, oharagroup.net'
35
+
36
+ # Style/DocumentationMethod (disabled due to no documentation)
37
+
38
+ Style/Encoding:
39
+ Enabled: true
40
+
41
+ Style/ImplicitRuntimeError:
42
+ Enabled: true
43
+
44
+ # Style/InlineComment (disabled due to use of inline comments)
45
+ # Style/MethodCallWithArgsParentheses (prefer no parens)
46
+
47
+ Style/MethodCalledOnDoEndBlock:
48
+ Enabled: true
49
+
50
+ # Style/MissingElse (else not required)
51
+
52
+ Style/OptionHash:
53
+ Enabled: true
54
+
55
+ Style/Send:
56
+ Enabled: true
57
+
58
+ Style/StringMethods:
59
+ Enabled: true
60
+
61
+ Style/SingleLineBlockParams:
62
+ Enabled: true
63
+
64
+ # ------------------------------------------------------------
65
+ # END disabled by default cops
66
+ # ------------------------------------------------------------
67
+ # Cops that rubocop enables by default, but we want to disable
68
+ # ------------------------------------------------------------
69
+
70
+ # Prefer tabs over spaces
71
+ Layout/Tab:
72
+ Enabled: false
73
+
74
+ # Block comment in spec_helper
75
+ Style/BlockComments:
76
+ Enabled: false
77
+
78
+ # Only require parens where absolutely necessary
79
+ Style/NestedParenthesizedCalls:
80
+ Enabled: false
81
+
82
+ # Disable metrics
83
+ Metrics/AbcSize:
84
+ Enabled: false
85
+
86
+ Metrics/BlockLength:
87
+ Enabled: false
88
+
89
+ Metrics/ClassLength:
90
+ Enabled: false
91
+
92
+ Metrics/CyclomaticComplexity:
93
+ Enabled: false
94
+
95
+ Metrics/LineLength:
96
+ Enabled: false
97
+
98
+ Metrics/MethodLength:
99
+ Enabled: false
100
+
101
+ Metrics/ModuleLength:
102
+ Enabled: false
103
+
104
+ Metrics/PerceivedComplexity:
105
+ Enabled: false
106
+
107
+ # ------------------------------------------------------------
108
+ # END enabled by default cops
109
+ # ------------------------------------------------------------
110
+ # Cops that we want to reconfigure
111
+ # ------------------------------------------------------------
112
+
113
+ # Changed from 2 (spaces) to 1 (tab)
114
+ Layout/IndentationWidth:
115
+ Width: 1
116
+
117
+ Layout/SpaceInsideHashLiteralBraces:
118
+ EnforcedStyle: no_space
119
+
120
+ # ------------------------------------------------------------
121
+ # END reconfigured cops
122
+ # ------------------------------------------------------------
File without changes
data/rails.yml ADDED
@@ -0,0 +1,31 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'config/**/*'
4
+ - 'db/migrate/*'
5
+ - 'db/schema.rb'
6
+
7
+ # ------------------------------------------------------------
8
+ # Cops that rubocop disables by default, but we want to enable
9
+ # ------------------------------------------------------------
10
+
11
+ Rails:
12
+ Enabled: true
13
+
14
+ Rails/SaveBang:
15
+ Enabled: true
16
+
17
+ # ------------------------------------------------------------
18
+ # END disabled by default cops
19
+ # ------------------------------------------------------------
20
+ # Cops that rubocop enables by default, but we want to disable
21
+ # ------------------------------------------------------------
22
+
23
+ # ------------------------------------------------------------
24
+ # END enabled by default cops
25
+ # ------------------------------------------------------------
26
+ # Cops that we want to reconfigure
27
+ # ------------------------------------------------------------
28
+
29
+ # ------------------------------------------------------------
30
+ # END reconfigured cops
31
+ # ------------------------------------------------------------
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-config-oharagroup
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Scott O'Hara
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Rubocop shared configuration for all O'Hara Group ruby projects
14
+ email: scott@oharagroup.net
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - LICENSE
20
+ - default.yml
21
+ - lib/rubocop-config-oharagroup.rb
22
+ - rails.yml
23
+ homepage: https://github.com/scottohara/rubocop-config-oharagroup
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.6.13
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: O'Hara Group Ruby style guide
47
+ test_files: []