Skip to content

Commit

Permalink
chore(deps): rubocop-jekyll-0.3 (#227)
Browse files Browse the repository at this point in the history
Merge pull request 227
  • Loading branch information
jekyllbot committed Oct 26, 2018
1 parent 1fd7a0f commit da410e0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
inherit_from: .rubocop_todo.yml

require: rubocop-jekyll

inherit_gem:
rubocop-jekyll: .rubocop.yml

Lint/Debugger:
Exclude:
- script/console
12 changes: 12 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2018-10-26 18:39:42 +0200 using RuboCop version 0.60.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
Lint/Debugger:
Exclude:
- 'script/console'
2 changes: 1 addition & 1 deletion jekyll-sitemap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "jekyll-last-modified-at", "0.3.4"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rubocop-jekyll", "~> 0.1"
spec.add_development_dependency "rubocop-jekyll", "~> 0.3"
end
2 changes: 1 addition & 1 deletion lib/jekyll/jekyll-sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generate(site)
# 1. A '>' followed by a newline or
# 2. A '}' which closes a Liquid tag
# We will strip all of this whitespace to minify the template
MINIFY_REGEX = %r!(?<=>\n|})\s+!
MINIFY_REGEX = %r!(?<=>\n|})\s+!.freeze

# Array of all non-jekyll site files with an HTML extension
def static_files
Expand Down

0 comments on commit da410e0

Please sign in to comment.