sds/lint-trappings

View on GitHub
lib/lint_trappings/arguments_parser.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method add_info_options has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def add_info_options(parser)
      parser.on('--show-linters',
                'Display available linters and whether or not they are enabled') do
        @options[:command] = :display_linters
      end
Severity: Minor
Found in lib/lint_trappings/arguments_parser.rb - About 1 hr to fix

    Method add_file_options has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def add_file_options(parser)
          parser.on('-c', '--config config-file', String,
                    'Specify which configuration file you want to use') do |conf_file|
            @options[:config_file] = conf_file
          end
    Severity: Minor
    Found in lib/lint_trappings/arguments_parser.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status