Implemented Rubocop
- just took a stab at running the StringLiterals cop to get a taste.
This commit is contained in:
parent
e996868033
commit
03d6e6c990
80 changed files with 510 additions and 477 deletions
|
@ -1,5 +1,5 @@
|
|||
require "pathname"
|
||||
require "set"
|
||||
require 'pathname'
|
||||
require 'set'
|
||||
|
||||
# API for watching file change events
|
||||
module Middleman
|
||||
|
@ -128,7 +128,7 @@ module Middleman
|
|||
path = Pathname(path)
|
||||
return unless path.exist?
|
||||
|
||||
glob = (path + "**").to_s
|
||||
glob = (path + '**').to_s
|
||||
subset = @known_paths.select { |p| p.fnmatch(glob) }
|
||||
|
||||
::Middleman::Util.all_files_under(path).each do |filepath|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue