toxon
/
cli-old
Archived
1
0
Fork 0

Add RuboCop

This commit is contained in:
Braiden Vasco 2017-07-21 05:56:17 +00:00
parent 29a8671d21
commit fa9b4a241a
4 changed files with 51 additions and 0 deletions

15
.rubocop.yml Normal file
View File

@ -0,0 +1,15 @@
AllCops:
TargetRubyVersion: 2.3
DisplayCopNames: true
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Metrics/LineLength:
Max: 120
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma

View File

@ -3,3 +3,7 @@
source 'https://rubygems.org'
gem 'tox', path: '../tox.rb'
group :development, :test do
gem 'rubocop', '~> 0.49.1'
end

View File

@ -6,11 +6,29 @@ PATH
GEM
remote: https://rubygems.org/
specs:
ast (2.3.0)
parallel (1.11.2)
parser (2.4.0.0)
ast (~> 2.2)
powerpack (0.1.1)
rainbow (2.2.2)
rake
rake (12.0.0)
rubocop (0.49.1)
parallel (~> 1.10)
parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
unicode-display_width (1.3.0)
PLATFORMS
ruby
DEPENDENCIES
rubocop (~> 0.49.1)
tox!
BUNDLED WITH

14
Rakefile Normal file
View File

@ -0,0 +1,14 @@
# frozen_string_literal: true
task default: :lint
task lint: :rubocop
task fix: 'rubocop:auto_correct'
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
rescue LoadError
nil
end