Class: Nanoc::Checking::Checks::Stale Private
- Inherits:
-
Nanoc::Checking::Check
- Object
- Nanoc::Core::Context
- Nanoc::Checking::Check
- Nanoc::Checking::Checks::Stale
- Defined in:
- lib/nanoc/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::Checking::Check
Instance Method Summary collapse
- #run ⇒ Object private
Methods inherited from Nanoc::Checking::Check
#add_issue, create, define, #excluded_patterns, #initialize, #output_filenames, #output_html_filenames
Constructor Details
This class inherits a constructor from Nanoc::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.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nanoc/checking/checks/stale.rb', line 10 def run 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 |