enforce to use Ruby 1.9 style hash syntax

This commit is contained in:
SHIBATA Hiroshi 2016-09-05 17:22:19 +09:00
parent deb7c2ac15
commit f8f686ec84
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
2 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@ StringLiterals:
SpaceAroundEqualsInParameterDefault:
Enabled: false
HashSyntax:
Enabled: false
Style/HashSyntax:
Enabled: true
LineLength:
Enabled: true

View File

@ -26,7 +26,7 @@ RDoc::Task.new do |doc|
doc.rdoc_dir = 'html'
end
task :ghpages => :rdoc do
task ghpages: :rdoc do
`git checkout gh-pages`
require 'fileutils'
FileUtils.rm_rf '/tmp/html'
@ -35,4 +35,4 @@ task :ghpages => :rdoc do
FileUtils.cp_r Dir.glob('/tmp/html/*'), '.'
end
task :default => :test
task default: :test