osm-rubocop 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2bfe96d66708b6d85a47d781db1c5d08918e3a08
4
+ data.tar.gz: 15c09b2c1ee51c81b70b7a55d985fc859dad3b4b
5
+ SHA512:
6
+ metadata.gz: b591962b8e5a02ba565f2c6a9b04a3afffa114e929fef420c671f813f1bfc993038b69a0f0b4f6c7d4175a84a8ab6663aa7ca226964608af2d053b826146bf7e
7
+ data.tar.gz: bc0257ff86116bd52e2c6c200ed876d1ef950d3a538b4da64310430877a35affa10e03e1c0d7079a59db4935c34ae07dea5ac623f469308bae8f2f583d28c931
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,5 @@
1
+ require: osm-rubocop
2
+
3
+ Style/FileName:
4
+ Exclude:
5
+ - lib/osm-rubocop.rb
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in osm-rubocop.gemspec
4
+ gemspec
5
+
6
+ gem 'rubocop', git: 'https://github.com/bbatsov/rubocop.git'
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Isaac Betesh
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.
@@ -0,0 +1,42 @@
1
+ # Osm::Rubocop
2
+
3
+ OSM default Rubocop config
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'osm-rubocop', require: false
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install osm-rubocop
20
+
21
+ ## Usage
22
+
23
+ Add this line to the top of your project's .rubocop.yml:
24
+
25
+ ```ruby
26
+ require: osm-rubocop
27
+ ```
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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/on-site/osm-rubocop.
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).
@@ -0,0 +1,2 @@
1
+ require 'bundler/gem_tasks'
2
+ task default: :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'osm/rubocop'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
@@ -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,124 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ DisplayCopNames: true
5
+ DisplayStyleGuide: true
6
+ EnabledByDefault: true
7
+ ExtraDetails: true
8
+ Exclude:
9
+ - db/schema.rb
10
+
11
+ Layout/AlignParameters:
12
+ EnforcedStyle: with_fixed_indentation
13
+
14
+ Layout/CaseIndentation:
15
+ EnforcedStyle: end
16
+
17
+ Layout/ExtraSpacing:
18
+ AllowForAlignment: false
19
+
20
+ Layout/FirstParameterIndentation:
21
+ EnforcedStyle: consistent
22
+
23
+ Layout/IndentArray:
24
+ EnforcedStyle: consistent
25
+
26
+ Layout/IndentHash:
27
+ EnforcedStyle: consistent
28
+
29
+ Layout/MultilineAssignmentLayout:
30
+ Enabled: false
31
+
32
+ Layout/MultilineMethodCallIndentation:
33
+ EnforcedStyle: indented
34
+
35
+ Layout/MultilineMethodDefinitionBraceLayout:
36
+ EnforcedStyle: new_line
37
+
38
+ Layout/MultilineOperationIndentation:
39
+ EnforcedStyle: indented
40
+
41
+ Lint/EndAlignment:
42
+ EnforcedStyleAlignWith: variable
43
+
44
+ Metrics/BlockLength:
45
+ Exclude:
46
+ - spec/**/*
47
+ - config/routes.rb
48
+
49
+ Metrics/LineLength:
50
+ Max: 100
51
+
52
+ Metrics/MethodLength:
53
+ Max: 20
54
+
55
+ Rails/HasAndBelongsToMany:
56
+ Enabled: false
57
+
58
+ Rails/SkipsModelValidations:
59
+ Exclude:
60
+ - db/migrate/**/*
61
+
62
+ RSpec/ImplicitExpect:
63
+ EnforcedStyle: should
64
+
65
+ RSpec/ExampleLength:
66
+ Max: 5
67
+
68
+ RSpec/LetSetup:
69
+ Enabled: false
70
+
71
+ RSpec/MultipleExpectations:
72
+ Max: 5
73
+
74
+ RSpec/NamedSubject:
75
+ Enabled: false
76
+
77
+ RSpec/NestedGroups:
78
+ Enabled: false
79
+
80
+ Style/BracesAroundHashParameters:
81
+ Enabled: false
82
+
83
+ Style/ClassAndModuleChildren:
84
+ Enabled: false
85
+
86
+ Style/Copyright:
87
+ Enabled: false
88
+
89
+ Style/Documentation:
90
+ Enabled: false
91
+
92
+ Style/DocumentationMethod:
93
+ Enabled: false
94
+
95
+ Style/DoubleNegation:
96
+ Enabled: false
97
+
98
+ Style/EmptyMethod:
99
+ EnforcedStyle: expanded
100
+
101
+ Style/InlineComment:
102
+ Enabled: false
103
+
104
+ Style/Lambda:
105
+ EnforcedStyle: literal
106
+
107
+ Style/MethodCallWithArgsParentheses:
108
+ Enabled: false
109
+
110
+ Style/MissingElse:
111
+ Enabled: false
112
+
113
+ Style/ParallelAssignment:
114
+ Enabled: false
115
+
116
+ Style/RegexpLiteral:
117
+ EnforcedStyle: slashes
118
+ AllowInnerSlashes: true
119
+
120
+ Style/SymbolArray:
121
+ EnforcedStyle: brackets
122
+
123
+ Style/TrailingCommaInLiteral:
124
+ EnforcedStyleForMultiline: comma
@@ -0,0 +1,3 @@
1
+ require 'osm/rubocop'
2
+
3
+ Osm::Rubocop.inject_defaults!
@@ -0,0 +1,17 @@
1
+ require 'osm/rubocop/version'
2
+ require 'rubocop'
3
+
4
+ module Osm
5
+ module Rubocop
6
+ CONFIG_FILE = File.join(
7
+ Gem.loaded_specs['osm-rubocop'].full_gem_path,
8
+ 'config',
9
+ 'default.yml'
10
+ ).freeze
11
+
12
+ def self.inject_defaults!
13
+ ::RuboCop::ConfigLoader.default_configuration =
14
+ ::RuboCop::ConfigLoader.configuration_from_file(CONFIG_FILE)
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ module Osm
2
+ module Rubocop
3
+ VERSION = '0.1.1'.freeze
4
+ end
5
+ end
@@ -0,0 +1,27 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'osm/rubocop/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'osm-rubocop'
8
+ spec.version = Osm::Rubocop::VERSION
9
+ spec.authors = ['Isaac Betesh']
10
+ spec.email = ['ibetesh@on-site.com']
11
+
12
+ spec.summary = 'OnSite Ruby coding conventions.'
13
+ spec.homepage = 'https://github.com/on-site/osm-rubocop'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(/^(test|spec|features)\//)
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_dependency 'rubocop', '~> 0.48.1'
24
+ spec.add_dependency 'rubocop-rspec'
25
+ spec.add_development_dependency 'bundler', '~> 1.14'
26
+ spec.add_development_dependency 'rake', '~> 10.0'
27
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: osm-rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Isaac Betesh
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-05-09 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.48.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.48.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
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: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.14'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.14'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description:
70
+ email:
71
+ - ibetesh@on-site.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rubocop.yml"
78
+ - Gemfile
79
+ - LICENSE.txt
80
+ - README.md
81
+ - Rakefile
82
+ - bin/console
83
+ - bin/setup
84
+ - config/default.yml
85
+ - lib/osm-rubocop.rb
86
+ - lib/osm/rubocop.rb
87
+ - lib/osm/rubocop/version.rb
88
+ - osm-rubocop.gemspec
89
+ homepage: https://github.com/on-site/osm-rubocop
90
+ licenses:
91
+ - MIT
92
+ metadata: {}
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ requirements: []
108
+ rubyforge_project:
109
+ rubygems_version: 2.4.8
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: OnSite Ruby coding conventions.
113
+ test_files: []