rubocop



  • $ rubocop --help
    Usage: rubocop [options] [file1, file2, ...]
        -L, --list-target-files          List all files RuboCop will inspect.
            --except [COP1,COP2,...]     Disable the given cop(s).
            --only [COP1,COP2,...]       Run only the given cop(s).
            --only-guide-cops            Run only cops for rules that link to a
                                         style guide.
        -c, --config FILE                Specify configuration file.
            --auto-gen-config            Generate a configuration file acting as a
                                         TODO list.
            --exclude-limit COUNT        Used together with --auto-gen-config to
                                         set the limit for how many Exclude
                                         properties to generate. Default is 15.
            --force-exclusion            Force excluding files specified in the
                                         configuration `Exclude` even if they are
                                         explicitly passed as arguments.
            --force-default-config       Use default configuration even if configuration
                                         files are present in the directory tree.
            --no-offense-counts          Do not include offense counts in configuration
                                         file generated by --auto-gen-config.
        -f, --format FORMATTER           Choose an output formatter. This option
                                         can be specified multiple times to enable
                                         multiple formatters at the same time.
                                           [p]rogress (default)
                                           [s]imple
                                           [c]lang
                                           [d]isabled cops via inline comments
                                           [fu]ubar
                                           [e]macs
                                           [j]son
                                           [h]tml
                                           [fi]les
                                           [o]ffenses
                                           [w]orst
                                           custom formatter class name
        -o, --out FILE                   Write output to a file instead of STDOUT.
                                         This option applies to the previously
                                         specified --format, or the default format
                                         if no format is specified.
        -r, --require FILE               Require Ruby file.
            --fail-level SEVERITY        Minimum severity (A/R/C/W/E/F) for exit
                                         with error code.
            --show-cops [COP1,COP2,...]  Shows the given cops, or all cops by
                                         default, and their configurations for the
                                         current directory.
        -F, --fail-fast                  Inspect files in order of modification
                                         time and stop after the first file
                                         containing offenses.
        -C, --cache FLAG                 Use result caching (FLAG=true) or don't
                                         (FLAG=false), default determined by
                                         configuration parameter AllCops: UseCache.
        -d, --debug                      Display debug info.
        -D, --display-cop-names          Display cop names in offense messages.
        -E, --extra-details              Display extra details in offense messages.
        -S, --display-style-guide        Display style guide URLs in offense messages.
        -R, --rails                      Run extra Rails cops.
        -l, --lint                       Run only lint cops.
        -a, --auto-correct               Auto-correct offenses.
        -n, --[no-]color                 Force color output on or off.
        -v, --version                    Display version.
        -V, --verbose-version            Display verbose version.
        -s, --stdin                      Pipe source from STDIN.
                                         This is useful for editor integration.
    

Log in to reply
 

© Lightnetics 2024