-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from tf/rubocop
Add rubocop dev dependency
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters