salsify_rubocop 0.40.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: 79745e0fa4948d0c8c0d8498da86625a41504805
4
+ data.tar.gz: 977119e8effeec2719ef5e5011f2f493a09b045e
5
+ SHA512:
6
+ metadata.gz: cb10a493f09c1987af22d4a65cdfbf869d316a6cc6864ddca7fe9f2b75a90b36ac8459a626b35f89a2c313b5192a9f5acb60d10c1c2d09d56be0c783495ba60d
7
+ data.tar.gz: 8dfcfab6cbd6a4eb986dd6ff0f6ac4259f04b99c9978a642a67a70e8268226c368620390e9ce5309f302516525a881047d990592bc8754867c6420b94f0456f0
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/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,3 @@
1
+ Metrics/LineLength:
2
+ Exclude:
3
+ - '*.gemspec'
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.1
4
+ before_install: gem install bundler -v 1.12.4
5
+
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # salsify_rubocop
2
+
3
+ ## v0.40.0
4
+ - Initial version
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in salsify_rubocop.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Salsify, Inc
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.
22
+
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # SalsifyRubocop
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/salsify_rubocop`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'salsify_rubocop'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install salsify_rubocop
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec salsify_rubocop` to use the gem in this directory, ignoring other installed copies of this gem.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/salsify/salsify_rubocop.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'salsify_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
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
data/conf/rubocop.yml ADDED
@@ -0,0 +1,19 @@
1
+ inherit_from:
2
+ - ../conf/rubocop_without_rspec.yml
3
+
4
+ require: rubocop-rspec
5
+
6
+ RSpec/DescribeClass:
7
+ Enabled: false
8
+
9
+ RSpec/DescribedClass:
10
+ Enabled: false
11
+
12
+ RSpec/DescribeMethod:
13
+ Enabled: false
14
+
15
+ RSpec/ExampleLength:
16
+ Enabled: false
17
+
18
+ RSpec/InstanceVariable:
19
+ Enabled: false
@@ -0,0 +1,9 @@
1
+ inherit_from:
2
+ - ../conf/rubocop.yml
3
+
4
+ Rails:
5
+ Enabled: true
6
+
7
+ Rails/TimeZone:
8
+ Exclude:
9
+ - 'spec/**/*'
@@ -0,0 +1,123 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+ Exclude:
4
+ - 'bin/**/*'
5
+ - 'coverage/**/*'
6
+ - 'db/**/*'
7
+ - 'log/**/*'
8
+ - 'public/**/*'
9
+ - 'tmp/**/*'
10
+ - 'vendor/**/*'
11
+
12
+ Lint/AmbiguousOperator:
13
+ Enabled: false
14
+
15
+ Style/Alias:
16
+ EnforcedStyle: prefer_alias_method
17
+
18
+ Style/AlignHash:
19
+ Enabled: false
20
+
21
+ Style/Documentation:
22
+ Enabled: false
23
+
24
+ Style/DoubleNegation:
25
+ Enabled: false
26
+
27
+ Style/EachWithObject:
28
+ Enabled: false
29
+
30
+ Style/EmptyLines:
31
+ Enabled: false
32
+
33
+ Style/EmptyLinesAroundBlockBody:
34
+ Enabled: false
35
+
36
+ Style/EmptyLinesAroundClassBody:
37
+ Enabled: false
38
+
39
+ Style/EmptyLinesAroundModuleBody:
40
+ Enabled: false
41
+
42
+ Style/EmptyLinesAroundMethodBody:
43
+ Enabled: false
44
+
45
+ Style/EmptyLiteral:
46
+ Enabled: false
47
+
48
+ Style/FrozenStringLiteralComment:
49
+ Enabled: false
50
+
51
+ Style/GuardClause:
52
+ Enabled: false
53
+
54
+ Style/Lambda:
55
+ Enabled: false
56
+
57
+ Style/MultilineMethodCallIndentation:
58
+ Enabled: false
59
+
60
+ Style/MultilineOperationIndentation:
61
+ Enabled: false
62
+
63
+ Style/MultilineBlockLayout:
64
+ Enabled: false
65
+
66
+ Style/Proc:
67
+ Enabled: false
68
+
69
+ Style/RegexpLiteral:
70
+ Enabled: false
71
+
72
+ # This cop doesn't work properly if you a have a block with
73
+ # arguments split across multiple lines
74
+ Style/SpaceAroundBlockParameters:
75
+ Enabled: false
76
+
77
+ Style/SignalException:
78
+ EnforcedStyle: only_raise
79
+
80
+ Style/StringLiterals:
81
+ EnforcedStyle: single_quotes
82
+ Exclude:
83
+ - 'spec/**/*'
84
+
85
+ Metrics/AbcSize:
86
+ Enabled: false
87
+
88
+ Metrics/BlockNesting:
89
+ Enabled: false
90
+
91
+ Metrics/ClassLength:
92
+ Enabled: false
93
+
94
+ Metrics/CyclomaticComplexity:
95
+ Enabled: false
96
+
97
+ # Disabling line length enforcement since annotate generates
98
+ # some pretty long lines
99
+ Metrics/LineLength:
100
+ Enabled: false
101
+
102
+ Metrics/MethodLength:
103
+ Enabled: false
104
+
105
+ Metrics/ModuleLength:
106
+ Enabled: false
107
+
108
+ Metrics/ParameterLists:
109
+ Enabled: false
110
+
111
+ Metrics/PerceivedComplexity:
112
+ Enabled: false
113
+
114
+ Rails:
115
+ Enabled: false
116
+
117
+ # This cop is too greedy I dont
118
+ # want to underscore my timestamps.
119
+ Style/NumericLiterals:
120
+ Enabled: false
121
+
122
+ Style/StructInheritance:
123
+ Enabled: false
@@ -0,0 +1,5 @@
1
+ require 'salsify_rubocop/version'
2
+
3
+ # Top-level gem module
4
+ module SalsifyRubocop
5
+ end
@@ -0,0 +1,3 @@
1
+ module SalsifyRubocop
2
+ VERSION = '0.40.0'.freeze
3
+ end
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'salsify_rubocop/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'salsify_rubocop'
8
+ spec.version = SalsifyRubocop::VERSION
9
+ spec.authors = ['Salsify, Inc']
10
+ spec.email = ['engineering@salsify.com']
11
+
12
+ spec.summary = 'Shared shared RuboCop configuration'
13
+ spec.description = spec.summary
14
+ spec.homepage = 'https://github.com/salsify/salsify_rubocop'
15
+
16
+ spec.license = 'MIT'
17
+
18
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
19
+ # delete this section to allow pushing this gem to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
22
+
23
+ else
24
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
25
+ end
26
+
27
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ spec.add_development_dependency 'bundler', '~> 1.11'
33
+ spec.add_development_dependency 'rake', '~> 10.0'
34
+ spec.add_development_dependency 'rspec', '~> 3.0'
35
+
36
+ spec.add_runtime_dependency 'rubocop', '~> 0.40.0'
37
+ spec.add_runtime_dependency 'rubocop-rspec', '~> 1.5.0'
38
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: salsify_rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.40.0
5
+ platform: ruby
6
+ authors:
7
+ - Salsify, Inc
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.40.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.40.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.5.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.5.0
83
+ description: Shared shared RuboCop configuration
84
+ email:
85
+ - engineering@salsify.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".rubocop.yml"
93
+ - ".travis.yml"
94
+ - CHANGELOG.md
95
+ - Gemfile
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - conf/rubocop.yml
102
+ - conf/rubocop_rails.yml
103
+ - conf/rubocop_without_rspec.yml
104
+ - lib/salsify_rubocop.rb
105
+ - lib/salsify_rubocop/version.rb
106
+ - salsify_rubocop.gemspec
107
+ homepage: https://github.com/salsify/salsify_rubocop
108
+ licenses:
109
+ - MIT
110
+ metadata:
111
+ allowed_push_host: https://rubygems.org
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ requirements: []
127
+ rubyforge_project:
128
+ rubygems_version: 2.4.8
129
+ signing_key:
130
+ specification_version: 4
131
+ summary: Shared shared RuboCop configuration
132
+ test_files: []