Open
Description
Hello,
I am getting the following error when trying to run the default rake target:
.rubocop_todo.yml: Metrics/LineLength has the wrong namespace - should be Layout
.rubocop_todo.yml: Style/MethodName has the wrong namespace - should be Naming
Error: The `Lint/HandleExceptions` cop has been renamed to `Lint/SuppressedException`.
(obsolete configuration found in .rubocop_todo.yml, please update it)
RuboCop failed!
After renaming Lint/HandleExceptions
to Lint/SuppressedException
as suggested, I now get a lot of lint errors:
.rubocop_todo.yml: Metrics/LineLength has the wrong namespace - should be Layout
.rubocop_todo.yml: Style/MethodName has the wrong namespace - should be Naming
The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file.
Please also note that you can opt-in to new cops by default by adding this to your config:
AllCops:
NewCops: enable
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
Enabled: true
Gemspec/RequireMFA: # new in 1.23
Enabled: true
Layout/LineContinuationLeadingSpace: # new in 1.31
Enabled: true
Layout/LineContinuationSpacing: # new in 1.31
Enabled: true
Layout/LineEndStringConcatenationIndentation: # new in 1.18
Enabled: true
Layout/SpaceBeforeBrackets: # new in 1.7
Enabled: true
Lint/AmbiguousAssignment: # new in 1.7
Enabled: true
Lint/AmbiguousOperatorPrecedence: # new in 1.21
Enabled: true
Lint/AmbiguousRange: # new in 1.19
Enabled: true
Lint/ConstantOverwrittenInRescue: # new in 1.31
Enabled: true
Lint/DeprecatedConstants: # new in 1.8
Enabled: true
Lint/DuplicateBranch: # new in 1.3
Enabled: true
Lint/DuplicateMagicComment: # new in 1.37
Enabled: true
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
Enabled: true
Lint/EmptyBlock: # new in 1.1
Enabled: true
Lint/EmptyClass: # new in 1.3
Enabled: true
Lint/EmptyInPattern: # new in 1.16
Enabled: true
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
Enabled: true
Lint/LambdaWithoutLiteralBlock: # new in 1.8
Enabled: true
Lint/NoReturnInBeginEndBlocks: # new in 1.2
Enabled: true
Lint/NonAtomicFileOperation: # new in 1.31
Enabled: true
Lint/NumberedParameterAssignment: # new in 1.9
Enabled: true
Lint/OrAssignmentToConstant: # new in 1.9
Enabled: true
Lint/RedundantDirGlobSort: # new in 1.8
Enabled: true
Lint/RefinementImportMethods: # new in 1.27
Enabled: true
Lint/RequireRangeParentheses: # new in 1.32
Enabled: true
Lint/RequireRelativeSelfPath: # new in 1.22
Enabled: true
Lint/SymbolConversion: # new in 1.9
Enabled: true
Lint/ToEnumArguments: # new in 1.1
Enabled: true
Lint/TripleQuotes: # new in 1.9
Enabled: true
Lint/UnexpectedBlockArity: # new in 1.5
Enabled: true
Lint/UnmodifiedReduceAccumulator: # new in 1.1
Enabled: true
Lint/UselessRuby2Keywords: # new in 1.23
Enabled: true
Naming/BlockForwarding: # new in 1.24
Enabled: true
Security/CompoundHash: # new in 1.28
Enabled: true
Security/IoMethods: # new in 1.22
Enabled: true
Style/ArgumentsForwarding: # new in 1.1
Enabled: true
Style/CollectionCompact: # new in 1.2
Enabled: true
Style/DocumentDynamicEvalDefinition: # new in 1.1
Enabled: true
Style/EmptyHeredoc: # new in 1.32
Enabled: true
Style/EndlessMethod: # new in 1.8
Enabled: true
Style/EnvHome: # new in 1.29
Enabled: true
Style/FetchEnvVar: # new in 1.28
Enabled: true
Style/FileRead: # new in 1.24
Enabled: true
Style/FileWrite: # new in 1.24
Enabled: true
Style/HashConversion: # new in 1.10
Enabled: true
Style/HashExcept: # new in 1.7
Enabled: true
Style/IfWithBooleanLiteralBranches: # new in 1.9
Enabled: true
Style/InPatternThen: # new in 1.16
Enabled: true
Style/MagicCommentFormat: # new in 1.35
Enabled: true
Style/MapCompactWithConditionalBlock: # new in 1.30
Enabled: true
Style/MapToHash: # new in 1.24
Enabled: true
Style/MultilineInPatternThen: # new in 1.16
Enabled: true
Style/NegatedIfElseCondition: # new in 1.2
Enabled: true
Style/NestedFileDirname: # new in 1.26
Enabled: true
Style/NilLambda: # new in 1.3
Enabled: true
Style/NumberedParameters: # new in 1.22
Enabled: true
Style/NumberedParametersLimit: # new in 1.22
Enabled: true
Style/ObjectThen: # new in 1.28
Enabled: true
Style/OpenStructUse: # new in 1.23
Enabled: true
Style/OperatorMethodCall: # new in 1.37
Enabled: true
Style/QuotedSymbols: # new in 1.16
Enabled: true
Style/RedundantArgument: # new in 1.4
Enabled: true
Style/RedundantEach: # new in 1.38
Enabled: true
Style/RedundantInitialize: # new in 1.27
Enabled: true
Style/RedundantSelfAssignmentBranch: # new in 1.19
Enabled: true
Style/RedundantStringEscape: # new in 1.37
Enabled: true
Style/SelectByRegexp: # new in 1.22
Enabled: true
Style/StringChars: # new in 1.12
Enabled: true
Style/SwapValues: # new in 1.1
Enabled: true
For more information: https://docs.rubocop.org/rubocop/versioning.html
Running RuboCop...
Inspecting 32 files
CCCCCCWCCCCCCCWCCWWCCCCWCCCCCCCC
Offenses:
Gemfile:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
source 'https://rubygems.org'
^
Guardfile:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
# A sample Guardfile
^
Guardfile:5:13: C: [Correctable] Style/PercentLiteralDelimiters: %w-literals should be delimited by [ and ].
directories(%w(lib spec))
^^^^^^^^^^^^
Guardfile:30:11: C: [Correctable] Style/RegexpLiteral: Use %r around regular expression.
watch(/(?:.+\/)?\.rubocop(?:_todo)?\.yml$/) { |m| File.dirname(m[0]) }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Rakefile:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'bundler/gem_tasks'
^
Rakefile:8:14: C: [Correctable] Layout/ExtraSpacing: Unnecessary spacing detected.
default_tasks << RSpec::Core::RakeTask.new(:spec) do |t|
^
Rakefile:8:16: C: [Correctable] Layout/SpaceAroundOperators: Operator << should be surrounded by a single space.
default_tasks << RSpec::Core::RakeTask.new(:spec) do |t|
^^
lib/nenv.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/version'
^
lib/nenv.rb:18:5: C: Style/MissingRespondToMissing: When using method_missing, define respond_to_missing?.
def method_missing(meth, *args) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/nenv/autoenvironment.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/environment'
^
lib/nenv/autoenvironment.rb:4:5: C: Style/MissingRespondToMissing: When using method_missing, define respond_to_missing?.
def method_missing(meth, *args) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/nenv/builder.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/environment'
^
lib/nenv/environment.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/environment/dumper'
^
lib/nenv/environment.rb:10:7: W: Lint/MissingSuper: Call super to initialize state of the parent class.
def initialize(meth) ...
^^^^^^^^^^^^^^^^^^^^
lib/nenv/environment.rb:62:27: C: [Correctable] Style/LambdaCall: Prefer the use of dumper.call(raw_value) over dumper.(raw_value).
ENV[env_name] = dumper.(raw_value)
^^^^^^^^^^^^^^^^^^
lib/nenv/environment.rb:72:11: C: [Correctable] Style/LambdaCall: Prefer the use of loader.call(ENV[env_name]) over loader.(ENV[env_name]).
loader.(ENV[env_name])
^^^^^^^^^^^^^^^^^^^^^^
lib/nenv/environment.rb:77:9: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail(AlreadyExistsError, meth) if klass.method_defined?(meth)
^^^^
lib/nenv/environment/dumper.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
lib/nenv/environment/dumper.rb:7:9: C: [Correctable] Style/RedundantCondition: Use double pipes || instead.
if callback ...
^^^^^^^^^^^
lib/nenv/environment/dumper/default.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
lib/nenv/environment/dumper/default.rb:3:12: C: [Correctable] Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
module Dumper::Default
^^^^^^^^^^^^^^^
lib/nenv/environment/loader.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
lib/nenv/environment/loader.rb:11:11: C: [Correctable] Style/IfInsideElse: Convert if nested inside else to elsif.
if meth.to_s.end_with? '?'
^^
lib/nenv/environment/loader/default.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
lib/nenv/environment/loader/default.rb:3:12: C: [Correctable] Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
module Loader::Default
^^^^^^^^^^^^^^^
lib/nenv/environment/loader/predicate.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
lib/nenv/environment/loader/predicate.rb:3:12: C: [Correctable] Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
module Loader::Predicate
^^^^^^^^^^^^^^^^^
lib/nenv/environment/loader/predicate.rb:9:11: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail ArgumentError, "Can't convert empty string into Bool"
^^^^
lib/nenv/version.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
lib/nenv/version.rb:2:13: C: [Correctable] Style/MutableConstant: Freeze mutable objects assigned to constants.
VERSION = '0.3.0'
^^^^^^^
nenv.gemspec:1:1: C: Gemspec/RequiredRubyVersion: required_ruby_version should be specified.
# coding: utf-8
nenv.gemspec:1:1: C: [Correctable] Style/Encoding: Unnecessary utf-8 encoding comment.
# coding: utf-8
^^^^^^^^^^^^^^^
nenv.gemspec:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
# coding: utf-8
^
nenv.gemspec:2:1: C: [Correctable] Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
lib = File.expand_path('../lib', __FILE__)
^
nenv.gemspec:2:12: C: [Correctable] Style/ExpandPathArguments: Use expand_path('lib', __dir__) instead of expand_path('../lib', __FILE__).
lib = File.expand_path('../lib', __FILE__)
^^^^^^^^^^^
nenv.gemspec:17:5: C: [Correctable] Style/RegexpLiteral: Use %r around regular expression.
/^(?:\.rspec|\.rubocop.*\.yml|\.travis\.yml|Rakefile|Guardfile|Gemfile|spec\/.*)$/.match(f)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
nenv.gemspec:20:40: C: [Correctable] Style/RegexpLiteral: Use %r around regular expression.
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
^^^^^^^^
nenv.gemspec:26:3: C: [Correctable] Gemspec/OrderedDependencies: Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency rake should appear before rspec.
spec.add_development_dependency 'rake', '~> 10.0'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/builder_spec.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/builder'
^
spec/lib/nenv/builder_spec.rb:10:7: W: Lint/ConstantDefinitionInBlock: Do not define constants this way within a block.
FooEnv = Nenv::Builder.build do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/builder_spec.rb:19:11: W: Lint/ConstantDefinitionInBlock: Do not define constants this way within a block.
FooEnv = Nenv::Builder.build do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/dumper_spec.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'yaml'
^
spec/lib/nenv/environment/dumper_spec.rb:6:13: C: [Correctable] Style/LambdaCall: Prefer the use of described_class.setup.call(value) over described_class.setup.(value).
subject { described_class.setup.(value) }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/dumper_spec.rb:8:11: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
context "with \"abc\"" do
^^^^^^^^^^^^^^
spec/lib/nenv/environment/dumper_spec.rb:25:7: C: [Correctable] Style/LambdaCall: Prefer the use of described_class.setup { |data| YAML.dump(data) }.call(value) over described_class.setup { |data| YAML.dump(data) }.(value).
described_class.setup { |data| YAML.dump(data) }.(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'yaml'
^
spec/lib/nenv/environment/loader_spec.rb:4:1: C: Metrics/BlockLength: Block has too many lines. [46/25]
RSpec.describe Nenv::Environment::Loader do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:5:3: C: Metrics/BlockLength: Block has too many lines. [35/25]
context 'with no block' do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:6:15: C: [Correctable] Style/LambdaCall: Prefer the use of described_class.setup(meth).call(value) over described_class.setup(meth).(value).
subject { described_class.setup(meth).(value) }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:11:15: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
context "with \"abc\"" do
^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:20:7: C: [Correctable] Style/PercentLiteralDelimiters: %w-literals should be delimited by [ and ].
%w(1 true y yes TRUE YES foobar).each do |data|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:27:7: C: [Correctable] Style/PercentLiteralDelimiters: %w-literals should be delimited by [ and ].
%w(0 false n no FALSE NO).each do |data|
^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:52:7: C: [Correctable] Style/LambdaCall: Prefer the use of described_class.setup(:foo) { |data| YAML.load(data) }.call(value) over described_class.setup(:foo) { |data| YAML.load(data) }.(value).
described_class.setup(:foo) { |data| YAML.load(data) }.(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment/loader_spec.rb:52:49: C: [Correctable] Security/YAMLLoad: Prefer using YAML.safe_load over YAML.load.
described_class.setup(:foo) { |data| YAML.load(data) }.(value)
^^^^
spec/lib/nenv/environment_spec.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'yaml'
^
spec/lib/nenv/environment_spec.rb:5:1: C: Metrics/BlockLength: Block has too many lines. [127/25]
RSpec.describe Nenv::Environment do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment_spec.rb:6:3: W: Lint/ConstantDefinitionInBlock: Do not define constants this way within a block.
class MockEnv < Hash # a hash is close enough ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment_spec.rb:6:24: C: [Correctable] Style/CommentedKeyword: Do not place comments on the same line as the class keyword.
class MockEnv < Hash # a hash is close enough
^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment_spec.rb:7:13: C: Naming/MethodParameterName: Method parameter must be at least 3 characters long.
def []=(k, v)
^
spec/lib/nenv/environment_spec.rb:7:16: C: Naming/MethodParameterName: Method parameter must be at least 3 characters long.
def []=(k, v)
^
spec/lib/nenv/environment_spec.rb:8:7: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail TypeError, "no implicit conversion of #{k.class} into String" unless k.respond_to? :to_str
^^^^
spec/lib/nenv/environment_spec.rb:9:7: C: [Correctable] Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
fail TypeError, "no implicit conversion of #{v.class} into String" unless v.respond_to? :to_str
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment_spec.rb:9:7: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail TypeError, "no implicit conversion of #{v.class} into String" unless v.respond_to? :to_str
^^^^
spec/lib/nenv/environment_spec.rb:17:3: C: Metrics/BlockLength: Block has too many lines. [98/25]
shared_examples 'accessor methods' do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment_spec.rb:18:5: C: Metrics/BlockLength: Block has too many lines. [28/25]
describe 'predicate method' do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment_spec.rb:54:5: C: Metrics/BlockLength: Block has too many lines. [32/25]
describe 'reader method' do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv/environment_spec.rb:86:63: C: [Correctable] Security/YAMLLoad: Prefer using YAML.safe_load over YAML.load.
before { instance.create_method(:foo) { |data| YAML.load(data) } }
^^^^
spec/lib/nenv/environment_spec.rb:96:5: C: Metrics/BlockLength: Block has too many lines. [32/25]
describe 'writer method' do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv_spec.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv'
^
spec/lib/nenv_spec.rb:3:1: C: Metrics/BlockLength: Block has too many lines. [68/25]
RSpec.describe Nenv do ...
^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv_spec.rb:22:19: C: [Correctable] Style/SymbolProc: Pass &:browser as an argument to Nenv instead of a block.
Nenv('git') do |git| ...
^^^^^^^^
spec/lib/nenv_spec.rb:37:3: C: Metrics/BlockLength: Block has too many lines. [27/25]
describe 'Nenv module' do ...
^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/nenv_spec.rb:78:7: W: Lint/ConstantDefinitionInBlock: Do not define constants this way within a block.
FooEnv = Nenv::Builder.build do ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/spec_helper.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
spec/spec_helper.rb:2:1: C: [Correctable] Layout/LeadingEmptyLines: Unnecessary blank line at the beginning of the source.
RSpec.configure do |config|
^^^^^
spec/spec_helper.rb:2:1: C: Metrics/BlockLength: Block has too many lines. [30/25]
RSpec.configure do |config| ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/spec_helper.rb:28:7: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail "stub me: ENV[#{key.inspect}]"
^^^^
spec/spec_helper.rb:32:7: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail "stub me: ENV[#{key.inspect}] = #{value.inspect}"
^^^^
spec/spec_helper.rb:42:5: C: [Correctable] Style/RedundantBegin: Redundant begin block detected.
begin
^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/version'
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv.rb:18:5: C: Style/MissingRespondToMissing: When using method_missing, define respond_to_missing?.
def method_missing(meth, *args) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/autoenvironment.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/environment'
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/autoenvironment.rb:4:5: C: Style/MissingRespondToMissing: When using method_missing, define respond_to_missing?.
def method_missing(meth, *args) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/builder.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/environment'
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require 'nenv/environment/dumper'
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment.rb:10:7: W: Lint/MissingSuper: Call super to initialize state of the parent class.
def initialize(meth) ...
^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment.rb:62:27: C: [Correctable] Style/LambdaCall: Prefer the use of dumper.call(raw_value) over dumper.(raw_value).
ENV[env_name] = dumper.(raw_value)
^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment.rb:72:11: C: [Correctable] Style/LambdaCall: Prefer the use of loader.call(ENV[env_name]) over loader.(ENV[env_name]).
loader.(ENV[env_name])
^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment.rb:77:9: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail(AlreadyExistsError, meth) if klass.method_defined?(meth)
^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/dumper.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/dumper.rb:7:9: C: [Correctable] Style/RedundantCondition: Use double pipes || instead.
if callback ...
^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/dumper/default.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/dumper/default.rb:3:12: C: [Correctable] Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
module Dumper::Default
^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/loader.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/loader.rb:11:11: C: [Correctable] Style/IfInsideElse: Convert if nested inside else to elsif.
if meth.to_s.end_with? '?'
^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/loader/default.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/loader/default.rb:3:12: C: [Correctable] Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
module Loader::Default
^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/loader/predicate.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/loader/predicate.rb:3:12: C: [Correctable] Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
module Loader::Predicate
^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/environment/loader/predicate.rb:9:11: C: [Correctable] Style/SignalException: Always use raise to signal exceptions.
fail ArgumentError, "Can't convert empty string into Bool"
^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/version.rb:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
module Nenv
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/lib/nenv/version.rb:2:13: C: [Correctable] Style/MutableConstant: Freeze mutable objects assigned to constants.
VERSION = '0.3.0'
^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:1:1: C: Gemspec/RequiredRubyVersion: required_ruby_version should be specified.
# coding: utf-8
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:1:1: C: [Correctable] Style/Encoding: Unnecessary utf-8 encoding comment.
# coding: utf-8
^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
# coding: utf-8
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:2:1: C: [Correctable] Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
lib = File.expand_path('../lib', __FILE__)
^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:2:12: C: [Correctable] Style/ExpandPathArguments: Use expand_path('lib', __dir__) instead of expand_path('../lib', __FILE__).
lib = File.expand_path('../lib', __FILE__)
^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:17:5: C: [Correctable] Style/RegexpLiteral: Use %r around regular expression.
/^(?:\.rspec|\.rubocop.*\.yml|\.travis\.yml|Rakefile|Guardfile|Gemfile|spec\/.*)$/.match(f)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:20:40: C: [Correctable] Style/RegexpLiteral: Use %r around regular expression.
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/gems/nenv-0.3.0/nenv.gemspec:26:3: C: [Correctable] Gemspec/OrderedDependencies: Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency rake should appear before rspec.
spec.add_development_dependency 'rake', '~> 10.0'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:1:1: C: Gemspec/RequiredRubyVersion: required_ruby_version should be specified.
# -*- encoding: utf-8 -*-
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:1:1: C: [Correctable] Style/Encoding: Unnecessary utf-8 encoding comment.
# -*- encoding: utf-8 -*-
^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:1:1: C: [Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
# -*- encoding: utf-8 -*-
^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:2:1: C: [Correctable] Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.
# stub: nenv 0.3.0 ruby lib
^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:5:12: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.name = "nenv".freeze
^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:6:15: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.version = "0.3.0"
^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:8:54: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:9:22: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.require_paths = ["lib".freeze]
^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:10:16: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.authors = ["Cezary Baginski".freeze]
^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:11:12: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.date = "2023-02-03"
^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:12:19: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.description = "Using ENV is like using raw SQL statements in your code. We all know how that ends...".freeze
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:13:14: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
No such file or directory @ rb_sysopen - /build/ruby-nenv/src/nenv/Gemfile.lock
/usr/lib/ruby/3.0.0/bundler.rb:520:in `initialize'
/usr/lib/ruby/3.0.0/bundler.rb:520:in `open'
/usr/lib/ruby/3.0.0/bundler.rb:520:in `block in read_file'
/usr/lib/ruby/3.0.0/bundler/shared_helpers.rb:103:in `filesystem_access'
/usr/lib/ruby/3.0.0/bundler.rb:519:in `read_file'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/lockfile.rb:34:in `parser'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/lockfile.rb:10:in `dependencies'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli/command/suggest_extensions.rb:74:in `all_extensions'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli/command/suggest_extensions.rb:96:in `not_installed_extensions'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli/command/suggest_extensions.rb:88:in `extensions'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli/command/suggest_extensions.rb:18:in `run'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli/command.rb:11:in `run'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli/environment.rb:18:in `run'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli.rb:72:in `run_command'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli.rb:84:in `suggest_extensions'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli.rb:79:in `block in execute_runners'
<internal:kernel>:90:in `tap'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli.rb:79:in `execute_runners'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/cli.rb:48:in `run'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/rake_task.rb:51:in `run_cli'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/rake_task.rb:26:in `block (2 levels) in initialize'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/file_utils_ext.rb:58:in `verbose'
/usr/lib/ruby/gems/3.0.0/gems/rubocop-1.39.0/lib/rubocop/rake_task.rb:24:in `block in initialize'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
/usr/lib/ruby/gems/3.0.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/bin/rake:23:in `load'
/usr/bin/rake:23:in `<main>'
RuboCop failed!
s.email = ["[email protected]".freeze]
^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:14:16: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.homepage = "https://github.com/e2/nenv".freeze
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:15:17: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.licenses = ["MIT".freeze]
^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:16:24: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.rubygems_version = "3.3.25".freeze
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:19:28: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.installed_by_version = "3.3.25" if s.respond_to? :installed_by_version
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:21:3: C: [Correctable] Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
if s.respond_to? :specification_version then
^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:21:43: C: [Correctable] Style/MultilineIfThen: Do not use then for multi-line if.
if s.respond_to? :specification_version then
^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:25:44: C: [Correctable] Style/MultilineIfThen: Do not use then for multi-line if.
if s.respond_to? :add_runtime_dependency then
^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:26:34: C: [Correctable] Style/PercentLiteralDelimiters: %q-literals should be delimited by ( and ).
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.7"])
^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:26:34: C: [Correctable] Style/RedundantPercentQ: Use %q only for strings that contain both single quotes and double quotes.
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.7"])
^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:26:55: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.7"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:27:34: C: [Correctable] Style/PercentLiteralDelimiters: %q-literals should be delimited by ( and ).
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:27:34: C: [Correctable] Style/RedundantPercentQ: Use %q only for strings that contain both single quotes and double quotes.
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:27:53: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:28:34: C: [Correctable] Style/PercentLiteralDelimiters: %q-literals should be delimited by ( and ).
s.add_development_dependency(%q<rake>.freeze, ["~> 10.0"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:28:34: C: [Correctable] Style/RedundantPercentQ: Use %q only for strings that contain both single quotes and double quotes.
s.add_development_dependency(%q<rake>.freeze, ["~> 10.0"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:28:52: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.add_development_dependency(%q<rake>.freeze, ["~> 10.0"])
^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:30:22: C: [Correctable] Style/PercentLiteralDelimiters: %q-literals should be delimited by ( and ).
s.add_dependency(%q<bundler>.freeze, ["~> 1.7"])
^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:30:22: C: [Correctable] Style/RedundantPercentQ: Use %q only for strings that contain both single quotes and double quotes.
s.add_dependency(%q<bundler>.freeze, ["~> 1.7"])
^^^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:30:43: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.add_dependency(%q<bundler>.freeze, ["~> 1.7"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:31:22: C: [Correctable] Style/PercentLiteralDelimiters: %q-literals should be delimited by ( and ).
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:31:22: C: [Correctable] Style/RedundantPercentQ: Use %q only for strings that contain both single quotes and double quotes.
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
^^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:31:41: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:32:22: C: [Correctable] Style/PercentLiteralDelimiters: %q-literals should be delimited by ( and ).
s.add_dependency(%q<rake>.freeze, ["~> 10.0"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:32:22: C: [Correctable] Style/RedundantPercentQ: Use %q only for strings that contain both single quotes and double quotes.
s.add_dependency(%q<rake>.freeze, ["~> 10.0"])
^^^^^^^^
tmp_install/usr/lib/ruby/gems/3.0.0/specifications/nenv-0.3.0.gemspec:32:40: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
s.add_dependency(%q<rake>.freeze, ["~> 10.0"])
^^^^^^^^^
32 files inspected, 147 offenses detected, 122 offenses autocorrectable
Metadata
Metadata
Assignees
Labels
No labels