spec/lib/kapost_deploy/plugins/slack_github_diff_spec.rb
Block has too many lines. [44/25] Open
Open
RSpec.describe KapostDeploy::Plugins::SlackGithubDiff do
let(:notifier_double) { double("notifier", notify: true, configured?: true) }
let(:git_repo_double) { double("git repo", log: git_log_double) }
let(:git_log_double) { double("git log", between: [1, 2]) }
let(:git_config) { { github_repo: "kapost/kapost_deploy", path: "." } }
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.