lib/avsh/argument_parser.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method parser has 34 lines of code (exceeds 25 allowed). Consider refactoring.
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).',
Severity: Minor
Found in lib/avsh/argument_parser.rb - About 1 hr to fix

    Block has too many lines. [32/25]
    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',
    Severity: Minor
    Found in lib/avsh/argument_parser.rb by rubocop

    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.

    There are no issues that match your filters.

    Category
    Status