parent
654d381039
commit
34d0dd6c7d
|
@ -21,13 +21,13 @@ AllCops:
|
|||
- script/**/*
|
||||
- vendor/**/*
|
||||
- tmp/**/*
|
||||
Layout/AlignHash:
|
||||
Layout/HashAlignment:
|
||||
EnforcedHashRocketStyle: table
|
||||
Layout/IndentationWidth:
|
||||
Severity: error
|
||||
Layout/IndentFirstArrayElement:
|
||||
Layout/FirstArrayElementIndentation:
|
||||
EnforcedStyle: consistent
|
||||
Layout/IndentFirstHashElement:
|
||||
Layout/FirstHashElementIndentation:
|
||||
EnforcedStyle: consistent
|
||||
Layout/MultilineMethodCallIndentation:
|
||||
EnforcedStyle: indented
|
||||
|
@ -65,7 +65,7 @@ Metrics/CyclomaticComplexity:
|
|||
Exclude:
|
||||
- lib/jekyll/utils.rb
|
||||
- lib/jekyll/commands/serve.rb
|
||||
Metrics/LineLength:
|
||||
Layout/LineLength:
|
||||
Exclude:
|
||||
- !ruby/regexp /features\/.*.rb/
|
||||
- Rakefile
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -27,7 +27,7 @@ group :test do
|
|||
gem "nokogiri", "~> 1.7"
|
||||
gem "rspec"
|
||||
gem "rspec-mocks"
|
||||
gem "rubocop", "~> 0.76.0"
|
||||
gem "rubocop", "~> 0.79.0"
|
||||
gem "rubocop-performance"
|
||||
gem "test-dependency-theme", :path => File.expand_path("test/fixtures/test-dependency-theme", __dir__)
|
||||
gem "test-theme", :path => File.expand_path("test/fixtures/test-theme", __dir__)
|
||||
|
|
|
@ -56,7 +56,7 @@ module Jekyll
|
|||
#
|
||||
# Returns true if the string passed in
|
||||
def include?(something)
|
||||
(output&.include?(something)) || content.include?(something)
|
||||
output&.include?(something) || content.include?(something)
|
||||
end
|
||||
|
||||
# The UID for this doc (useful in feeds).
|
||||
|
|
|
@ -14,13 +14,13 @@ class TestLiquidRenderer < JekyllUnitTest
|
|||
|
||||
output = @renderer.stats_table
|
||||
|
||||
# rubocop:disable Metrics/LineLength
|
||||
# rubocop:disable Layout/LineLength
|
||||
expected = [
|
||||
%r!^\| Filename\s+|\s+Count\s+|\s+Bytes\s+|\s+Time$!,
|
||||
%r!^\+(?:-+\+){4}$!,
|
||||
%r!^\|_posts/2010-01-09-date-override\.markdown\s+|\s+\d+\s+|\s+\d+\.\d{2}K\s+|\s+\d+\.\d{3}$!,
|
||||
]
|
||||
# rubocop:enable Metrics/LineLength
|
||||
# rubocop:enable Layout/LineLength
|
||||
|
||||
expected.each do |regexp|
|
||||
assert_match regexp, output
|
||||
|
|
Loading…
Reference in New Issue