Skip to content

Commit

Permalink
Merge pull request #1 from tf/rubocop
Browse files Browse the repository at this point in the history
Add rubocop dev dependency
  • Loading branch information
tf authored Sep 8, 2016
2 parents 449f96f + 7781199 commit 81e4077
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use double quotes only for interpolation.
Style/StringLiterals:
EnforcedStyle: single_quotes

# Place dots at the beginning of multiline method calls.
Style/DotPosition:
EnforcedStyle: leading

# Allow using {} when chaining methods
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining

# The default of 80 characters is a little to narrow.
Metrics/LineLength:
Max: 100

# Only place spaces inside blocks written with braces.
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

# Allow extend self
Style/ModuleFunction:
Enabled: false

# Do not require class and module doc strings
Style/Documentation:
Enabled: false
17 changes: 17 additions & 0 deletions bin/rubocop
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'rubocop' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rubocop", "rubocop")
1 change: 1 addition & 0 deletions semmy.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'bundler', '~> 1.10'
spec.add_development_dependency 'rake', '~> 11.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rubocop', '~> 0.42.0'
end

0 comments on commit 81e4077

Please sign in to comment.