spec/wcc/commit_lint_spec.rb in danger-wcc-0.0.4 vs spec/wcc/commit_lint_spec.rb in danger-wcc-0.0.5

- old
+ new

@@ -2,11 +2,11 @@ # Copied and modified from # https://github.com/jonallured/danger-commit_lint # which is licensed under the MIT License -require File.expand_path('../../spec_helper', __FILE__) +require File.expand_path('../spec_helper', __dir__) TEST_MESSAGES = { subject_cap: 'this subject needs a capital', subject_words: 'Fixed', subject_length: 'This is a really long subject line and should result in an'\ @@ -22,12 +22,10 @@ NOOP_MESSAGE = Danger::DangerWCC::CommitLint::NOOP_MESSAGE SUBJECT_LENGTH_CHECK_MESSAGE = 'Please limit commit subject line to 50 '\ 'characters.' -# rubocop:enable Metrics/LineLength - def report_counts(status_report) status_report.values.flatten.count end module Danger @@ -386,7 +384,5 @@ end end end end end - -# rubocop:enable Metrics/ClassLength