Benign ruby Download

lib/rubocop/options.rb

Script prints a CLI usage screenTerminates the Ruby process with exit
SHA-2565b23c307c8826c3833d1943d2e81b6c201950c34b2916c9ea3d9289885b81c7c
MaleculeH₂(PoU)

Evidence

English function-word token "the" lines 1–12
1# encoding: utf-8
2
3require 'optparse'
4
5module RuboCop
6 # This module contains help texts for command line options.
7 module OptionsHelp
8 TEXT = {
9 only: 'Run only the given cop(s).',
10 only_guide_cops: ['Run only cops for rules that link to a',
11 'style guide.'],
12 except: 'Disable t …
English function-word token "and" lines 38–43
38:53… /W/E/F) for exit',
39 'with error code.'],
40 show_cops: ['Shows the given cops, or all cops by',
41 'default, and their configurations for the',
42 'current directory.'],
43 fail_fa …
Script prints a CLI usage screen lines 90–96
90:22… s(args)
91 OptionParser.new do |opts|
92 opts.banner = 'Usage: rubocop [options] [file1, file2, ...]'
93
94 add_only_options(opts)
95 add_configuration_options(opts, args)
96 add_formatting_optio …
Terminates the Ruby process with exit lines 202–206
202:20… gen-config can not be combined with any other arguments.'
203 exit(1)
204 end
205 end
206end

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.