Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RuboCop Config used by Hound CI #19

Merged
merged 2 commits into from
Jul 14, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .hound.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
ruby:
rubocop:
config_file: .rubocop.yml
# version: 0.54.0 (default)
# http://help.houndci.com/configuration/rubocop
16 changes: 15 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Documentation:
Enabled: false
Gemspec/OrderedDependencies:
Enabled: false
Layout/EmptyLineAfterMagicComment:
Enabled: false
Layout/IndentArray:
EnforcedStyle: consistent
Layout/IndentHash:
Expand All @@ -8,19 +12,29 @@ Metrics/LineLength:
Max: 90
Metrics/MethodLength:
Max: 24
Naming/FileName:
Enabled: false
Style/BracesAroundHashParameters:
Enabled: false
Style/Encoding:
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
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
source "https://rubygems.org"
ashmaroli marked this conversation as resolved.
Show resolved Hide resolved

# Specify your gem's dependencies in jekyll-tidy.gemspec
gemspec
6 changes: 3 additions & 3 deletions jekyll-tidy.gemspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# 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"
spec.version = Jekyll::Tidy::VERSION
spec.authors = ["Wyatt Kirby"]
spec.email = ["[email protected]"]

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"

Expand Down
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
@@ -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"

Expand Down