lib/changelog/plugin.rb in danger-changelog-0.7.0 vs lib/changelog/plugin.rb in danger-changelog-0.7.1
- old
+ new
@@ -26,10 +26,10 @@
def check!
have_you_updated_changelog? && is_changelog_format_correct?
end
# Run all checks.
- # @param format [Symbol] the format to check against
+ # @param parser [Symbol] the parser to check with
# @return [Boolean] true when the check passes
def check(parser = Danger::Changelog::Config.format)
warn '[DEPRECATION] `check` is deprecated. Set format with `.format` and use `check!` instead.'
config.format = parser
check!