Sha256: c925e3e55bc3bc3a8c5eaab02ffe44fa65c280e458d5cdb9005acb6c6cb4774e

Contents?: true

Size: 1.59 KB

Versions: 36

Compression:

Stored size: 1.59 KB

Contents

require_relative "../file_finder"

module Standard
  module Runners
    class Help
      def call(config)
        puts <<-MESSAGE.gsub(/^ {10}/, "")
          Usage: standardrb [--fix] [-vh] [--format <name>] [--] [FILE]...

          Options:

            --fix             Automatically fix failures where possible
            --no-fix          Do not automatically fix failures
            --format <name>   Format output with any RuboCop formatter (e.g. "json")
            --generate-todo   Create a .standard_todo.yml that lists all the files that contain errors
            -v, --version     Print the version of Standard
            -h, --help        Print this message
            FILE              Files to lint [default: ./]

          Standard also forwards most CLI arguments to RuboCop. To see them, run:

            $ rubocop --help

          While Standard only offers a few configuration options, most can be set in
          a `.standard.yml` file. For full documentation, please visit:

            https://github.com/testdouble/standard

          Having trouble? Here's some diagnostic information:

                  Ruby version: #{RUBY_VERSION}
             Current directory: #{Dir.pwd}
               RuboCop version: #{RuboCop::Version.version}
              Standard version: #{Standard::VERSION}
          Standard config file: #{FileFinder.new.call(".standard.yml", Dir.pwd) || "[No file found]"}

          Please report any problems (and include the above information) at the URL below:

            https://github.com/testdouble/standard/issues/new

        MESSAGE
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
standard-1.18.1 lib/standard/runners/help.rb
standard-1.18.0 lib/standard/runners/help.rb
standard-1.17.0 lib/standard/runners/help.rb
standard-1.16.1 lib/standard/runners/help.rb
standard-1.16.0 lib/standard/runners/help.rb
standard-1.15.0 lib/standard/runners/help.rb
standard-1.14.0 lib/standard/runners/help.rb
standard-1.13.0 lib/standard/runners/help.rb
standard-1.12.1 lib/standard/runners/help.rb
standard-1.12.0 lib/standard/runners/help.rb
standard-1.11.0 lib/standard/runners/help.rb
standard-1.10.0 lib/standard/runners/help.rb
standard-1.9.1 lib/standard/runners/help.rb
standard-1.9.0 lib/standard/runners/help.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/standard-1.8.0/lib/standard/runners/help.rb
standard-1.8.0 lib/standard/runners/help.rb
standard-1.7.3 lib/standard/runners/help.rb
standard-1.7.2 lib/standard/runners/help.rb
standard-1.7.1 lib/standard/runners/help.rb
standard-1.7.0 lib/standard/runners/help.rb