Features:
- New
-f
option added to allow you to specify which warnings should result in the build being failed. See the new documentation on using Foodcritic in Continuous Integration for more information. - New
-r
option added to drop you into the Pry REPL to interactively develop rules. See the updated documentation on Writing a new rule for more information.
Bugfixes:
- FC003: Check whether you are running with chef server before using server-specific features rule modified to not warn if the edelight chef-solo-search library has been installed. Thanks @tobami.
- FC007: Ensure recipe dependencies are reflected in cookbook metadata rule modified to flag undeclared dependencies against the offending file rather than metadata.rb.
- Removed the unused description field from the rule dsl.
Other:
- Project features now run much faster, running in-process by default. You can set an environment variable
(
FC_FORK_PROCESS
) to specify that Cucumber runs should match the earlier behaviour and spawn a separate process using Aruba.
Features:
- FC001: Use strings in preference to symbols to access node attributes rule added.
- FC004: Use a service resource to start and stop services rule extended to recognise upstart and invoke-rc.d.
- FC011: Missing README in markdown format rule added.
- FC012: Use Markdown for README rather than RDoc rule added.
- FC013: Use file_cache_path rather than hard-coding tmp paths rule added.
- FC014: Consider extracting long ruby_block to library rule added.
- FC015: Consider converting definition to a LWRP rule added.
- FC016: LWRP does not declare a default action rule added.
- FC017: LWRP does not notify when updated rule added.
- FC018: LWRP uses deprecated notification syntax rule added.
Bugfixes:
- Ensure warnings are line sorted numerically. Commit eb1762fd0fbf99fa513783d7838ceac0147c37bc
- FC005: Avoid repetition of resource declarations rule made less aggressive.
Bugfixes:
- Fix JSON version range for compatibility with Bundler / Chef 0.10.6. (related issue). Thanks @dysinger.
Features:
- Relaxed Ruby version constraint so we can run on 1.9.2 (related issue). Yay. Thanks @someara.
Features:
- Added the ability to choose rules to apply via tags (related issue). This uses the same syntax as Cucumber tag expressions.
- FC010: Invalid search syntax rule added.
Features:
- Spiffy new home page and documentation
- FC008: Generated cookbook metadata needs updating rule added.
- FC009: Resource attribute not recognised rule added. This adds a dependency on the Chef gem.
- Performance improvement.
Bugfixes:
- Fixed typo in FC004 feature description (related issue). Thanks @smith.
- Prevented statements within nested resource blocks from being interpreted as resource attributes.
Features:
- Significantly slower! But now you can write rules using xpath or css selectors.
- FC006: File mode rule added.
- FC007: Undeclared recipe dependencies rule added.
Bugfixes:
- Removed 'FC001: Use symbols in preference to strings to access node attributes' until a policy mechanism is introduced (related issue). Thanks @jtimberman
Initial version.