ruboswain 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rubocop.yml +8 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +1 -0
- data/bin/setup +8 -0
- data/lib/disabled_cops.yml +133 -0
- data/lib/mad_rubocop.rb +5 -0
- data/lib/modified_cops.yml +35 -0
- data/lib/ruboswain/version.rb +3 -0
- data/ruboswain.gemspec +26 -0
- metadata +100 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 29c2b226bea4adb5c63a07303b6f4c6d8543daa7
|
4
|
+
data.tar.gz: ec1bb4136d3e45d913a034a04e393fc7d8743662
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 66dbda8773f5e7c4a73a16d10eb76169cae8ab7953cf4cdbde6313fc5d0ab7880746de7c8c7518e989a5877deb6a29154755e3d1ad8139b12ade65142fb3353c
|
7
|
+
data.tar.gz: d41017693d8696f6fc1e6f51d4108013ea152e9c570aa814779db18fe5f42a6fe0a07117417c4de1c5c2b0f92a0c635e52290e4abccedd829551132d04d17206
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Zach Toolson
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Ruboswain
|
2
|
+
|
3
|
+
Custom RuboCop yml files to modify the cops enforced by RuboCop.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'ruboswain'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install ruboswain
|
20
|
+
|
21
|
+
Add this to your project .rubocop.yml file:
|
22
|
+
|
23
|
+
```yml
|
24
|
+
inherit_gem:
|
25
|
+
ruboswain: .rubocop.yml
|
26
|
+
```
|
27
|
+
|
28
|
+
|
29
|
+
## Development
|
30
|
+
|
31
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
32
|
+
|
33
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ienetwork/ruboswain.
|
38
|
+
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
43
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/setup
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
Layout/ExtraSpacing:
|
3
|
+
Enabled: false
|
4
|
+
Layout/FirstArrayElementLineBreak:
|
5
|
+
Enabled: false
|
6
|
+
Layout/FirstHashElementLineBreak:
|
7
|
+
Enabled: false
|
8
|
+
Layout/FirstMethodArgumentLineBreak:
|
9
|
+
Enabled: false
|
10
|
+
Layout/FirstMethodParameterLineBreak:
|
11
|
+
Enabled: false
|
12
|
+
Layout/IndentHeredoc:
|
13
|
+
Enabled: false
|
14
|
+
Lint/AmbiguousBlockAssociation:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Metrics/AbcSize:
|
18
|
+
Enabled: false
|
19
|
+
Metrics/BlockLength:
|
20
|
+
Enabled: false
|
21
|
+
Metrics/BlockNesting:
|
22
|
+
Enabled: false
|
23
|
+
Metrics/ClassLength:
|
24
|
+
Enabled: false
|
25
|
+
Metrics/CyclomaticComplexity:
|
26
|
+
Enabled: false
|
27
|
+
Metrics/LineLength:
|
28
|
+
Enabled: false
|
29
|
+
Metrics/MethodLength:
|
30
|
+
Enabled: false
|
31
|
+
Metrics/ModuleLength:
|
32
|
+
Enabled: false
|
33
|
+
Metrics/ParameterLists:
|
34
|
+
Description: Avoid parameter lists longer than three or four parameters.
|
35
|
+
Metrics/PerceivedComplexity:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Performance/Casecmp:
|
39
|
+
Enabled: false
|
40
|
+
Performance/Detect:
|
41
|
+
Enabled: false
|
42
|
+
Performance/StringReplacement:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Rails/ActionFilter:
|
46
|
+
Enabled: false
|
47
|
+
Rails/Blank:
|
48
|
+
Enabled: false
|
49
|
+
Rails/Date:
|
50
|
+
Enabled: false
|
51
|
+
Rails/DynamicFindBy:
|
52
|
+
Enabled: false
|
53
|
+
Rails/FindBy:
|
54
|
+
Enabled: false
|
55
|
+
Rails/FilePath:
|
56
|
+
Enabled: false
|
57
|
+
Rails/SkipsModelValidations:
|
58
|
+
Enabled: false
|
59
|
+
Rails/TimeZone:
|
60
|
+
Enabled: false
|
61
|
+
|
62
|
+
# The autocorrect for this will break YAML load when aliases present
|
63
|
+
Security/YAMLLoad:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Style/AutoResourceCleanup:
|
67
|
+
Enabled: false
|
68
|
+
Style/CollectionMethods:
|
69
|
+
Enabled: false
|
70
|
+
Style/Copyright:
|
71
|
+
Enabled: false
|
72
|
+
Style/Documentation:
|
73
|
+
Enabled: false
|
74
|
+
Style/DoubleNegation:
|
75
|
+
Enabled: false
|
76
|
+
Style/EachWithObject:
|
77
|
+
Enabled: false
|
78
|
+
Style/EmptyCaseCondition:
|
79
|
+
Enabled: false
|
80
|
+
Style/Encoding:
|
81
|
+
Enabled: false
|
82
|
+
Style/FormatString:
|
83
|
+
Enabled: false
|
84
|
+
Style/FrozenStringLiteralComment:
|
85
|
+
Enabled: false
|
86
|
+
Style/GuardClause:
|
87
|
+
Enabled: false
|
88
|
+
Style/InlineComment:
|
89
|
+
Enabled: false
|
90
|
+
Style/Lambda:
|
91
|
+
Enabled: false
|
92
|
+
Style/MethodCalledOnDoEndBlock:
|
93
|
+
Enabled: false
|
94
|
+
Style/MissingElse:
|
95
|
+
Enabled: false
|
96
|
+
Style/MutableConstant:
|
97
|
+
Enabled: false
|
98
|
+
Style/Next:
|
99
|
+
Enabled: false
|
100
|
+
Style/NumericPredicate:
|
101
|
+
Enabled: false
|
102
|
+
Style/OptionHash:
|
103
|
+
Enabled: false
|
104
|
+
Style/PredicateName:
|
105
|
+
Enabled: false
|
106
|
+
Style/RedundantParentheses:
|
107
|
+
Enabled: false
|
108
|
+
Style/RedundantSelf:
|
109
|
+
Enabled: false
|
110
|
+
Style/RegexpLiteral:
|
111
|
+
Enabled: false
|
112
|
+
Style/Send:
|
113
|
+
Enabled: false
|
114
|
+
Style/SignalException:
|
115
|
+
Enabled: false
|
116
|
+
Style/SingleLineBlockParams:
|
117
|
+
Enabled: false
|
118
|
+
Style/StringMethods:
|
119
|
+
Enabled: false
|
120
|
+
Style/StructInheritance:
|
121
|
+
Enabled: false
|
122
|
+
Style/SymbolArray:
|
123
|
+
Enabled: false
|
124
|
+
Style/TrailingCommaInArguments:
|
125
|
+
Enabled: false
|
126
|
+
Style/TrailingCommaInLiteral:
|
127
|
+
Enabled: false
|
128
|
+
Style/UnneededInterpolation:
|
129
|
+
Enabled: false
|
130
|
+
Style/VariableNumber:
|
131
|
+
Enabled: false
|
132
|
+
Style/WordArray:
|
133
|
+
Enabled: false
|
data/lib/mad_rubocop.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
##
|
2
|
+
# Cops that enforce a non RuboCop default style
|
3
|
+
#
|
4
|
+
Layout/AccessModifierIndentation:
|
5
|
+
Description: Indent private/protected/public as deep as method definitions
|
6
|
+
Enabled: true
|
7
|
+
EnforcedStyle: outdent
|
8
|
+
|
9
|
+
Style/Alias:
|
10
|
+
Description: Use alias_method instead of alias in a class or module body.
|
11
|
+
EnforcedStyle: prefer_alias_method
|
12
|
+
|
13
|
+
Style/EmptyMethod:
|
14
|
+
EnforcedStyle: expanded
|
15
|
+
|
16
|
+
Style/HashSyntax:
|
17
|
+
Description: 'Prefer Ruby 1.8 hash syntax { :a => 1, :b => 2 } over 1.9 syntax {
|
18
|
+
a: 1, b: 2 }.'
|
19
|
+
Enabled: true
|
20
|
+
EnforcedStyle: hash_rockets
|
21
|
+
|
22
|
+
Style/PercentLiteralDelimiters:
|
23
|
+
Enabled: true
|
24
|
+
PreferredDelimiters:
|
25
|
+
default: '()'
|
26
|
+
'%i': '()'
|
27
|
+
'%I': '()'
|
28
|
+
'%r': '{}'
|
29
|
+
'%w': '()'
|
30
|
+
'%W': '()'
|
31
|
+
|
32
|
+
Style/StringLiterals:
|
33
|
+
Description: Checks if uses of quotes match the configured preference.
|
34
|
+
Enabled: true
|
35
|
+
EnforcedStyle: double_quotes
|
data/ruboswain.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path("../lib", __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "ruboswain/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "ruboswain"
|
9
|
+
spec.version = Ruboswain::VERSION
|
10
|
+
spec.authors = ["Brandon Beeks"]
|
11
|
+
spec.email = ["brandonb@ixn.tech"]
|
12
|
+
|
13
|
+
spec.summary = "Wrapper for IXN specific RuboCop settings."
|
14
|
+
spec.description = "Wrapper for IXN specific RuboCop settings for managing custom settings across many projects."
|
15
|
+
spec.homepage = "https://github.com/ienetwork/ruboswain"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
spec.bindir = "bin"
|
20
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_dependency "rubocop", "~> 0.51.0"
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
25
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruboswain
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Brandon Beeks
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.51.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.51.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: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '12.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '12.0'
|
55
|
+
description: Wrapper for IXN specific RuboCop settings for managing custom settings
|
56
|
+
across many projects.
|
57
|
+
email:
|
58
|
+
- brandonb@ixn.tech
|
59
|
+
executables:
|
60
|
+
- setup
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- ".rubocop.yml"
|
66
|
+
- Gemfile
|
67
|
+
- LICENSE.txt
|
68
|
+
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- bin/setup
|
71
|
+
- lib/disabled_cops.yml
|
72
|
+
- lib/mad_rubocop.rb
|
73
|
+
- lib/modified_cops.yml
|
74
|
+
- lib/ruboswain/version.rb
|
75
|
+
- ruboswain.gemspec
|
76
|
+
homepage: https://github.com/ienetwork/ruboswain
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.6.8
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Wrapper for IXN specific RuboCop settings.
|
100
|
+
test_files: []
|