mad_rubocop 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 929f8f004eab60c17c6b84f15b21f38332ed7cb5
4
+ data.tar.gz: 64237c17924467e3a65c21a6134445860703cc5e
5
+ SHA512:
6
+ metadata.gz: 0f0e320485fe1a7fc4b71f81b56ab2db9097fa8136d64fa466626d61137c5c9e10298d56dd51a4425ea41fa755d038d009f74263bb8ca67318a5912b78d0c1cd
7
+ data.tar.gz: 2be0a4047b364a962a54c897ee4c4aaf32270569a878b7713b33510c2909460ab050876b01ab037aa3d1f68a4796ee55a5de673d139ca0b0bbd7beec89a91049
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1,7 @@
1
+ inherit_from:
2
+ - lib/modified_cops.yml
3
+ - lib/disabled_cops.yml
4
+
5
+ AllCops:
6
+ RunRailsCops: true
7
+ DisplayCopNames: true
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in mad_rubocop.gemspec
4
+ gemspec
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,45 @@
1
+ # MadRubocop
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 'mad_rubocop'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install mad_rubocop
20
+
21
+ Add this to your project .rubocop.yml file:
22
+
23
+ ```yml
24
+ inherit_gem:
25
+ mad_rubocop: .rubocop.yml
26
+ ```
27
+
28
+ NOTE: The `Exlude` setting on cops that only ignore certain files or directories cannot be set by MadRubocop.
29
+
30
+
31
+ ## Development
32
+
33
+ After checking out the repo, run `bin/setup` to install dependencies.
34
+
35
+ 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).
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mad_rubocop.
40
+
41
+
42
+ ## License
43
+
44
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
45
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,96 @@
1
+ ---
2
+ Metrics/AbcSize:
3
+ Enabled: false
4
+ Metrics/BlockNesting:
5
+ Enabled: false
6
+ Metrics/ClassLength:
7
+ Enabled: false
8
+ Metrics/CyclomaticComplexity:
9
+ Enabled: false
10
+ Metrics/LineLength:
11
+ Enabled: false
12
+ Metrics/MethodLength:
13
+ Enabled: false
14
+ Metrics/ModuleLength:
15
+ Enabled: false
16
+ Metrics/ParameterLists:
17
+ Description: Avoid parameter lists longer than three or four parameters.
18
+ Metrics/PerceivedComplexity:
19
+ Enabled: false
20
+
21
+ Performance/Detect:
22
+ Enabled: false
23
+ Performance/StringReplacement:
24
+ Enabled: false
25
+
26
+ Rails/ActionFilter:
27
+ Enabled: false
28
+ Rails/Date:
29
+ Enabled: false
30
+ Rails/FindBy:
31
+ Enabled: false
32
+ Rails/TimeZone:
33
+ Enabled: false
34
+
35
+ Style/AutoResourceCleanup:
36
+ Enabled: false
37
+ Style/CollectionMethods:
38
+ Enabled: false
39
+ Style/Copyright:
40
+ Enabled: false
41
+ Style/Documentation:
42
+ Enabled: false
43
+ Style/DoubleNegation:
44
+ Enabled: false
45
+ Style/EachWithObject:
46
+ Enabled: false
47
+ Style/Encoding:
48
+ Enabled: false
49
+ Style/ExtraSpacing: # do we want this cop disabled?
50
+ Enabled: false
51
+ Style/FirstArrayElementLineBreak:
52
+ Enabled: false
53
+ Style/FirstHashElementLineBreak:
54
+ Enabled: false
55
+ Style/FirstMethodArgumentLineBreak:
56
+ Enabled: false
57
+ Style/FirstMethodParameterLineBreak:
58
+ Enabled: false
59
+ Style/FormatString:
60
+ Enabled: false
61
+ Style/InlineComment:
62
+ Enabled: false
63
+ Style/Lambda:
64
+ Enabled: false
65
+ Style/MethodCalledOnDoEndBlock:
66
+ Enabled: false
67
+ Style/MissingElse:
68
+ Enabled: false
69
+ Style/MutableConstant:
70
+ Enabled: false
71
+ Style/Next:
72
+ Enabled: false
73
+ Style/OptionHash:
74
+ Enabled: false
75
+ Style/PredicateName:
76
+ Enabled: false
77
+ Style/RedundantSelf:
78
+ Enabled: false
79
+ Style/RegexpLiteral:
80
+ Enabled: false
81
+ Style/Send:
82
+ Enabled: false
83
+ Style/SignalException:
84
+ Enabled: false
85
+ Style/SingleLineBlockParams:
86
+ Enabled: false
87
+ Style/StringMethods:
88
+ Enabled: false
89
+ Style/StructInheritance:
90
+ Enabled: false
91
+ Style/SymbolArray:
92
+ Enabled: false
93
+ Style/TrailingComma:
94
+ Enabled: false
95
+ Style/WordArray:
96
+ Enabled: false
@@ -0,0 +1,5 @@
1
+ require "mad_rubocop/version"
2
+
3
+ module MadRubocop
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module MadRubocop
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,19 @@
1
+ ##
2
+ # Cops that enforce a non RuboCop default style
3
+ #
4
+
5
+ Style/AccessModifierIndentation:
6
+ Description: Indent private/protected/public as deep as method definitions
7
+ Enabled: true
8
+ EnforcedStyle: outdent
9
+
10
+ Style/HashSyntax:
11
+ Description: 'Prefer Ruby 1.8 hash syntax { :a => 1, :b => 2 } over 1.9 syntax {
12
+ a: 1, b: 2 }.'
13
+ Enabled: true
14
+ EnforcedStyle: hash_rockets
15
+
16
+ Style/StringLiterals:
17
+ Description: Checks if uses of quotes match the configured preference.
18
+ Enabled: true
19
+ EnforcedStyle: double_quotes
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "mad_rubocop/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mad_rubocop"
8
+ spec.version = MadRubocop::VERSION
9
+ spec.authors = ["Zach Toolson"]
10
+ spec.email = ["zach.toolson@mx.com"]
11
+
12
+ spec.summary = "Wrapper for MX specific RuboCop settings. https://twitter.com/madrubocop"
13
+ spec.description = "Wrapper for MX specific RuboCop settings for managing custom settings across many projects."
14
+ spec.homepage = "https://github.com/mxenabled/mad_rubocop"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "bin"
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_dependency "rubocop", "~> 0.35.0"
23
+ spec.add_development_dependency "bundler", "~> 1.11"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mad_rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Zach Toolson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-02-17 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.35.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.35.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.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: Wrapper for MX specific RuboCop settings for managing custom settings
56
+ across many projects.
57
+ email:
58
+ - zach.toolson@mx.com
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/mad_rubocop/version.rb
74
+ - lib/modified_cops.yml
75
+ - mad_rubocop.gemspec
76
+ homepage: https://github.com/mxenabled/mad_rubocop
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.4.5
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Wrapper for MX specific RuboCop settings. https://twitter.com/madrubocop
100
+ test_files: []
101
+ has_rdoc: