diff --git a/.hound.yml b/.hound.yml index 5d0ff60..9d8bd43 100644 --- a/.hound.yml +++ b/.hound.yml @@ -1,2 +1,4 @@ -ruby: +rubocop: config_file: .rubocop.yml + # version: 0.54.0 (default) + # http://help.houndci.com/configuration/rubocop diff --git a/.rubocop.yml b/.rubocop.yml index 381a404..5b55f1c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,9 @@ Documentation: Enabled: false +Gemspec/OrderedDependencies: + Enabled: false +Layout/EmptyLineAfterMagicComment: + Enabled: false Layout/IndentArray: EnforcedStyle: consistent Layout/IndentHash: @@ -8,19 +12,31 @@ Metrics/LineLength: Max: 90 Metrics/MethodLength: Max: 24 +Naming/FileName: + Enabled: false Style/BracesAroundHashParameters: Enabled: false +Style/Encoding: + Enabled: false +Style/FrozenStringLiteralComment: + Enabled: false Style/GuardClause: Enabled: false Style/HashSyntax: EnforcedStyle: hash_rockets +Style/MutableConstant: + Enabled: false Style/PercentLiteralDelimiters: PreferredDelimiters: + "%q": "{}" + "%Q": "{}" "%w": "()" "%W": "()" Style/RedundantReturn: Enabled: false Style/StringLiterals: EnforcedStyle: double_quotes -Style/TrailingCommaInLiteral: +Style/TrailingCommaInArrayLiteral: + EnforcedStyleForMultiline: consistent_comma +Style/TrailingCommaInHashLiteral: EnforcedStyleForMultiline: consistent_comma diff --git a/Gemfile b/Gemfile index 4da2dfc..eb0beb3 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source 'https://rubygems.org' +source "https://rubygems.org" # Specify your gem's dependencies in jekyll-tidy.gemspec gemspec diff --git a/jekyll-tidy.gemspec b/jekyll-tidy.gemspec index 2e932b3..1737de6 100644 --- a/jekyll-tidy.gemspec +++ b/jekyll-tidy.gemspec @@ -1,7 +1,7 @@ # coding: utf-8 -lib = File.expand_path('../lib', __FILE__) +lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'jekyll/tidy/version' +require "jekyll/tidy/version" Gem::Specification.new do |spec| spec.name = "jekyll-tidy" @@ -9,7 +9,7 @@ Gem::Specification.new do |spec| spec.authors = ["Wyatt Kirby"] spec.email = ["wyatt@apsis.io"] - spec.summary = %q{Sanitize and Tidy HTML Output for Jekyll} + spec.summary = "Sanitize and Tidy HTML Output for Jekyll" spec.homepage = "http://www.apsis.io" spec.license = "MIT" diff --git a/test/helper.rb b/test/helper.rb index 9703235..6ccbf30 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) +$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "jekyll/tidy" require "minitest/autorun"