lib/avsh/argument_parser.rb
Method parser
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def parser # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
OptionParser.new do |opts|
opts.banner = banner_usages + "\nOptions:"
opts.on('-m', '--machine MACHINE', 'Target Vagrant machine(s).',
Block has too many lines. [32/25] Open
Open
OptionParser.new do |opts|
opts.banner = banner_usages + "\nOptions:"
opts.on('-m', '--machine MACHINE', 'Target Vagrant machine(s).',
'Can be specified as a plain string for a single machine, a',
- 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.