=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== rubocop-0.89.1+dfsg/CHANGELOG.md-431-* [#7590](https://github.com/rubocop-hq/rubocop/issues/7590): Fix an error for `Layout/SpaceBeforeBlockBraces` when using with `EnforcedStyle: line_count_based` of `Style/BlockDelimiters` cop. ([@koic][]) rubocop-0.89.1+dfsg/CHANGELOG.md:432:* [#7569](https://github.com/rubocop-hq/rubocop/issues/7569): Make `Style/YodaCondition` accept `__FILE__ == $0`. ([@koic][]) rubocop-0.89.1+dfsg/CHANGELOG.md-433-* [#7576](https://github.com/rubocop-hq/rubocop/issues/7576): Fix an error for `Gemspec/OrderedDependencies` when using a local variable in an argument of dependent gem. ([@koic][]) ############################################## rubocop-0.89.1+dfsg/CHANGELOG.md-852- rubocop-0.89.1+dfsg/CHANGELOG.md:853:* Add `$stdout`/`$stderr` and `STDOUT`/`STDERR` method calls to `Rails/Output`. ([@elebow][]) rubocop-0.89.1+dfsg/CHANGELOG.md-854-* [#6688](https://github.com/rubocop-hq/rubocop/pull/6688): Add `iterator?` to deprecated methods and prefer `block_given?` instead. ([@tejasbubane][]) ############################################## rubocop-0.89.1+dfsg/CHANGELOG.md-859-* [#6675](https://github.com/rubocop-hq/rubocop/issues/6675): Avoid printing deprecation warnings about constants. ([@elmasantos][]) rubocop-0.89.1+dfsg/CHANGELOG.md:860:* [#6746](https://github.com/rubocop-hq/rubocop/issues/6746): Avoid offense on `$stderr.puts` with no arguments. ([@luciamo][]) rubocop-0.89.1+dfsg/CHANGELOG.md-861-* Replace md5 with sha1 for FIPS compliance. ([@dirtyharrycallahan][]) ############################################## rubocop-0.89.1+dfsg/CHANGELOG.md-2389-* [#2967](https://github.com/rubocop-hq/rubocop/pull/2967): Fix auto-correcting of `===`, `<=`, and `>=` in `Style/ConditionalAssignment`. ([@rrosenblum][]) rubocop-0.89.1+dfsg/CHANGELOG.md:2390:* [#2977](https://github.com/rubocop-hq/rubocop/issues/2977): Fix auto-correcting of `"#{$!}"` in `Style/SpecialGlobalVars`. ([@lumeet][]) rubocop-0.89.1+dfsg/CHANGELOG.md-2391-* [#2935](https://github.com/rubocop-hq/rubocop/issues/2935): Make configuration loading work if `SafeYAML.load` is private. ([@jonas054][]) ############################################## rubocop-0.89.1+dfsg/CHANGELOG.md-2751-* `Style/IfUnlessModifier` accepts blocks followed by a chained call. ([@lumeet][]) rubocop-0.89.1+dfsg/CHANGELOG.md:2752:* [#2261](https://github.com/rubocop-hq/rubocop/issues/2261): Make relative `Exclude` paths in `$HOME/.rubocop_todo.yml` be relative to current directory. ([@jonas054][]) rubocop-0.89.1+dfsg/CHANGELOG.md-2753-* [#2286](https://github.com/rubocop-hq/rubocop/issues/2286): Handle auto-correction of empty method when `AllowIfMethodIsEmpty` is `false` in `Style/SingleLineMethods`. ([@jonas054][]) ############################################## rubocop-0.89.1+dfsg/CHANGELOG.md-3184-* [#1459](https://github.com/rubocop-hq/rubocop/issues/1459): Handle parenthesis around the condition in `--auto-correct` for `NegatedWhile`. ([@jonas054][]) rubocop-0.89.1+dfsg/CHANGELOG.md:3185:* [#1465](https://github.com/rubocop-hq/rubocop/issues/1465): Fix auto-correct of code like `#$1` in `PerlBackrefs`. ([@bbatsov][]) rubocop-0.89.1+dfsg/CHANGELOG.md:3186:* Fix auto-correct of code like `#$:` in `SpecialGlobalVars`. ([@bbatsov][]) rubocop-0.89.1+dfsg/CHANGELOG.md-3187-* [#1466](https://github.com/rubocop-hq/rubocop/issues/1466): Allow leading underscore for unused parameters in `SingleLineBlockParams`. ([@jonas054][]) ############################################## rubocop-0.89.1+dfsg/CHANGELOG.md-3782-* Made auto-correct much less likely to crash due to conflicting corrections ("clobbering"). ([@jonas054][]) rubocop-0.89.1+dfsg/CHANGELOG.md:3783:* [#565](https://github.com/rubocop-hq/rubocop/pull/565): `$GLOBAL_VAR from English library` should no longer be inserted when auto-correcting short-form global variables like `$!`. ([@nevir][]) rubocop-0.89.1+dfsg/CHANGELOG.md-3784-* [#566](https://github.com/rubocop-hq/rubocop/pull/566): Methods that just assign a splat to an ivar are no longer considered trivial writers. ([@nevir][]) ############################################## rubocop-0.89.1+dfsg/CHANGELOG.md-4011-* [#338](https://github.com/rubocop-hq/rubocop/issues/338): Fix end alignment of blocks in chained assignments. rubocop-0.89.1+dfsg/CHANGELOG.md:4012:* [#345](https://github.com/rubocop-hq/rubocop/issues/345): Add `$SAFE` to the list of built-in global variables. rubocop-0.89.1+dfsg/CHANGELOG.md-4013-* [#340](https://github.com/rubocop-hq/rubocop/issues/340): Override config parameters rather than merging them. ############################################## rubocop-0.89.1+dfsg/config/default.yml-117- # CacheRootDirectory is ~ (nil), which it is by default, the root will be rubocop-0.89.1+dfsg/config/default.yml:118: # taken from the environment variable `$XDG_CACHE_HOME` if it is set, or if rubocop-0.89.1+dfsg/config/default.yml:119: # `$XDG_CACHE_HOME` is not set, it will be `$HOME/.cache/`. rubocop-0.89.1+dfsg/config/default.yml-120- CacheRootDirectory: ~ ############################################## rubocop-0.89.1+dfsg/config/default.yml-1730- Do not use regexp literal as a condition. rubocop-0.89.1+dfsg/config/default.yml:1731: The regexp literal matches `$_` implicitly. rubocop-0.89.1+dfsg/config/default.yml-1732- Enabled: true ############################################## rubocop-0.89.1+dfsg/config/default.yml-3026-Style/GlobalStdStream: rubocop-0.89.1+dfsg/config/default.yml:3027: Description: 'Enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`.' rubocop-0.89.1+dfsg/config/default.yml-3028- StyleGuide: '#global-stdout' ############################################## rubocop-0.89.1+dfsg/config/default.yml-4008-Style/StderrPuts: rubocop-0.89.1+dfsg/config/default.yml:4009: Description: 'Use `warn` instead of `$stderr.puts`.' rubocop-0.89.1+dfsg/config/default.yml-4010- StyleGuide: '#warn' ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/configuration.adoc-36-* `~/.rubocop.yml` rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/configuration.adoc:37:* `$XDG_CONFIG_HOME/rubocop/config.yml` (expands to `~/.config/rubocop/config.yml` rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/configuration.adoc:38:if `$XDG_CONFIG_HOME` is not set) rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/configuration.adoc-39- ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_lint.adoc-2886-This cop checks for regexp literals used as `match-current-line`. rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_lint.adoc:2887:If a regexp literal is in condition, the regexp matches `$_` implicitly. rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_lint.adoc-2888- ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_naming.adoc-489-| ForbiddenDelimiters rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_naming.adoc:490:| `(?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))` rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_naming.adoc-491-| Array ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc-3374- rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc:3375:This cop enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`. rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc-3376-`STDOUT/STDERR/STDIN` are constants, and while you can actually ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc-9063- rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc:9064:This cop identifies places where `$stderr.puts` can be replaced by rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc-9065-`warn`. The latter has the advantage of easily being disabled by, rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc:9066:the `-W0` interpreter flag or setting `$VERBOSE` to `nil`. rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/cops_style.adoc-9067- ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/extensions.adoc-18-NOTE: The paths are directly passed to `Kernel.require`. If your rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/extensions.adoc:19:extension file is not in `$LOAD_PATH`, you need to specify the path as rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/extensions.adoc-20-relative path prefixed with `./` explicitly or absolute path. Paths ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/formatters.adoc-5- rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/formatters.adoc:6:Additionally the output can be redirected to a file instead of `$stdout` with the `-o/--out` option. rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/formatters.adoc-7- ############################################## rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/usage/caching.adoc-34-By default, the cache is stored in either rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/usage/caching.adoc:35:`$XDG_CACHE_HOME/$UID/rubocop_cache` if `$XDG_CACHE_HOME` is set or in rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/usage/caching.adoc:36:`$HOME/.cache/rubocop_cache/` if it's not. The configuration parameter rubocop-0.89.1+dfsg/docs/modules/ROOT/pages/usage/caching.adoc-37-`AllCops: CacheRootDirectory` can be used to set the root to a ############################################## rubocop-0.89.1+dfsg/lib/rubocop/cli/environment.rb-4- class CLI rubocop-0.89.1+dfsg/lib/rubocop/cli/environment.rb:5: # Execution environment for a CLI command. rubocop-0.89.1+dfsg/lib/rubocop/cli/environment.rb-6- class Environment ############################################## rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb-15- # their work. Instead, it waits until it's called in a later stage of the rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:16: # execution. The reason it can't be implemented as a normal cop is that rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb-17- # it depends on the results of all other cops to do its work. ############################################## rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/regexp_as_condition.rb-6- # This cop checks for regexp literals used as `match-current-line`. rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/regexp_as_condition.rb:7: # If a regexp literal is in condition, the regexp matches `$_` implicitly. rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/regexp_as_condition.rb-8- # ############################################## rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/regexp_as_condition.rb-22- MSG = 'Do not use regexp literal as a condition.' \ rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/regexp_as_condition.rb:23: ' The regexp literal matches `$_` implicitly.' rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/regexp_as_condition.rb-24- ############################################## rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/useless_assignment.rb-90- rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/useless_assignment.rb:91: " Use `#{assignment.operator.sub(/=$/, '')}` " \ rubocop-0.89.1+dfsg/lib/rubocop/cop/lint/useless_assignment.rb-92- "instead of `#{assignment.operator}`." ############################################## rubocop-0.89.1+dfsg/lib/rubocop/cop/style/global_std_stream.rb-5- module Style rubocop-0.89.1+dfsg/lib/rubocop/cop/style/global_std_stream.rb:6: # This cop enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`. rubocop-0.89.1+dfsg/lib/rubocop/cop/style/global_std_stream.rb-7- # `STDOUT/STDERR/STDIN` are constants, and while you can actually ############################################## rubocop-0.89.1+dfsg/lib/rubocop/cop/style/stderr_puts.rb-5- module Style rubocop-0.89.1+dfsg/lib/rubocop/cop/style/stderr_puts.rb:6: # This cop identifies places where `$stderr.puts` can be replaced by rubocop-0.89.1+dfsg/lib/rubocop/cop/style/stderr_puts.rb-7- # `warn`. The latter has the advantage of easily being disabled by, rubocop-0.89.1+dfsg/lib/rubocop/cop/style/stderr_puts.rb:8: # the `-W0` interpreter flag or setting `$VERBOSE` to `nil`. rubocop-0.89.1+dfsg/lib/rubocop/cop/style/stderr_puts.rb-9- # ############################################## rubocop-0.89.1+dfsg/lib/rubocop/formatter/base_formatter.rb-23- # `Kernel.require`. rubocop-0.89.1+dfsg/lib/rubocop/formatter/base_formatter.rb:24: # If your custom formatter file is not in `$LOAD_PATH`, rubocop-0.89.1+dfsg/lib/rubocop/formatter/base_formatter.rb-25- # you need to specify the path as relative path prefixed with `./` ############################################## rubocop-0.89.1+dfsg/lib/rubocop/formatter/base_formatter.rb-61- # @param output [IO] rubocop-0.89.1+dfsg/lib/rubocop/formatter/base_formatter.rb:62: # `$stdout` or opened file rubocop-0.89.1+dfsg/lib/rubocop/formatter/base_formatter.rb-63- def initialize(output, options = {}) ############################################## rubocop-0.89.1+dfsg/relnotes/v0.28.0.md-23-* [#1459](https://github.com/rubocop-hq/rubocop/issues/1459): Handle parenthesis around the condition in `--auto-correct` for `NegatedWhile`. ([@jonas054][]) rubocop-0.89.1+dfsg/relnotes/v0.28.0.md:24:* [#1465](https://github.com/rubocop-hq/rubocop/issues/1465): Fix autocorrect of code like `#$1` in `PerlBackrefs`. ([@bbatsov][]) rubocop-0.89.1+dfsg/relnotes/v0.28.0.md:25:* Fix autocorrect of code like `#$:` in `SpecialGlobalVars`. ([@bbatsov][]) rubocop-0.89.1+dfsg/relnotes/v0.28.0.md-26-* [#1466](https://github.com/rubocop-hq/rubocop/issues/1466): Allow leading underscore for unused parameters in `SingleLineBlockParams`. ([@jonas054][]) ############################################## rubocop-0.89.1+dfsg/relnotes/v0.35.0.md-44-* `Style/IfUnlessModifier` accepts blocks followed by a chained call. ([@lumeet][]) rubocop-0.89.1+dfsg/relnotes/v0.35.0.md:45:* [#2261](https://github.com/rubocop-hq/rubocop/issues/2261): Make relative `Exclude` paths in `$HOME/.rubocop_todo.yml` be relative to current directory. ([@jonas054][]) rubocop-0.89.1+dfsg/relnotes/v0.35.0.md-46-* [#2286](https://github.com/rubocop-hq/rubocop/issues/2286): Handle auto-correction of empty method when `AllowIfMethodIsEmpty` is `false` in `Style/SingleLineMethods`. ([@jonas054][]) ############################################## rubocop-0.89.1+dfsg/relnotes/v0.39.0.md-19-* [#2967](https://github.com/rubocop-hq/rubocop/pull/2967): Fix auto-correcting of `===`, `<=`, and `>=` in `Style/ConditionalAssignment`. ([@rrosenblum][]) rubocop-0.89.1+dfsg/relnotes/v0.39.0.md:20:* [#2977](https://github.com/rubocop-hq/rubocop/issues/2977): Fix auto-correcting of `"#{$!}"` in `Style/SpecialGlobalVars`. ([@lumeet][]) rubocop-0.89.1+dfsg/relnotes/v0.39.0.md-21-* [#2935](https://github.com/rubocop-hq/rubocop/issues/2935): Make configuration loading work if `SafeYAML.load` is private. ([@jonas054][]) ############################################## rubocop-0.89.1+dfsg/relnotes/v0.66.0.md-32- rubocop-0.89.1+dfsg/relnotes/v0.66.0.md:33:* Add `$stdout`/`$stderr` and `STDOUT`/`STDERR` method calls to `Rails/Output`. ([@elebow][]) rubocop-0.89.1+dfsg/relnotes/v0.66.0.md-34-* [#6688](https://github.com/rubocop-hq/rubocop/pull/6688): Add `iterator?` to deprecated methods and prefer `block_given?` instead. ([@tejasbubane][]) ############################################## rubocop-0.89.1+dfsg/relnotes/v0.66.0.md-39-* [#6675](https://github.com/rubocop-hq/rubocop/issues/6675): Avoid printing deprecation warnings about constants. ([@elmasantos][]) rubocop-0.89.1+dfsg/relnotes/v0.66.0.md:40:* [#6746](https://github.com/rubocop-hq/rubocop/issues/6746): Avoid offense on `$stderr.puts` with no arguments. ([@luciamo][]) rubocop-0.89.1+dfsg/relnotes/v0.66.0.md-41-* Replace md5 with sha1 for FIPS compliance. ([@dirtyharrycallahan][]) ############################################## rubocop-0.89.1+dfsg/relnotes/v0.79.0.md-9-* [#7590](https://github.com/rubocop-hq/rubocop/issues/7590): Fix an error for `Layout/SpaceBeforeBlockBraces` when using with `EnforcedStyle: line_count_based` of `Style/BlockDelimiters` cop. ([@koic][]) rubocop-0.89.1+dfsg/relnotes/v0.79.0.md:10:* [#7569](https://github.com/rubocop-hq/rubocop/issues/7569): Make `Style/YodaCondition` accept `__FILE__ == $0`. ([@koic][]) rubocop-0.89.1+dfsg/relnotes/v0.79.0.md-11-* [#7576](https://github.com/rubocop-hq/rubocop/issues/7576): Fix an error for `Gemspec/OrderedDependencies` when using a local variable in an argument of dependent gem. ([@koic][]) ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/block_alignment_spec.rb-301- end rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/block_alignment_spec.rb:302: ^^^ `end` at 2, 2 is not aligned with `$variable = test do |ala|` at 1, 0. rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/block_alignment_spec.rb-303- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/end_alignment_spec.rb-527- end rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/end_alignment_spec.rb:528: ^^^ `end` at 2, 7 is not aligned with `$var = if` at 1, 0. rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/end_alignment_spec.rb-529- ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/end_alignment_spec.rb-567- end rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/end_alignment_spec.rb:568: ^^^ `end` at 2, 8 is not aligned with `$var << if` at 1, 0. rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/end_alignment_spec.rb-569- ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/rescue_ensure_alignment_spec.rb-487- rescue StandardError => _ rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/rescue_ensure_alignment_spec.rb:488: ^^^^^^ `rescue` at 2, 2 is not aligned with `$global` at 1, 0. rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/rescue_ensure_alignment_spec.rb-489- end ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb-188- SELECT COUNT(widgets.id) FROM widgets rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb:189: WHERE widget_type = $1 rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb-190- SQL ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb-278- SELECT COUNT(widgets.id) FROM widgets rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb:279: WHERE widget_type = $1 rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb-280- SQL ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb-285- SELECT COUNT(widgets.id) FROM widgets rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb:286: WHERE widget_type = $1 rubocop-0.89.1+dfsg/spec/rubocop/cop/layout/space_inside_array_literal_brackets_spec.rb-287- SQL ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/lint/regexp_as_condition_spec.rb-10- if /foo/ rubocop-0.89.1+dfsg/spec/rubocop/cop/lint/regexp_as_condition_spec.rb:11: ^^^^^ Do not use regexp literal as a condition. The regexp literal matches `$_` implicitly. rubocop-0.89.1+dfsg/spec/rubocop/cop/lint/regexp_as_condition_spec.rb-12- end ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb-8- STDOUT.puts('hello') rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb:9: ^^^^^^ Use `$stdout` instead of `STDOUT`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb-10- rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb-11- hash = { out: STDOUT, key: value } rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb:12: ^^^^^^ Use `$stdout` instead of `STDOUT`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb-13- rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb-14- def m(out = STDOUT) rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb:15: ^^^^^^ Use `$stdout` instead of `STDOUT`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/global_std_stream_spec.rb-16- out.puts('hello') ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-9- puts $: rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:10: ^^ Prefer `$LOAD_PATH` over `$:`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-11- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-20- puts $" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:21: ^^ Prefer `$LOADED_FEATURES` over `$"`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-22- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-31- puts $0 rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:32: ^^ Prefer `$PROGRAM_NAME` over `$0`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-33- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-42- puts $$ rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:43: ^^ Prefer `$PROCESS_ID` or `$PID` from the stdlib 'English' module (don't forget to require it) over `$$`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-44- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-53- puts $* rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:54: ^^ Prefer `$ARGV` from the stdlib 'English' module (don't forget to require it) or `ARGV` over `$*`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-55- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-68- $/ rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:69: ^^ Prefer `$INPUT_RECORD_SEPARATOR` or `$RS` from the stdlib 'English' module (don't forget to require it) over `$/`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-70- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-79- "#$:" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:80: ^^ Prefer `$LOAD_PATH` over `$:`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-81- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-90- "#{$!}" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:91: ^^ Prefer `$ERROR_INFO` from the stdlib 'English' module (don't forget to require it) over `$!`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-92- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-101- $0 rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:102: ^^ Prefer `$PROGRAM_NAME` over `$0`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-103- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-115- $!; $ERROR_INFO rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:116: ^^ Prefer `$ERROR_INFO` from the stdlib 'English' module (don't forget to require it) over `$!`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-117- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-131- puts $LOAD_PATH rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:132: ^^^^^^^^^^ Prefer `$:` over `$LOAD_PATH`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-133- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-142- puts $LOADED_FEATURES rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:143: ^^^^^^^^^^^^^^^^ Prefer `$"` over `$LOADED_FEATURES`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-144- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-153- puts $PROGRAM_NAME rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:154: ^^^^^^^^^^^^^ Prefer `$0` over `$PROGRAM_NAME`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-155- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-164- puts $PID rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:165: ^^^^ Prefer `$$` over `$PID`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-166- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-175- puts $PROCESS_ID rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:176: ^^^^^^^^^^^ Prefer `$$` over `$PROCESS_ID`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-177- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-190- $INPUT_RECORD_SEPARATOR rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:191: ^^^^^^^^^^^^^^^^^^^^^^^ Prefer `$/` over `$INPUT_RECORD_SEPARATOR`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-192- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-201- "#{$LOAD_PATH}" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb:202: ^^^^^^^^^^ Prefer `$:` over `$LOAD_PATH`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/special_global_vars_spec.rb-203- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb-7- rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb:8: it "registers an offense when using `$stderr.puts('hello')`" do rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb-9- expect_offense(<<~RUBY) rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb-10- $stderr.puts('hello') rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb:11: ^^^^^^^^^^^^ Use `warn` instead of `$stderr.puts` to allow such output to be disabled. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb-12- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb-18- rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb:19: it 'registers no offense when using `$stderr.puts` with no arguments' do rubocop-0.89.1+dfsg/spec/rubocop/cop/style/stderr_puts_spec.rb-20- expect_no_offenses(<<~RUBY) ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-8- puts "this is a #$test" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:9: ^^^^^ Replace interpolated variable `$test` with expression `#{$test}`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-10- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-19- puts /this is a #$test/ rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:20: ^^^^^ Replace interpolated variable `$test` with expression `#{$test}`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-21- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-29- expect_offense(<<~'RUBY') rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:30: puts `this is a #$test` rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:31: ^^^^^ Replace interpolated variable `$test` with expression `#{$test}`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-32- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-34- expect_correction(<<~'RUBY') rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:35: puts `this is a #{$test}` rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-36- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-41- puts :"this is a #$test" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:42: ^^^^^ Replace interpolated variable `$test` with expression `#{$test}`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-43- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-52- puts "this is a #$1" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:53: ^^ Replace interpolated variable `$1` with expression `#{$1}`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-54- RUBY ############################################## rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-63- puts "this is a #$+" rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb:64: ^^ Replace interpolated variable `$+` with expression `#{$+}`. rubocop-0.89.1+dfsg/spec/rubocop/cop/style/variable_interpolation_spec.rb-65- RUBY