Skip to content

Commit 50cfb77

Browse files
author
Ignacio Jonas
committed
Add Rubocop to default rake task
1 parent 0906a9b commit 50cfb77

File tree

3 files changed

+4
-70
lines changed

3 files changed

+4
-70
lines changed

.rubocop.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,5 @@
1-
inherit_from: .rubocop_todo.yml
2-
31
AllCops:
42
RunRailsCops: true
53
Exclude:
64
- bin/**/*
75
- vendor/**/*
8-
9-
Style/DoubleNegation:
10-
Enabled: false
11-
12-
Style/SpaceInsideBrackets:
13-
Enabled: false
14-
15-
Style/Documentation:
16-
Enabled: false
17-
18-
Rails/ActionFilter:
19-
Enabled: false
20-
21-
Rails/Delegate:
22-
Enabled: false
23-
24-
Lint/UnderscorePrefixedVariableName:
25-
Enabled: false
26-
27-
Lint/Loop:
28-
Enabled: false
29-
30-
Lint/HandleExceptions:
31-
Enabled: false
32-
33-
Style/EachWithObject:
34-
Enabled: false

.rubocop_todo.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
require 'bundler/gem_tasks'
33

44
begin
5+
require 'rubocop/rake_task'
6+
RuboCop::RakeTask.new
7+
58
require 'rspec/core/rake_task'
69

710
desc 'Run Integration Tests'
@@ -17,7 +20,7 @@ begin
1720
desc 'Run All Suites'
1821
RSpec::Core::RakeTask.new(:all)
1922

20-
task default: :spec
23+
task default: [ :rubocop, :spec ]
2124
rescue LoadError
2225
# No RSpec
2326
end

0 commit comments

Comments
 (0)