Class: Pronto::RubyCritic
- Inherits:
-
Runner
- Object
- Runner
- Pronto::RubyCritic
- Defined in:
- lib/pronto/rubycritic.rb,
lib/pronto/rubycritic/analyser.rb,
lib/pronto/rubycritic/formatter.rb,
lib/pronto/rubycritic/smell_filter.rb,
lib/pronto/rubycritic/config_loader.rb,
lib/pronto/rubycritic/message_builder.rb
Defined Under Namespace
Modules: ConfigLoader Classes: Analyser, Formatter, MessageBuilder, SmellFilter
Constant Summary collapse
- VERSION =
RubyCriticVersion::VERSION
- VALID_LEVELS =
%i[info warning error fatal].freeze
- DEFAULT_LEVEL =
:warning- CONFIG_FILE =
'.rubycritic-pronto.yml'- SEVERITY_ENV =
'PRONTO_RUBYCRITIC_SEVERITY_LEVEL'- LEGACY_ENV =
'PRONTO_REEK_SEVERITY_LEVEL'- RAISE_ENV =
'PRONTO_RUBYCRITIC_RAISE_ERRORS'- DEBUG_ENV =
'PRONTO_RUBYCRITIC_DEBUG'
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/pronto/rubycritic.rb', line 29 def run patches = ruby_patches return [] if patches.nil? || patches.empty? process(patches) rescue Errno::ENOENT => e handle_missing_file(e) [] rescue StandardError => e report_error(e) raise if truthy_env?(RAISE_ENV) [] end |