class Diecut::ReportBuilders::MissingContextField
Public Instance Methods
add(*args)
click to toggle source
# File lib/diecut/report-builders/missing-context-field.rb, line 21 def add(*args) report.add(*args) end
collect()
click to toggle source
# File lib/diecut/report-builders/missing-context-field.rb, line 18 def collect end
other_advice()
click to toggle source
# File lib/diecut/report-builders/missing-context-field.rb, line 29 def other_advice <<-EOA Plugins defined options that go to fields that don't appear in templates. It's possible that a plugin defined an option for its templates but they were overridden, so the fields disappeared. Diecut doesn't yet check for that case. In those cases, you can ignore this warning. The other possiblity is that the default path has a typo. This is especially likely if there's also a report about a missing output field. The option might be used in a resolve somewhere, so even if it doesn't directly set an output field, it might influence generation that way. Do be careful to check this option: the option EOA end
other_summary()
click to toggle source
# File lib/diecut/report-builders/missing-context-field.rb, line 25 def other_summary "Options provide values that aren't used by any template" end
report_fields()
click to toggle source
# File lib/diecut/report-builders/missing-context-field.rb, line 10 def report_fields ["Output field name", "Option_name", "Plugin name"] end
report_name()
click to toggle source
# File lib/diecut/report-builders/missing-context-field.rb, line 6 def report_name "Unused options" end
report_status()
click to toggle source
# File lib/diecut/report-builders/missing-context-field.rb, line 14 def report_status report.empty? ? "OK" : "WARN" end