ruby-llvm/ruby-llvm

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-01-30 05:51:03 UTC using RuboCop version 1.39.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
  Exclude:
    - 'lib/llvm/support.rb'
    - 'lib/llvm/target.rb'
    - 'test/module_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: leading, trailing
Layout/DotPosition:
  Exclude:
    - 'test/test_helper.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLines:
  Exclude:
    - 'lib/llvm/core/value.rb'
    - 'test/function_test.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'
    - 'test/basic_block_test.rb'

# Offense count: 42
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
Layout/EmptyLinesAroundClassBody:
  Enabled: false

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Layout/EmptyLinesAroundModuleBody:
  Exclude:
    - 'lib/llvm/core/type.rb'
    - 'lib/llvm/support.rb'
    - 'lib/llvm/target_ffi.rb'
    - 'lib/llvm/transforms/scalar_ffi.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
Layout/LeadingCommentSpace:
  Exclude:
    - 'lib/llvm/execution_engine.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
  Exclude:
    - 'lib/llvm/core/builder.rb'
    - 'lib/llvm/core/value.rb'
    - 'lib/llvm/execution_engine.rb'
    - 'test/instruction_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
  Exclude:
    - 'lib/llvm.rb'

# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideArrayLiteralBrackets:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'
    - 'test/basic_block_test.rb'
    - 'test/struct_test.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideBlockBraces:
  Exclude:
    - 'lib/llvm/execution_engine.rb'
    - 'test/equality_test.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Lint/AmbiguousOperatorPrecedence:
  Exclude:
    - 'test/conversions_test.rb'

# Offense count: 1
# Configuration parameters: DebuggerReceivers, DebuggerMethods.
Lint/Debugger:
  Exclude:
    - 'lib/llvm/core/builder.rb'

# Offense count: 1
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
  Exclude:
    - 'test/array_test.rb'

# Offense count: 1
Lint/MissingSuper:
  Exclude:
    - 'lib/llvm/core/pass_manager.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Lint/ParenthesesAsGroupedExpression:
  Exclude:
    - 'test/module_test.rb'

# Offense count: 1
# Configuration parameters: IgnoreImplicitReferences.
Lint/ShadowedArgument:
  Exclude:
    - 'lib/llvm/core/builder.rb'

# Offense count: 8
Lint/ShadowingOuterLocalVariable:
  Exclude:
    - 'test/instruction_test.rb'
    - 'test/mcjit_test.rb'
    - 'test/target_test.rb'
    - 'test/test_helper.rb'

# Offense count: 3
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
  Exclude:
    - 'lib/llvm/core/builder.rb'

# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
  Exclude:
    - 'lib/llvm/core/value.rb'
    - 'lib/llvm/linker.rb'
    - 'test/binary_operations_test.rb'
    - 'test/bitcode_test.rb'
    - 'test/branch_test.rb'
    - 'test/call_test.rb'
    - 'test/comparisons_test.rb'
    - 'test/conversions_test.rb'
    - 'test/module_test.rb'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
  Exclude:
    - 'lib/llvm/core/value.rb'
    - 'lib/llvm/core_ffi.rb'

# Offense count: 6
Lint/UselessAssignment:
  Exclude:
    - 'test/branch_test.rb'
    - 'test/call_test.rb'
    - 'test/instruction_test.rb'
    - 'test/mcjit_test.rb'

# Offense count: 4
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:
  Exclude:
    - 'lib/llvm/core/pass_manager.rb'
    - 'lib/llvm/core/value.rb'

# Offense count: 48
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 53

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
# AllowedMethods: refine
Metrics/BlockLength:
  Max: 27

# Offense count: 59
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
Metrics/MethodLength:
  Max: 31

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
  Max: 747

# Offense count: 3
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
  Max: 6
  MaxOptionalParameters: 5

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertEmptyLiteral:
  Exclude:
    - 'test/function_test.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertEqual:
  Exclude:
    - 'test/module_test.rb'

# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertIncludes:
  Exclude:
    - 'test/ipo_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertKindOf:
  Exclude:
    - 'test/module_test.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertTruthy:
  Exclude:
    - 'test/target_test.rb'

# Offense count: 4
Minitest/AssertWithExpectedArgument:
  Exclude:
    - 'test/equality_test.rb'

# Offense count: 81
# This cop supports safe autocorrection (--autocorrect).
Minitest/EmptyLineBeforeAssertionMethods:
  Enabled: false

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Minitest/LiteralAsActualArgument:
  Exclude:
    - 'test/module_test.rb'

# Offense count: 5
Minitest/MultipleAssertions:
  Max: 6

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Minitest/RefuteEqual:
  Exclude:
    - 'test/equality_test.rb'

# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
Minitest/RefuteFalse:
  Exclude:
    - 'test/equality_test.rb'
    - 'test/function_test.rb'
    - 'test/ipo_test.rb'
    - 'test/module_test.rb'
    - 'test/pass_manager_builder_test.rb'

# Offense count: 2
Minitest/SkipWithoutReason:
  Exclude:
    - 'test/mcjit_test.rb'

# Offense count: 4
Minitest/UnspecifiedException:
  Exclude:
    - 'test/pass_manager_builder_test.rb'
    - 'test/type_test.rb'

# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
Naming/BinaryOperatorParameterName:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 3
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 47
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
  Exclude:
    - 'lib/llvm/core/builder.rb'
    - 'lib/llvm/core/module.rb'
    - 'lib/llvm/core/pass_manager.rb'
    - 'lib/llvm/core/type.rb'
    - 'lib/llvm/core/value.rb'
    - 'lib/llvm/execution_engine.rb'

# Offense count: 5
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
  Exclude:
    - 'spec/**/*'
    - 'lib/llvm/core/builder.rb'
    - 'lib/llvm/target_ffi.rb'

# Offense count: 8
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
Naming/VariableNumber:
  Exclude:
    - 'test/branch_test.rb'
    - 'test/call_test.rb'

# Offense count: 1
Security/Eval:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 1
Security/Open:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
  Exclude:
    - 'lib/llvm/core/value.rb'
    - 'lib/llvm/execution_engine.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
  Exclude:
    - 'lib/llvm/execution_engine.rb'

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
Style/CaseEquality:
  Exclude:
    - 'lib/llvm/core/builder.rb'

# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: is_a?, kind_of?
Style/ClassCheck:
  Exclude:
    - 'lib/llvm/core/bitcode.rb'
    - 'lib/llvm/core/builder.rb'
    - 'lib/llvm/core/module.rb'
    - 'lib/llvm/core/value.rb'
    - 'lib/llvm/execution_engine.rb'
    - 'test/module_test.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
  Exclude:
    - 'lib/llvm/core/builder.rb'
    - 'lib/llvm/core/module.rb'

# Offense count: 1
Style/DocumentDynamicEvalDefinition:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 63
# Configuration parameters: AllowedConstants.
Style/Documentation:
  Enabled: false

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowComments.
# SupportedStyles: empty, nil, both
Style/EmptyElse:
  Exclude:
    - 'lib/llvm/core/type.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
  Exclude:
    - 'lib/llvm/core/pass_manager.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/EvalWithLocation:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ExplicitBlockArgument:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
  Exclude:
    - 'lib/llvm/core/opaque_pointer_builder.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'

# Offense count: 42
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent
Style/HashSyntax:
  Exclude:
    - 'Rakefile'
    - 'ext/ruby-llvm-support/Rakefile'
    - 'lib/llvm/execution_engine.rb'
    - 'test/equality_test.rb'
    - 'test/mcjit_test.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda:
  Exclude:
    - 'test/equality_test.rb'

# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
Style/MethodCallWithoutArgsParentheses:
  Exclude:
    - 'lib/llvm/core/builder.rb'
    - 'lib/llvm/core/context.rb'
    - 'lib/llvm/core/pass_manager.rb'
    - 'test/branch_test.rb'
    - 'test/module_test.rb'

# Offense count: 1
Style/MixinUsage:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/MultilineWhenThen:
  Exclude:
    - 'lib/llvm/core/module.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
Style/NumericLiterals:
  MinDigits: 6

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Exclude:
    - 'spec/**/*'
    - 'lib/llvm/core/bitcode.rb'
    - 'lib/llvm/core/value.rb'
    - 'test/target_test.rb'

# Offense count: 10
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'lib/llvm/core/value.rb'
    - 'lib/llvm/execution_engine.rb'
    - 'lib/llvm/target.rb'
    - 'lib/llvm/transforms/ipo.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ParallelAssignment:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
  Exclude:
    - 'Rakefile'
    - 'ext/ruby-llvm-support/Rakefile'
    - 'lib/llvm/target.rb'
    - 'ruby-llvm.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantAssignment:
  Exclude:
    - 'lib/llvm/execution_engine.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantCondition:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireEnglish, EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
Style/SpecialGlobalVars:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'

# Offense count: 266
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
  Enabled: false

# Offense count: 16
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
  EnforcedStyle: brackets

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
# AllowedMethods: respond_to, define_method
Style/SymbolProc:
  Exclude:
    - 'test/basic_block_test.rb'
    - 'test/ipo_test.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowNamedUnderscoreVariables.
Style/TrailingUnderscoreVariable:
  Exclude:
    - 'ext/ruby-llvm-support/Rakefile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
# AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
Style/TrivialAccessors:
  Exclude:
    - 'lib/llvm/core/type.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
Style/YodaCondition:
  Exclude:
    - 'lib/llvm/core/value.rb'

# Offense count: 85
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
  Max: 1454