rubocop 2: the reckoning
This commit is contained in:
parent
04dc48f13d
commit
8eabe4d354
62 changed files with 328 additions and 363 deletions
|
@ -1,12 +1,12 @@
|
|||
# Shutup Tilt Warnings
|
||||
# @private
|
||||
class Tilt::Template
|
||||
def warn(*args)
|
||||
# Kernel.warn(*args)
|
||||
def warn(*)
|
||||
end
|
||||
end
|
||||
|
||||
# Rendering extension
|
||||
# rubocop:disable UnderscorePrefixedVariableName
|
||||
module Middleman
|
||||
module CoreExtensions
|
||||
module Rendering
|
||||
|
@ -402,6 +402,7 @@ module Middleman
|
|||
end
|
||||
|
||||
# The currently rendering engine
|
||||
# rubocop:disable TrivialAccessors
|
||||
# @return [Symbol, nil]
|
||||
def current_engine=(v)
|
||||
@_current_engine = v
|
||||
|
@ -427,7 +428,7 @@ module Middleman
|
|||
extension_class = ::Tilt[options[:preferred_engine]]
|
||||
|
||||
# Get a list of extensions for a preferred engine
|
||||
matched_exts = ::Tilt.mappings.select do |ext, engines|
|
||||
matched_exts = ::Tilt.mappings.select do |_, engines|
|
||||
engines.include? extension_class
|
||||
end.keys
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue