Class: Nanoc::Extra::Checking::Checks::Stale Private
- Inherits:
-
Nanoc::Extra::Checking::Check
- Object
- Int::Context
- Nanoc::Extra::Checking::Check
- Nanoc::Extra::Checking::Checks::Stale
- Defined in:
- lib/nanoc/extra/checking/checks/stale.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Nanoc::Extra::Checking::Check
Instance Method Summary collapse
- #run ⇒ Object private
Methods inherited from Nanoc::Extra::Checking::Check
#add_issue, create, #initialize
Methods included from Int::PluginRegistry::PluginMethods
#all, #identifier, #identifiers, #named, #register
Methods inherited from Int::Context
Constructor Details
This class inherits a constructor from Nanoc::Extra::Checking::Check
Instance Method Details
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/nanoc/extra/checking/checks/stale.rb', line 4 def run require 'set' output_filenames.each do |f| next if pruner.filename_excluded?(f) next if item_rep_paths.include?(f) add_issue( 'file without matching item', subject: f, ) end end |