A Ruby static code analyzer and formatter, based on the community Ruby style guide.
2054 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .rubocop_todo.yml | 1 | # This configuration was generated by |
| LOW | config/default.yml | 61 | # Default formatter will be used if no `-f/--format` option is given. |
| LOW | config/default.yml | 81 | ExtraDetails: false |
| LOW | config/default.yml | 101 | # Change this behavior by overriding either `NewCops: enable` or `NewCops: disable`. |
| LOW | config/default.yml | 121 | # taken from the environment variable `$XDG_CACHE_HOME` if it is set, or if |
| LOW | config/default.yml | 141 | # or gems.locked file. (Although the Ruby version is specified in the Gemfile |
| LOW | config/default.yml | 401 | # column as the first parameter. |
| LOW | config/default.yml | 421 | Align the elements of an array literal if they span more than |
| LOW | config/default.yml | 841 | VersionAdded: '0.49' |
| LOW | config/default.yml | 921 | # 'a' => 2 |
| LOW | config/default.yml | 941 | # bb: 1 |
| LOW | config/default.yml | 961 | # Accepts: |
| LOW | config/default.yml | 1301 | VersionChanged: '0.77' |
| LOW | config/default.yml | 2941 | # of subdirectories in its path. |
| LOW | config/default.yml | 3461 | # do..end around multi-line blocks. |
| LOW | config/default.yml | 3501 | FunctionalMethods: |
| LOW | config/default.yml | 3521 | # foo = lambda do |x| |
| LOW | config/default.yml | 3541 | # # good |
| LOW | config/default.yml | 3561 | Description: 'Avoid explicit use of the case equality operator (`===`).' |
| LOW | config/default.yml | 3601 | VersionAdded: '0.9' |
| LOW | config/default.yml | 3621 | # end |
| LOW | config/default.yml | 6081 | # When set to `false` the cop will suggest the use of accessor methods |
| LOW | spec/core_ext/string.rb | 1 | # frozen_string_literal: true |
| LOW | spec/support/multiline_literal_brace_helper.rb | 1 | # frozen_string_literal: true |
| LOW | spec/rubocop/comment_config_spec.rb | 41 | @@class_var = 1 |
| LOW | spec/rubocop/cli/auto_gen_config_spec.rb | 601 | # Offense count: 1 |
| LOW | spec/rubocop/cop/generator_spec.rb | 21 | module RuboCop |
| LOW | spec/rubocop/cop/generator_spec.rb | 41 | # |
| LOW | spec/rubocop/cop/generator_spec.rb | 61 | # good_foo_method(args) |
| LOW | …bocop/cop/lint/redundant_cop_disable_directive_spec.rb | 441 | # 3, offense here |
| LOW | lib/rubocop/cops_documentation_generator.rb | 21 | examples: ->(data) { examples(data.example_objects, data.cop) }, |
| LOW | lib/rubocop/file_patterns.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/directive_comment.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/cache_config.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/magic_comment.rb | 181 | # Individual tokens composing an editor specific comment string. |
| LOW | lib/rubocop/magic_comment.rb | 241 | |
| LOW | lib/rubocop/magic_comment.rb | 261 | # Vim comments cannot specify shareable constant values behavior. |
| LOW | lib/rubocop/runner.rb | 341 | # We can reuse the prism result since the source did not change yet. |
| LOW | lib/rubocop/feature_loader.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/core_ext/string.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/ext/regexp_parser.rb | 21 | # Add `expression` and `loc` to all `regexp_parser` nodes |
| LOW | lib/rubocop/server/socket_reader.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/errors.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/helper.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/client_command.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/cli.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/core.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/server_command.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/client_command/base.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/client_command/status.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/client_command/restart.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/client_command/start.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/client_command/exec.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/client_command/stop.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/server_command/base.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/server_command/exec.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/server/server_command/stop.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/lsp/routes.rb | 1 | # frozen_string_literal: true |
| LOW | lib/rubocop/lsp/diagnostic.rb | 1 | # frozen_string_literal: true |
| 1433 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | spec/support/encoding_helper.rb | 7 | def with_default_internal_encoding(encoding) |
| LOW | spec/support/encoding_helper.rb | 15 | def with_default_external_encoding(encoding) |
| LOW | spec/support/project_index_metadata.rb | 35 | def project_index_runner_options(output_path, cache_root) |
| LOW | spec/rubocop/cop/lint/useless_method_definition_spec.rb | 49 | def instance_method_with_args(arg) |
| LOW | spec/rubocop/cop/lint/useless_method_definition_spec.rb | 83 | def other_class_method_with_args(arg) |
| LOW | spec/rubocop/cop/layout/redundant_line_break_spec.rb | 255 | def resolve_inheritance_from_gems(hash) |
| LOW | spec/rubocop/cop/layout/redundant_line_break_spec.rb | 274 | def resolve_inheritance_from_gems(hash) |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 604 | def method_definition_that_is_just_under_the_line_length_limit(foo, bar) # rubocop:disable Metrics/AbcSize |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 613 | def method_definition_that_is_just_under_the_line_length_limit(foo) # rubocop:disable Metrics/AbcSize inhere |
| LOW | lib/rubocop/cops_documentation_generator.rb | 360 | def table_of_content_for_department(department) |
| LOW | lib/rubocop/directive_comment.rb | 207 | def exclude_lint_department_cops(cops) |
| LOW | lib/rubocop/file_finder.rb | 26 | def traverse_directories_upwards(start_dir, stop_dir = nil) |
| LOW | lib/rubocop/target_finder.rb | 117 | def combined_exclude_glob_patterns(base_dir) |
| LOW | lib/rubocop/cli.rb | 233 | def warn_if_cache_root_changed(early, desired) |
| LOW | lib/rubocop/cached_data.rb | 54 | def location_from_source_buffer(offense) |
| LOW | lib/rubocop/magic_comment.rb | 206 | def new_frozen_string_literal(value) |
| LOW | lib/rubocop/magic_comment.rb | 298 | def new_frozen_string_literal(value) |
| LOW | lib/rubocop/target_ruby.rb | 114 | def version_from_gemspec_file(file) |
| LOW | lib/rubocop/target_ruby.rb | 132 | def version_from_right_hand_side(right_hand_side) |
| LOW | lib/rubocop/config_validator.rb | 100 | def alert_about_unrecognized_cops(invalid_cop_names) |
| LOW | lib/rubocop/config_validator.rb | 237 | def validate_support_and_has_list(name, formats, valid) |
| LOW | lib/rubocop/config.rb | 127 | def add_excludes_from_higher_level(highest_config) |
| LOW | lib/rubocop/config.rb | 371 | def gem_version_to_major_minor_float(gem_version) |
| LOW | lib/rubocop/config_loader_resolver.rb | 75 | def resolve_inheritance_from_gems(hash) |
| LOW | lib/rubocop/config_loader_resolver.rb | 139 | def override_department_setting_for_cops(base_hash, derived_hash) |
| LOW | lib/rubocop/config_loader_resolver.rb | 156 | def override_enabled_for_disabled_departments(base_hash, derived_hash) |
| LOW | lib/rubocop/config_loader_resolver.rb | 172 | def resolve_default_overrides(config) |
| LOW | lib/rubocop/config_loader_resolver.rb | 193 | def warn_on_duplicate_setting(base_hash, derived_hash, key, **opts) |
| LOW | lib/rubocop/config_loader_resolver.rb | 205 | def duplicate_setting_warning(opts, key) |
| LOW | lib/rubocop/config_loader_resolver.rb | 280 | def handle_disabled_by_default(config, new_default_configuration) |
| LOW | lib/rubocop/comment_config.rb | 70 | def extra_enabled_comments_with_names(extras:, names:) |
| LOW | lib/rubocop/comment_config.rb | 165 | def inject_disabled_cops_directives(analyses) |
| LOW | lib/rubocop/options.rb | 145 | def add_autocorrection_options(opts) # rubocop:disable Metrics/MethodLength |
| LOW | lib/rubocop/options.rb | 168 | def add_config_generation_options(opts) |
| LOW | lib/rubocop/options.rb | 186 | def add_cop_selection_csv_option(option, opts) |
| LOW | lib/rubocop/pending_cops_reporter.rb | 31 | def pending_cops_only_qualified(pending_cops) |
| LOW | lib/rubocop/runner.rb | 167 | def process_report_queue_entry(index) |
| LOW | lib/rubocop/runner.rb | 282 | def team_for_redundant_disables(file, offenses, source) |
| LOW | lib/rubocop/runner.rb | 299 | def redundant_cop_disable_directive(file) |
| LOW | lib/rubocop/plugin/loader.rb | 90 | def constantize_plugin_from_gemspec_metadata(plugin_name) |
| LOW | lib/rubocop/plugin/configuration_integrator.rb | 13 | def integrate_plugins_into_rubocop_config(rubocop_config, plugins) |
| LOW | lib/rubocop/plugin/configuration_integrator.rb | 81 | def fake_out_rubocop_default_configuration(default_config) |
| LOW | lib/rubocop/plugin/configuration_integrator.rb | 92 | def load_plugin_rubocop_config(plugin, runner_context) |
| LOW | lib/rubocop/server/cli.rb | 112 | def fetch_cache_root_path_from(arguments) |
| LOW | lib/rubocop/server/cli.rb | 123 | def delete_server_argument_from(all_arguments) |
| LOW | lib/rubocop/server/cache.rb | 124 | def write_port_and_token_files(port:, token:) |
| LOW | lib/rubocop/lsp/routes.rb | 173 | def handle_unsupported_method(request, method = request[:method]) |
| LOW | lib/rubocop/lsp/routes.rb | 192 | def extract_initialization_options_from(request) |
| LOW | lib/rubocop/cli/command/show_cops.rb | 77 | def selected_cops_of_department(cops, department) |
| LOW | lib/rubocop/cli/command/auto_generate_config.rb | 141 | def add_inheritance_from_auto_generated_file(config_file) |
| LOW | lib/rubocop/formatter/junit_formatter.rb | 85 | def add_testcase_element_to_testsuite_element(file, target_offenses, cop) |
| LOW | lib/rubocop/formatter/junit_formatter.rb | 94 | def classname_attribute_value(file) |
| LOW | lib/rubocop/formatter/disabled_config_formatter.rb | 189 | def output_cop_param_comments(output_buffer, params, default_cfg) |
| LOW | lib/rubocop/cop/autocorrect_logic.rb | 78 | def disable_offense_with_eol_or_surround_comment(range) |
| LOW | lib/rubocop/cop/autocorrect_logic.rb | 144 | def disable_offense_at_end_of_line(range) |
| LOW | lib/rubocop/cop/autocorrect_logic.rb | 152 | def disable_offense_before_and_after(range_by_lines) |
| LOW | lib/rubocop/cop/team.rb | 173 | def investigate_with_corrector(processed_source, offset:, original:) |
| LOW | lib/rubocop/cop/variable_force.rb | 20 | # def before_declaring_variable(variable, variable_table) |
| LOW | lib/rubocop/cop/variable_force.rb | 99 | def inspect_variables_in_scope(scope_node) |
| LOW | lib/rubocop/cop/variable_force.rb | 136 | def process_variable_declaration(node) |
| 402 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | lib/rubocop/cop/lint/redundant_safe_navigation.rb | 224 | range_with_default = node.lhs.source_range.end.begin.join(node.source_range.end) |
| CRITICAL | lib/rubocop/cop/lint/loop.rb | 70 | node.body.loc.end.end.join(node.source_range.end) |
| CRITICAL | lib/rubocop/cop/lint/useless_assignment.rb | 200 | corrector.remove(node.parent.location.operator.end.adjust(begin_pos: -1)) |
| CRITICAL | lib/rubocop/cop/layout/block_end_newline.rb | 78 | node.children.compact.last.source_range.end.join(node.loc.end) |
| CRITICAL | lib/rubocop/cop/mixin/trailing_comma.rb | 146 | after_last_item = node.children.last.source_range.end.join(node.source_range.end) |
| CRITICAL | lib/rubocop/cop/style/reverse_find.rb | 41 | range = node.children.first.loc.selector.join(node.loc.selector) |
| CRITICAL | lib/rubocop/cop/style/combinable_loops.rb | 114 | corrector.remove(node.left_sibling.body.source_range.end.join(node.left_sibling.loc.end)) |
| CRITICAL | …ubocop/cop/style/map_compact_with_conditional_block.rb | 159 | node.receiver.send_node.loc.selector.begin.join(node.source_range.end) |
| CRITICAL | lib/rubocop/cop/style/semicolon.rb | 140 | space = node.parent.loc.selector.end.join(node.source_range.begin) |
| CRITICAL | lib/rubocop/cop/style/infinite_loop.rb | 96 | corrector.remove(node.body.loc.end.end.join(node.source_range.end)) |
| CRITICAL | lib/rubocop/cop/style/multiple_comparison.rb | 117 | values.first.parent.source_range.begin.join(values.last.parent.source_range.end) |
| CRITICAL | …ubocop/cop/style/redundant_double_splat_hash_braces.rb | 86 | node.children.last.source_range.end.join(node.loc.end) |
| CRITICAL | …p/cop/internal_affairs/processed_source_buffer_name.rb | 33 | offense_range = node.children.first.loc.selector.begin.join(node.source_range.end) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .rubocop.yml | 104 | # This file is intentionally empty to catch rubocop cops failing on empty files. |
| MEDIUM | spec/rubocop/config_spec.rb | 601 | # This file is in an 'app' subdirectory of the project, so it should match. |
| MEDIUM | spec/rubocop/cli_spec.rb | 1400 | # This file contains configuration for an unknown cop. This would cause a |
| MEDIUM | lib/rubocop/config_obsoletion.rb | 4 | # This class handles obsolete configuration. |
| MEDIUM | lib/rubocop/cache_config.rb | 4 | # This class represents the cache config of the caching RuboCop runs. |
| MEDIUM | lib/rubocop/platform.rb | 4 | # This module provides information on the platform that RuboCop is being run |
| MEDIUM | lib/rubocop/util.rb | 4 | # This module contains a collection of useful utility methods. |
| MEDIUM | lib/rubocop/config.rb | 7 | # This class represents the configuration of the RuboCop application |
| MEDIUM | lib/rubocop/config_regeneration.rb | 4 | # This class handles collecting the options for regenerating a TODO file. |
| MEDIUM | lib/rubocop/comment_config.rb | 11 | # This class provides an API compatible with RuboCop::DirectiveComment |
| MEDIUM | lib/rubocop/options.rb | 12 | # This class handles command line options. |
| MEDIUM | lib/rubocop/options.rb | 528 | # This module contains help texts for command line options. |
| MEDIUM | lib/rubocop/pending_cops_reporter.rb | 6 | # This class is responsible for displaying warnings when new cops have been added to RuboCop |
| MEDIUM | lib/rubocop/runner.rb | 6 | # This class handles the processing of files, which includes dealing with |
| MEDIUM | lib/rubocop/feature_loader.rb | 4 | # This class handles loading files (a.k.a. features in Ruby) specified |
| MEDIUM | lib/rubocop/config_loader.rb | 13 | # This class represents the configuration of the RuboCop application |
| MEDIUM | lib/rubocop/server/client_command/status.rb | 15 | # This class is a client command to show server process status. |
| MEDIUM | lib/rubocop/server/client_command/restart.rb | 15 | # This class is a client command to restart server process. |
| MEDIUM | lib/rubocop/server/client_command/start.rb | 15 | # This class is a client command to start server process. |
| MEDIUM | lib/rubocop/server/client_command/exec.rb | 15 | # This class is a client command to execute server process. |
| MEDIUM | lib/rubocop/server/client_command/stop.rb | 15 | # This class is a client command to stop server process. |
| MEDIUM | lib/rubocop/server/server_command/exec.rb | 15 | # This class is a server command to execute `rubocop` command using `RuboCop::CLI.new#run`. |
| MEDIUM | lib/rubocop/server/server_command/stop.rb | 15 | # This class is a server command to stop server process. |
| MEDIUM | lib/rubocop/formatter/html_formatter.rb | 62 | # This class provides helper methods used in the ERB template. |
| MEDIUM | lib/rubocop/formatter/html_formatter.rb | 136 | # This class provides helper methods used in the ERB CSS template. |
| MEDIUM | lib/rubocop/rspec/cop_helper.rb | 5 | # This module provides methods that make it easier to test Cops. |
| MEDIUM | lib/rubocop/cop/util.rb | 5 | # This module contains a collection of useful utility methods. |
| MEDIUM | lib/rubocop/cop/variable_force/reference.rb | 6 | # This class represents each reference of a variable. |
| MEDIUM | lib/rubocop/cop/variable_force/assignment.rb | 6 | # This class represents each assignment of a variable. |
| MEDIUM | lib/rubocop/cop/correctors/line_break_corrector.rb | 5 | # This class handles autocorrection for code that needs to be moved |
| MEDIUM | lib/rubocop/cop/mixin/nil_methods.rb | 5 | # This module provides a list of methods that are: |
| MEDIUM | lib/rubocop/cop/mixin/configurable_numbering.rb | 5 | # This module provides functionality for checking if numbering match the |
| MEDIUM | lib/rubocop/cop/mixin/configurable_naming.rb | 5 | # This module provides functionality for checking if names match the |
| MEDIUM | lib/rubocop/cop/mixin/method_complexity.rb | 7 | # This module handles measurement and reporting of complexity in methods. |
| MEDIUM | lib/rubocop/cop/style/arguments_forwarding.rb | 99 | # # The following code can replace the arguments with `...`, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 462 | 1st offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 462 | 1st offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 465 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor in |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 465 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor in |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 467 | 2nd offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 467 | 2nd offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 470 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor inci |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 470 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor inci |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 472 | no offense (nested inside permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiu |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 472 | no offense (nested inside permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiu |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 474 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor inci |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 474 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor inci |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 476 | 3rd offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 476 | 3rd offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 479 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor in |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 479 | no offense (permitted): Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor in |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 481 | 4th offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 481 | 4th offense: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut l |
| LOW | spec/rubocop/cop/layout/line_length_spec.rb | 497 | # Lorem ipsum dolar sit amet. |
| LOW | …/rubocop/cop/style/trailing_comma_in_arguments_spec.rb | 143 | email: "foo@bar.com" |
| LOW | …/rubocop/cop/style/trailing_comma_in_arguments_spec.rb | 162 | email: "foo@bar.com" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | config/default.yml | 3555 | # methods use braces. For example, you can use this to enforce Sorbet |
| LOW | spec/rubocop/cli/options_spec.rb | 2328 | C: 1: 3: [Correctable] Style/SpecialGlobalVars: Prefer $INPUT_RECORD_SEPARATOR or $RS from the stdlib 'English |
| LOW | spec/rubocop/cli/options_spec.rb | 2368 | C: 1: 3: [Corrected] Style/SpecialGlobalVars: Prefer $INPUT_RECORD_SEPARATOR or $RS from the stdlib 'English' |
| LOW | spec/rubocop/cli/options_spec.rb | 2390 | C: 1: 3: [Corrected] Style/SpecialGlobalVars: Prefer $INPUT_RECORD_SEPARATOR or $RS from the stdlib 'English' |
| MEDIUM | spec/rubocop/cop/generator_spec.rb | 66 | # In many cases, you can use a node matcher for matching node pattern. |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 49 | ^^ Prefer `$PROCESS_ID` or `$PID` from the stdlib 'English' module (don't forget to require it) over `$$` |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 60 | ^^ Prefer `$ARGV` from the stdlib 'English' module (don't forget to require it) or `ARGV` over `$*`. |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 75 | ^^ Prefer `$INPUT_RECORD_SEPARATOR` or `$RS` from the stdlib 'English' module (don't forget to require it) ove |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 97 | ^^ Prefer `$ERROR_INFO` from the stdlib 'English' module (don't forget to require it) over `$!`. |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 120 | ^^ Prefer `$ERROR_INFO` from the stdlib 'English' module (don't forget to require it) over `$!`. |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 142 | ^^ Prefer `$PROCESS_ID` or `$PID` from the stdlib 'English' module (don't forget to require it) over `$ |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 158 | ^^ Prefer `$PROCESS_ID` or `$PID` from the stdlib 'English' module (don't forget to require it) over |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 178 | ^^ Prefer `$ARGV` from the stdlib 'English' module (don't forget to require it) or `ARGV` over `$*`. |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 180 | ^^ Prefer `$ARGV` from the stdlib 'English' module (don't forget to require it) or `ARGV` over `$*`. |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 209 | ^^ Prefer `$PROCESS_ID` or `$PID` from the stdlib 'English' module (don't forget to require it) over `$ |
| LOW | spec/rubocop/cop/style/special_global_vars_spec.rb | 221 | ^^ Prefer `$PROCESS_ID` or `$PID` from the stdlib 'English' module (don't forget to require it) over `$ |
| MEDIUM | lib/rubocop/rspec/expect_offense.rb | 75 | # If your code has variables of different lengths, you can use the |
| MEDIUM | lib/rubocop/cop/generator.rb | 59 | # In many cases, you can use a node matcher for matching node pattern. |
| MEDIUM | lib/rubocop/cop/lint/missing_super.rb | 20 | # not meant to be called with `super`. In those cases, you can use the |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | lib/rubocop/magic_comment.rb | 52 | # just return `frozen_string_literal` since an invalid magic comment |
| LOW | lib/rubocop/server/cache.rb | 40 | # If we can't find a Gemfile, just use the current directory |
| LOW | lib/rubocop/cop/lint/rand_one.rb | 18 | # 0 # just use 0 instead |
| LOW | lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb | 11 | # block will just return a transformation of the last element value, and |
| LOW | lib/rubocop/cop/style/hash_syntax.rb | 65 | # {c: 2, 'd' => 3} # should just use hash rockets |
| LOW | lib/rubocop/cop/style/encoding.rb | 8 | # these comments are no longer necessary and just add noise. |
| LOW | lib/rubocop/cop/naming/predicate_method.rb | 253 | # so just return an `array` sexp for simplicity. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | lib/rubocop.rb | 753 | unless File.exist?("#{__dir__}/../rubocop.gemspec") # Check if we are a gem |
| LOW | lib/rubocop/cop/mixin/frozen_string_literal.rb | 47 | # Check if a magic string literal comment specifies what to do |
| LOW | lib/rubocop/cop/style/redundant_line_continuation.rb | 161 | # Check if source is still valid without the continuation |
| LOW | lib/rubocop/cop/style/fetch_env_var.rb | 111 | # Check if the node is a receiver and receives a message with dot syntax. |