File tree Expand file tree Collapse file tree 5 files changed +9
-34
lines changed Expand file tree Collapse file tree 5 files changed +9
-34
lines changed Original file line number Diff line number Diff line change 22AllCops :
33 Exclude :
44 - 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 22
33source 'https://rubygems.org'
44
5+ gem 'cookstyle'
56gem 'highline'
67gem 'rack'
78gem 'rake'
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3+ require 'cookstyle'
34require 'rake/testtask'
45require 'rubocop/rake_task'
56
@@ -9,6 +10,10 @@ task :rubocop do
910 RuboCop ::RakeTask . new
1011end
1112
13+ RuboCop ::RakeTask . new ( :cookstyle ) do |task |
14+ task . options << '--display-cop-names'
15+ end
16+
1217# lint the project
1318desc 'Run robocop linter'
1419task lint : [ :rubocop ]
@@ -44,5 +49,4 @@ task :changelog do
4449 Rake ::Task [ :changelog ] . execute
4550rescue LoadError
4651 puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
47-
4852end
Original file line number Diff line number Diff line change 1- # encoding: utf-8
21# frozen_string_literal: true
32
43#
5- # Copyright 2015, Dominik Richter
6- # Copyright 2016, Christoph Hartmann
4+ # Copyright:: 2015, Dominik Richter
5+ # Copyright:: 2016, Christoph Hartmann
76#
87# Licensed under the Apache License, Version 2.0 (the "License");
98# you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1- # encoding: utf-8
21# frozen_string_literal: true
32
43#
5- # Copyright 2016, Christoph Hartmann
4+ # Copyright:: 2016, Christoph Hartmann
65#
76# Licensed under the Apache License, Version 2.0 (the "License");
87# you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments