File tree 3 files changed +6
-28
lines changed
3 files changed +6
-28
lines changed Original file line number Diff line number Diff line change 2
2
AllCops :
3
3
Exclude :
4
4
- vendor/**/*
5
- Documentation :
6
- Enabled : false
7
- Layout/ParameterAlignment :
8
- Enabled : true
9
- HashSyntax :
10
- Enabled : true
11
- LineLength :
12
- Enabled : false
13
- EmptyLinesAroundBlockBody :
14
- Enabled : false
15
- Style/Encoding :
16
- Enabled : false
17
- MethodLength :
18
- Max : 40
19
- NumericLiterals :
20
- MinDigits : 10
21
- Metrics/BlockLength :
22
- Max : 35
23
- Metrics/CyclomaticComplexity :
24
- Max : 10
25
- Metrics/PerceivedComplexity :
26
- Max : 10
27
- Metrics/AbcSize :
28
- Max : 30
29
- # Lint/AmbiguousBlockAssociation is incompatible with RSpec
30
- # https://github.com/rubocop-hq/rubocop/issues/4222
31
- Lint/AmbiguousBlockAssociation :
32
- Enabled : false
Original file line number Diff line number Diff line change 2
2
3
3
source 'https://rubygems.org'
4
4
5
+ gem 'cookstyle'
5
6
gem 'highline'
6
7
gem 'rack'
7
8
gem 'rake'
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env rake
2
2
# frozen_string_literal: true
3
3
4
+ require 'cookstyle'
4
5
require 'rake/testtask'
5
6
require 'rubocop/rake_task'
6
7
@@ -10,6 +11,10 @@ task :rubocop do
10
11
RuboCop ::RakeTask . new
11
12
end
12
13
14
+ RuboCop ::RakeTask . new ( :cookstyle ) do |task |
15
+ task . options << '--display-cop-names'
16
+ end
17
+
13
18
# lint the project
14
19
desc 'Run robocop linter'
15
20
task lint : [ :rubocop ]
You can’t perform that action at this time.
0 commit comments