1379 lines
39 KiB
YAML
1379 lines
39 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2020-06-29 21:25:25 -0300 using RuboCop version 0.78.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: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
|
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
Bundler/OrderedGems:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: outdent, indent
|
|
Layout/AccessModifierIndentation:
|
|
Exclude:
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
Layout/ArgumentAlignment:
|
|
Exclude:
|
|
- 'lib/ruby/ruby_compiler.rb'
|
|
- 'lib/sol/return_statement.rb'
|
|
|
|
# Offense count: 194
|
|
# Cop supports --auto-correct.
|
|
Layout/ArrayAlignment:
|
|
Enabled: false
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
Layout/BlockEndNewline:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'test/rubyx/test_compile.rb'
|
|
- 'test/rubyx/test_execute.rb'
|
|
- 'test/rubyx/test_interpret.rb'
|
|
- 'test/rubyx/test_stats.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
|
# SupportedStyles: case, end
|
|
Layout/CaseIndentation:
|
|
Exclude:
|
|
- 'lib/util/logging.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Layout/ClosingHeredocIndentation:
|
|
Exclude:
|
|
- 'lib/rubyx/compile.rb'
|
|
- 'lib/rubyx/stats.rb'
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
Layout/CommentIndentation:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'bin/collector.rb'
|
|
- 'lib/elf/stream_writer.rb'
|
|
- 'lib/parfait/integer.rb'
|
|
- 'lib/parfait/type.rb'
|
|
- 'lib/parfait/word.rb'
|
|
- 'test/parfait/test_list.rb'
|
|
- 'test/risc/position/test_position3.rb'
|
|
- 'test/risc/test_interpreter.rb'
|
|
- 'test/rubyx/rt_parfait/test_object.rb'
|
|
|
|
# Offense count: 1
|
|
Layout/ConditionPosition:
|
|
Exclude:
|
|
- 'lib/slot_machine/block_compiler.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
|
# SupportedStylesAlignWith: start_of_line, def
|
|
Layout/DefEndAlignment:
|
|
Exclude:
|
|
- 'lib/parfait/word.rb'
|
|
- 'test/mains/test_int_cmp.rb'
|
|
|
|
# Offense count: 298
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLineAfterGuardClause:
|
|
Enabled: false
|
|
|
|
# Offense count: 1847
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
Layout/EmptyLineBetweenDefs:
|
|
Enabled: false
|
|
|
|
# Offense count: 21
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLines:
|
|
Enabled: false
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: around, only_before
|
|
Layout/EmptyLinesAroundAccessModifier:
|
|
Exclude:
|
|
- 'lib/parfait/list.rb'
|
|
- 'lib/parfait/word.rb'
|
|
- 'lib/risc/instructions/load_constant.rb'
|
|
- 'lib/risc/linker.rb'
|
|
- 'lib/ruby/ruby_compiler.rb'
|
|
- 'lib/rubyx/compile.rb'
|
|
- 'lib/rubyx/rubyxc.rb'
|
|
- 'lib/slot_machine/instructions/message_setup.rb'
|
|
- 'lib/sol/lambda_expression.rb'
|
|
- 'lib/sol/send_statement.rb'
|
|
- 'lib/util/logging.rb'
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
Layout/EmptyLinesAroundBlockBody:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/slot_machine/macro/div10.rb'
|
|
|
|
# Offense count: 244
|
|
# Cop supports --auto-correct.
|
|
# 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: 3
|
|
# Cop supports --auto-correct.
|
|
Layout/EmptyLinesAroundMethodBody:
|
|
Exclude:
|
|
- 'lib/elf/object_writer.rb'
|
|
- 'lib/rubyx/interpret.rb'
|
|
- 'test/parfait/test_interpreted.rb'
|
|
|
|
# Offense count: 136
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
Layout/EmptyLinesAroundModuleBody:
|
|
Enabled: false
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
|
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
Layout/EndAlignment:
|
|
Exclude:
|
|
- 'lib/util/logging.rb'
|
|
- 'test/mains/test_int_cmp.rb'
|
|
- 'test/mains/test_int_math.rb'
|
|
|
|
# Offense count: 387
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
Layout/ExtraSpacing:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
# SupportedHashRocketStyles: key, separator, table
|
|
# SupportedColonStyles: key, separator, table
|
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
Layout/HashAlignment:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/risc/parfait_boot.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: squiggly, active_support, powerpack, unindent
|
|
Layout/HeredocIndentation:
|
|
Exclude:
|
|
- 'test/bench/vm/helper.rb'
|
|
|
|
# Offense count: 62
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: normal, indented_internal_methods
|
|
Layout/IndentationConsistency:
|
|
Enabled: false
|
|
|
|
# Offense count: 73
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Width, IgnoredPatterns.
|
|
Layout/IndentationWidth:
|
|
Enabled: false
|
|
|
|
# Offense count: 417
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowDoxygenCommentStyle.
|
|
Layout/LeadingCommentSpace:
|
|
Enabled: false
|
|
|
|
# Offense count: 22
|
|
# Cop supports --auto-correct.
|
|
Layout/LeadingEmptyLines:
|
|
Enabled: false
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Layout/MultilineBlockLayout:
|
|
Exclude:
|
|
- 'test/rubyx/test_compile.rb'
|
|
- 'test/rubyx/test_execute.rb'
|
|
- 'test/rubyx/test_interpret.rb'
|
|
- 'test/rubyx/test_stats.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineHashBraceLayout:
|
|
Exclude:
|
|
- 'lib/risc/parfait_boot.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
Layout/MultilineMethodCallBraceLayout:
|
|
Exclude:
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: aligned, indented
|
|
Layout/MultilineOperationIndentation:
|
|
Exclude:
|
|
- 'lib/risc/instructions/instruction.rb'
|
|
- 'lib/risc/interpreter.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Layout/RescueEnsureAlignment:
|
|
Exclude:
|
|
- 'test/sol/lambdas/test_class_blocks.rb'
|
|
|
|
# Offense count: 594
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAfterComma:
|
|
Enabled: false
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAfterNot:
|
|
Exclude:
|
|
- 'lib/parfait/object.rb'
|
|
- 'test/risc/instructions/test_instructions.rb'
|
|
- 'test/risc/test_callable_compiler1.rb'
|
|
- 'test/ruby/test_send_statement2.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAfterSemicolon:
|
|
Exclude:
|
|
- 'lib/util/dev_null.rb'
|
|
- 'test/mains/test_interpreted.rb'
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleInsidePipes.
|
|
# SupportedStylesInsidePipes: space, no_space
|
|
Layout/SpaceAroundBlockParameters:
|
|
Exclude:
|
|
- 'lib/parfait/space.rb'
|
|
- 'lib/parfait/type.rb'
|
|
- 'lib/risc/parfait_adapter.rb'
|
|
- 'lib/risc/parfait_boot.rb'
|
|
- 'lib/risc/standard_allocator.rb'
|
|
- 'lib/ruby/call_statement.rb'
|
|
- 'lib/rubyx/stats.rb'
|
|
- 'lib/slot_machine/slot_collection.rb'
|
|
- 'test/arm/helper.rb'
|
|
- 'test/parfait/test_space2.rb'
|
|
- 'test/slot_machine/instructions/helper.rb'
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceAroundEqualsInParameterDefault:
|
|
Exclude:
|
|
- 'lib/elf/stream_reader.rb'
|
|
- 'lib/ruby/variables.rb'
|
|
- 'lib/sol/lambda_expression.rb'
|
|
|
|
# Offense count: 170
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceAroundKeyword:
|
|
Enabled: false
|
|
|
|
# Offense count: 129
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
|
# SupportedStylesForExponentOperator: space, no_space
|
|
Layout/SpaceAroundOperators:
|
|
Enabled: false
|
|
|
|
# Offense count: 62
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
# SupportedStyles: space, no_space
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceBeforeBlockBraces:
|
|
Enabled: false
|
|
|
|
# Offense count: 4272
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeComma:
|
|
Enabled: false
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeComment:
|
|
Exclude:
|
|
- 'lib/arm/instructions/compare_instruction.rb'
|
|
- 'lib/arm/instructions/logic_instruction.rb'
|
|
- 'lib/arm/instructions/move_instruction.rb'
|
|
- 'lib/arm/instructions/stack_instruction.rb'
|
|
- 'test/arm/test_call.rb'
|
|
- 'test/arm/test_logic.rb'
|
|
- 'test/parfait/type/test_message.rb'
|
|
- 'test/risc/position/test_position1.rb'
|
|
|
|
# Offense count: 84
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowForAlignment.
|
|
Layout/SpaceBeforeFirstArg:
|
|
Enabled: false
|
|
|
|
# Offense count: 32
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceBeforeSemicolon:
|
|
Exclude:
|
|
- 'test/risc/interpreter/blocks/test_assign_outer.rb'
|
|
- 'test/rubyx/macro/test_integer_comparison.rb'
|
|
- 'test/rubyx/macro/test_integer_operator.rb'
|
|
|
|
# Offense count: 25
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
# SupportedStyles: space, no_space, compact
|
|
# SupportedStylesForEmptyBrackets: space, no_space
|
|
Layout/SpaceInsideArrayLiteralBrackets:
|
|
Enabled: false
|
|
|
|
# Offense count: 186
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
# SupportedStyles: space, no_space
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideBlockBraces:
|
|
Enabled: false
|
|
|
|
# Offense count: 51
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
# SupportedStyles: space, no_space, compact
|
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
Layout/SpaceInsideHashLiteralBraces:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/elf/object_file.rb'
|
|
- 'lib/elf/string_table_section.rb'
|
|
- 'lib/parfait/type.rb'
|
|
- 'lib/risc/block_compiler.rb'
|
|
- 'lib/risc/parfait_boot.rb'
|
|
- 'lib/rubyx/rubyxc.rb'
|
|
- 'test/parfait/test_dictionary.rb'
|
|
- 'test/parfait/test_list1.rb'
|
|
- 'test/parfait/test_word2.rb'
|
|
- 'test/parfait/type/test_hash.rb'
|
|
- 'test/parfait/type/test_method_api.rb'
|
|
- 'test/risc/test_collector.rb'
|
|
- 'test/support/parfait_test.rb'
|
|
|
|
# Offense count: 1887
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceInsideParens:
|
|
Enabled: false
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
Layout/SpaceInsideRangeLiteral:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/parfait/binary_code.rb'
|
|
- 'lib/risc/parfait_adapter.rb'
|
|
- 'lib/risc/platform.rb'
|
|
- 'lib/risc/register_value.rb'
|
|
- 'lib/ruby/ruby_compiler.rb'
|
|
- 'lib/slot_machine/slot_compiler.rb'
|
|
|
|
# Offense count: 13
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
# SupportedStyles: space, no_space
|
|
# SupportedStylesForEmptyBrackets: space, no_space
|
|
Layout/SpaceInsideReferenceBrackets:
|
|
Exclude:
|
|
- 'lib/risc/parfait_adapter.rb'
|
|
- 'lib/slot_machine/instructions/message_setup.rb'
|
|
- 'test/risc/test_collector.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: space, no_space
|
|
Layout/SpaceInsideStringInterpolation:
|
|
Exclude:
|
|
- 'lib/arm/instructions/stack_instruction.rb'
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 29
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IndentationWidth.
|
|
Layout/Tab:
|
|
Exclude:
|
|
- 'lib/slot_machine/macro/macro.rb'
|
|
- 'lib/util/logger.rb'
|
|
- 'test/arm/test_call.rb'
|
|
- 'test/arm/test_compare.rb'
|
|
- 'test/arm/test_logic.rb'
|
|
- 'test/bench/ruby/adds.rb'
|
|
- 'test/bench/ruby/itos.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowInHeredoc.
|
|
Layout/TrailingWhitespace:
|
|
Exclude:
|
|
- 'lib/elf/section.rb'
|
|
- 'lib/elf/symbol_table_section.rb'
|
|
- 'lib/elf/text_section.rb'
|
|
- 'test/elf/test_something.rb'
|
|
- 'test/parfait/test_word.rb'
|
|
|
|
# Offense count: 3
|
|
Lint/AmbiguousBlockAssociation:
|
|
Exclude:
|
|
- 'lib/ruby/ruby_compiler.rb'
|
|
- 'test/parfait/test_list.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/AmbiguousOperator:
|
|
Exclude:
|
|
- 'test/ruby/helper.rb'
|
|
|
|
# Offense count: 6
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
Lint/AssignmentInCondition:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/slot_machine/block_compiler.rb'
|
|
- 'lib/slot_machine/method_compiler.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/DuplicateCaseCondition:
|
|
Exclude:
|
|
- 'lib/sol/statements.rb'
|
|
|
|
# Offense count: 20
|
|
Lint/DuplicateMethods:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: runtime_error, standard_error
|
|
Lint/InheritException:
|
|
Exclude:
|
|
- 'lib/ruby/ruby_compiler.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/InterpolationCheck:
|
|
Exclude:
|
|
- 'test/ruby/test_basic_values.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/LiteralAsCondition:
|
|
Exclude:
|
|
- 'test/bench/runner.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
Lint/RedundantStringCoercion:
|
|
Exclude:
|
|
- 'lib/risc/callable_compiler.rb'
|
|
- 'lib/risc/interpreter.rb'
|
|
- 'lib/ruby/return_statement.rb'
|
|
- 'lib/slot_machine/callable_compiler.rb'
|
|
- 'lib/slot_machine/instructions/slot_load.rb'
|
|
- 'lib/sol/return_statement.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/RescueException:
|
|
Exclude:
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Lint/ScriptPermission:
|
|
Exclude:
|
|
- 'tr.rb'
|
|
|
|
# Offense count: 1
|
|
Lint/ShadowingOuterLocalVariable:
|
|
Exclude:
|
|
- 'lib/parfait/type.rb'
|
|
|
|
# Offense count: 13
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
Lint/UnusedBlockArgument:
|
|
Exclude:
|
|
- 'lib/elf/object_writer.rb'
|
|
- 'lib/ruby/call_statement.rb'
|
|
- 'test/parfait/test_list1.rb'
|
|
- 'test/parfait/test_space.rb'
|
|
- 'test/parfait/test_space2.rb'
|
|
- 'test/risc/binary/test_linker1.rb'
|
|
- 'test/risc/position/test_position3.rb'
|
|
- 'test/risc/test_collector.rb'
|
|
|
|
# Offense count: 87
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
|
Lint/UnusedMethodArgument:
|
|
Enabled: false
|
|
|
|
# Offense count: 31
|
|
Lint/UselessAssignment:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
Lint/Void:
|
|
Exclude:
|
|
- 'lib/slot_machine/macro/get_internal_byte.rb'
|
|
|
|
# Offense count: 119
|
|
Metrics/AbcSize:
|
|
Max: 80
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
# ExcludedMethods: refine
|
|
Metrics/BlockLength:
|
|
Max: 34
|
|
|
|
# Offense count: 15
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ClassLength:
|
|
Max: 323
|
|
|
|
# Offense count: 19
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 11
|
|
|
|
# Offense count: 134
|
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
Metrics/MethodLength:
|
|
Max: 49
|
|
|
|
# Offense count: 4
|
|
# Configuration parameters: CountComments.
|
|
Metrics/ModuleLength:
|
|
Max: 176
|
|
|
|
# Offense count: 7
|
|
Metrics/PerceivedComplexity:
|
|
Max: 11
|
|
|
|
# Offense count: 44
|
|
Naming/AccessorMethodName:
|
|
Enabled: false
|
|
|
|
# Offense count: 26
|
|
Naming/BinaryOperatorParameterName:
|
|
Exclude:
|
|
- 'lib/risc/position/position.rb'
|
|
- 'lib/risc/register_slot.rb'
|
|
- 'lib/risc/register_value.rb'
|
|
- 'test/mains/source/10_add__4.rb'
|
|
- 'test/mains/source/11_call-call__7.rb'
|
|
- 'test/mains/source/13_simple-class__4.rb'
|
|
- 'test/mains/source/22_if-false_large_20.rb'
|
|
- 'test/mains/source/23_if-true_small_10.rb'
|
|
- 'test/mains/source/23_recurse-count__1.rb'
|
|
- 'test/mains/source/24_fibo__8.rb'
|
|
- 'test/mains/source/31_while__0.rb'
|
|
- 'test/mains/source/32_adds__10.rb'
|
|
- 'test/mains/source/33_recurse-fibo__5.rb'
|
|
- 'test/mains/source/35_times_11111_5.rb'
|
|
|
|
# Offense count: 1
|
|
Naming/ConstantName:
|
|
Exclude:
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 9
|
|
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
Naming/FileName:
|
|
Exclude:
|
|
- 'test/mains/source/00_one-call__8.rb'
|
|
- 'test/mains/source/11_call-call__7.rb'
|
|
- 'test/mains/source/13_simple-class__4.rb'
|
|
- 'test/mains/source/14_classname_Space_5.rb'
|
|
- 'test/mains/source/15_puts_Hello-there_11.rb'
|
|
- 'test/mains/source/22_if-false_large_20.rb'
|
|
- 'test/mains/source/23_if-true_small_10.rb'
|
|
- 'test/mains/source/23_recurse-count__1.rb'
|
|
- 'test/mains/source/33_recurse-fibo__5.rb'
|
|
|
|
# Offense count: 5
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: lowercase, uppercase
|
|
Naming/HeredocDelimiterCase:
|
|
Exclude:
|
|
- 'test/mains/test_new.rb'
|
|
- 'test/sol/class_send/test_class_def.rb'
|
|
- 'test/sol/class_send/test_class_instance.rb'
|
|
- 'test/sol/class_send/test_class_send_inherited.rb'
|
|
- 'test/sol/class_send/test_send_class.rb'
|
|
|
|
# Offense count: 2
|
|
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
Naming/MemoizedInstanceVariableName:
|
|
Exclude:
|
|
- 'lib/risc/instructions/label.rb'
|
|
- 'lib/sol/send_statement.rb'
|
|
|
|
# Offense count: 42
|
|
# Configuration parameters: IgnoredPatterns.
|
|
# SupportedStyles: snake_case, camelCase
|
|
Naming/MethodName:
|
|
EnforcedStyle: snake_case
|
|
|
|
# Offense count: 52
|
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
|
Naming/MethodParameterName:
|
|
Enabled: false
|
|
|
|
# Offense count: 17
|
|
# 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/elf/symbol_table_section.rb'
|
|
- 'lib/parfait/callable.rb'
|
|
- 'lib/parfait/callable_method.rb'
|
|
- 'lib/parfait/class.rb'
|
|
- 'lib/parfait/object.rb'
|
|
- 'lib/parfait/type.rb'
|
|
- 'lib/risc/instructions/label.rb'
|
|
- 'lib/risc/parfait_adapter.rb'
|
|
- 'lib/risc/position/position.rb'
|
|
- 'lib/ruby/if_statement.rb'
|
|
- 'lib/sol/if_statement.rb'
|
|
- 'lib/sol/method_expression.rb'
|
|
- 'test/mains/test_arm.rb'
|
|
- 'test/risc/position/test_position3.rb'
|
|
- 'test/support/fake_compiler.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredName.
|
|
Naming/RescuedExceptionsVariableName:
|
|
Exclude:
|
|
- 'test/sol/lambdas/test_class_blocks.rb'
|
|
|
|
# Offense count: 4
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: snake_case, normalcase, non_integer
|
|
Naming/VariableNumber:
|
|
Exclude:
|
|
- 'lib/slot_machine/macro/div10.rb'
|
|
- 'lib/slot_machine/macro/div4.rb'
|
|
- 'lib/slot_machine/macro/get_internal_byte.rb'
|
|
- 'test/risc/position/test_instruction_listener.rb'
|
|
|
|
# Offense count: 4
|
|
Security/Eval:
|
|
Exclude:
|
|
- 'lib/arm/arm_machine.rb'
|
|
- 'lib/parfait/factory.rb'
|
|
- 'lib/ruby/statement.rb'
|
|
- 'lib/sol/macro_expression.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: inline, group
|
|
Style/AccessModifierDeclarations:
|
|
Exclude:
|
|
- 'lib/parfait/message.rb'
|
|
|
|
# Offense count: 20
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
Style/Alias:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/arm/instructions/stack_instruction.rb'
|
|
- 'lib/parfait/list.rb'
|
|
- 'lib/parfait/type.rb'
|
|
- 'lib/risc/fake_memory.rb'
|
|
- 'lib/risc/instructions/branch.rb'
|
|
- 'lib/risc/instructions/label.rb'
|
|
- 'lib/risc/interpreter.rb'
|
|
- 'lib/risc/parfait_adapter.rb'
|
|
- 'lib/ruby/ruby_compiler.rb'
|
|
- 'lib/slot_machine/block_compiler.rb'
|
|
- 'lib/slot_machine/slot_compiler.rb'
|
|
- 'lib/slot_machine/slotted_message.rb'
|
|
- 'lib/util/list.rb'
|
|
- 'test/support/risc_interpreter.rb'
|
|
|
|
# Offense count: 47
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: always, conditionals
|
|
Style/AndOr:
|
|
Enabled: false
|
|
|
|
# Offense count: 14
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
# FunctionalMethods: let, let!, subject, watch
|
|
# IgnoredMethods: lambda, proc, it
|
|
Style/BlockDelimiters:
|
|
Exclude:
|
|
- 'Guardfile'
|
|
- 'lib/elf/object_file.rb'
|
|
- 'lib/elf/symbol_table_section.rb'
|
|
- 'lib/sol/macro_expression.rb'
|
|
- 'test/bench/rubyx/times.rb'
|
|
- 'test/mains/source/35_times_11111_5.rb'
|
|
- 'test/rubyx/test_compile.rb'
|
|
- 'test/rubyx/test_execute.rb'
|
|
- 'test/rubyx/test_interpret.rb'
|
|
- 'test/rubyx/test_stats.rb'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: braces, no_braces, context_dependent
|
|
Style/BracesAroundHashParameters:
|
|
Exclude:
|
|
- 'test/parfait/type/test_hash.rb'
|
|
- 'test/risc/test_collector.rb'
|
|
|
|
# Offense count: 1
|
|
Style/CaseEquality:
|
|
Exclude:
|
|
- 'lib/risc/interpreter.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: is_a?, kind_of?
|
|
Style/ClassCheck:
|
|
Exclude:
|
|
- 'lib/parfait/word.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
|
|
# SupportedStyles: backticks, percent_x, mixed
|
|
Style/CommandLiteral:
|
|
Exclude:
|
|
- 'test/bench/runner.rb'
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Keywords.
|
|
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
|
Style/CommentAnnotation:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/arm/instructions/memory_instruction.rb'
|
|
- 'lib/parfait/callable_method.rb'
|
|
- 'lib/parfait/list.rb'
|
|
- 'lib/risc/callable_compiler.rb'
|
|
- 'lib/slot_machine/instructions/argument_transfer.rb'
|
|
- 'lib/sol/method_expression.rb'
|
|
- 'test/mains/test_calling.rb'
|
|
- 'test/risc/position/test_position3.rb'
|
|
|
|
# Offense count: 17
|
|
Style/CommentedKeyword:
|
|
Exclude:
|
|
- 'lib/arm/instructions/logic_instruction.rb'
|
|
- 'lib/arm/translator.rb'
|
|
- 'lib/elf/text_section.rb'
|
|
- 'lib/risc/interpreter_platform.rb'
|
|
- 'lib/sol/builtin.rb'
|
|
- 'test/arm/test_call.rb'
|
|
- 'test/arm/test_memory.rb'
|
|
- 'test/parfait/test_binary_code.rb'
|
|
- 'test/risc/interpreter/calling/test_alloc.rb'
|
|
- 'test/risc/test_interpreter.rb'
|
|
- 'test/risc/test_risc_collection.rb'
|
|
- 'test/risc/test_risc_compiler.rb'
|
|
- 'test/ruby/test_send_statement.rb'
|
|
- 'test/rubyx/macro/test_integer_comparison.rb'
|
|
- 'test/slot_machine/test_slotted_message2.rb'
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
Style/ConditionalAssignment:
|
|
Exclude:
|
|
- 'lib/elf/object_writer.rb'
|
|
- 'lib/risc/callable_compiler.rb'
|
|
- 'lib/risc/interpreter.rb'
|
|
- 'lib/risc/position/instruction_listener.rb'
|
|
- 'lib/risc/position/position.rb'
|
|
- 'lib/ruby/send_statement.rb'
|
|
- 'lib/slot_machine/slotted_constant.rb'
|
|
- 'test/support/preloader.rb'
|
|
|
|
# Offense count: 28
|
|
# Cop supports --auto-correct.
|
|
Style/DefWithParentheses:
|
|
Enabled: false
|
|
|
|
# Offense count: 162
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: empty, nil, both
|
|
Style/EmptyElse:
|
|
Exclude:
|
|
- 'lib/parfait/dictionary.rb'
|
|
- 'lib/risc/platform.rb'
|
|
|
|
# Offense count: 16
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: compact, expanded
|
|
Style/EmptyMethod:
|
|
Exclude:
|
|
- 'lib/elf/null_section.rb'
|
|
- 'lib/risc/instructions/instruction.rb'
|
|
- 'lib/risc/instructions/label.rb'
|
|
- 'lib/risc/position/branch_listener.rb'
|
|
- 'lib/risc/position/label_listener.rb'
|
|
- 'lib/risc/position/position_listener.rb'
|
|
- 'lib/sol/variables.rb'
|
|
- 'test/parfait/test_interpreted.rb'
|
|
- 'test/rubyx/helper.rb'
|
|
- 'test/slot_machine/test_block_statement.rb'
|
|
- 'test/slot_machine/test_method_compiler.rb'
|
|
- 'test/sol/lambdas/test_assign.rb'
|
|
- 'test/support/fake_compiler.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/Encoding:
|
|
Exclude:
|
|
- 'Rakefile'
|
|
- 'rubyx.gemspec'
|
|
|
|
# Offense count: 5
|
|
Style/EvalWithLocation:
|
|
Exclude:
|
|
- 'lib/arm/arm_machine.rb'
|
|
- 'lib/parfait/factory.rb'
|
|
- 'lib/risc/parfait_adapter.rb'
|
|
- 'lib/ruby/statement.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/EvenOdd:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/ExpandPathArguments:
|
|
Exclude:
|
|
- 'test/slot_machine/test_macro_maker.rb'
|
|
|
|
# Offense count: 501
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: always, never
|
|
Style/FrozenStringLiteralComment:
|
|
Enabled: false
|
|
|
|
# Offense count: 15
|
|
# Configuration parameters: MinBodyLength.
|
|
Style/GuardClause:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/elf/object_file.rb'
|
|
- 'lib/risc/collector.rb'
|
|
- 'lib/risc/position/code_listener.rb'
|
|
- 'lib/risc/position/position.rb'
|
|
- 'lib/ruby/call_statement.rb'
|
|
- 'lib/slot_machine/slot_compiler.rb'
|
|
- 'lib/util/logger.rb'
|
|
- 'test/bench/ruby/calls.rb'
|
|
- 'test/mains/source/22_if-false_large_20.rb'
|
|
- 'test/mains/source/23_if-true_small_10.rb'
|
|
- 'test/mains/source/23_recurse-count__1.rb'
|
|
- 'test/mains/source/33_recurse-fibo__5.rb'
|
|
- 'test/support/risc_assert.rb'
|
|
|
|
# Offense count: 58
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
Style/HashSyntax:
|
|
Exclude:
|
|
- 'Gemfile'
|
|
- 'Rakefile'
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/arm/translator.rb'
|
|
- 'lib/elf/object_file.rb'
|
|
- 'lib/risc/interpreter.rb'
|
|
- 'test/arm/test_memory.rb'
|
|
- 'test/arm/test_move.rb'
|
|
- 'test/parfait/test_dictionary.rb'
|
|
|
|
# Offense count: 30
|
|
# Cop supports --auto-correct.
|
|
Style/IfUnlessModifier:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/InfiniteLoop:
|
|
Exclude:
|
|
- 'test/bench/runner.rb'
|
|
|
|
# Offense count: 29
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
Style/MethodCallWithoutArgsParentheses:
|
|
Enabled: false
|
|
|
|
# Offense count: 61
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
|
Style/MethodDefParentheses:
|
|
Enabled: false
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: literals, strict
|
|
Style/MutableConstant:
|
|
Exclude:
|
|
- 'lib/arm/arm_machine.rb'
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/elf/constants.rb'
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
|
# SupportedStyles: skip_modifier_ifs, always
|
|
Style/Next:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
|
|
# Offense count: 18
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NilComparison:
|
|
Exclude:
|
|
- 'lib/arm/arm_machine.rb'
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/arm/instructions/call_instruction.rb'
|
|
- 'lib/arm/instructions/compare_instruction.rb'
|
|
- 'lib/arm/instructions/logic_instruction.rb'
|
|
- 'lib/arm/instructions/memory_instruction.rb'
|
|
- 'lib/arm/instructions/move_instruction.rb'
|
|
- 'lib/arm/instructions/stack_instruction.rb'
|
|
- 'lib/parfait/object.rb'
|
|
- 'lib/risc/position/position.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IncludeSemanticChanges.
|
|
Style/NonNilCheck:
|
|
Exclude:
|
|
- 'lib/parfait/list.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/Not:
|
|
Exclude:
|
|
- 'lib/arm/instructions/memory_instruction.rb'
|
|
|
|
# Offense count: 11
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: Strict.
|
|
Style/NumericLiterals:
|
|
MinDigits: 11
|
|
|
|
# Offense count: 45
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
|
# SupportedStyles: predicate, comparison
|
|
Style/NumericPredicate:
|
|
Enabled: false
|
|
|
|
# Offense count: 12
|
|
# Cop supports --auto-correct.
|
|
Style/OrAssignment:
|
|
Exclude:
|
|
- 'lib/parfait/list.rb'
|
|
- 'lib/parfait/space.rb'
|
|
- 'lib/risc/instructions/label.rb'
|
|
- 'lib/risc/instructions/load_data.rb'
|
|
- 'lib/risc/instructions/operator_instruction.rb'
|
|
- 'lib/risc/instructions/syscall.rb'
|
|
- 'lib/risc/position/code_listener.rb'
|
|
- 'lib/risc/position/instruction_listener.rb'
|
|
- 'lib/risc/register_value.rb'
|
|
- 'lib/slot_machine/method_compiler.rb'
|
|
- 'test/mains/helper.rb'
|
|
- 'test/slot_machine/macro/helper.rb'
|
|
|
|
# Offense count: 21
|
|
# Cop supports --auto-correct.
|
|
Style/ParallelAssignment:
|
|
Enabled: false
|
|
|
|
# Offense count: 24
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
|
Style/ParenthesesAroundCondition:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/arm/instructions/call_instruction.rb'
|
|
- 'lib/arm/instructions/compare_instruction.rb'
|
|
- 'lib/arm/instructions/logic_instruction.rb'
|
|
- 'lib/arm/instructions/memory_instruction.rb'
|
|
- 'lib/arm/instructions/move_instruction.rb'
|
|
- 'lib/arm/instructions/stack_instruction.rb'
|
|
- 'lib/elf/object_file.rb'
|
|
- 'lib/elf/symbol_table_section.rb'
|
|
- 'lib/parfait/word.rb'
|
|
- 'lib/slot_machine/macro/macro.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: PreferredDelimiters.
|
|
Style/PercentLiteralDelimiters:
|
|
Exclude:
|
|
- 'lib/util/logger.rb'
|
|
- 'rubyx.gemspec'
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: short, verbose
|
|
Style/PreferredHashMethods:
|
|
Exclude:
|
|
- 'lib/risc/position/position.rb'
|
|
- 'lib/risc/standard_allocator.rb'
|
|
- 'lib/slot_machine/slot_compiler.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantBegin:
|
|
Exclude:
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantInterpolation:
|
|
Exclude:
|
|
- 'lib/elf/object_writer.rb'
|
|
- 'lib/parfait/cache_entry.rb'
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantParentheses:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'lib/arm/instructions/call_instruction.rb'
|
|
- 'lib/arm/instructions/compare_instruction.rb'
|
|
- 'lib/arm/instructions/logic_instruction.rb'
|
|
- 'lib/arm/instructions/memory_instruction.rb'
|
|
- 'lib/arm/instructions/move_instruction.rb'
|
|
- 'lib/arm/instructions/stack_instruction.rb'
|
|
- 'lib/parfait/word.rb'
|
|
- 'lib/risc/fake_memory.rb'
|
|
- 'lib/risc/position/position.rb'
|
|
- 'test/risc/position/test_instruction_listener.rb'
|
|
|
|
# Offense count: 149
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowMultipleReturnValues.
|
|
Style/RedundantReturn:
|
|
Enabled: false
|
|
|
|
# Offense count: 100
|
|
# Cop supports --auto-correct.
|
|
Style/RedundantSelf:
|
|
Enabled: false
|
|
|
|
# Offense count: 3
|
|
# Cop supports --auto-correct.
|
|
Style/RescueModifier:
|
|
Exclude:
|
|
- 'lib/arm/arm_machine.rb'
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: implicit, explicit
|
|
Style/RescueStandardError:
|
|
Exclude:
|
|
- 'lib/ruby/ruby_compiler.rb'
|
|
- 'lib/rubyx/compile.rb'
|
|
- 'lib/rubyx/interpret.rb'
|
|
- 'test/mains/test_arm.rb'
|
|
- 'test/sol/lambdas/test_class_blocks.rb'
|
|
- 'test/support/risc_interpreter.rb'
|
|
|
|
# Offense count: 23
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
Style/SafeNavigation:
|
|
Exclude:
|
|
- 'lib/parfait/binary_code.rb'
|
|
- 'lib/parfait/callable_method.rb'
|
|
- 'lib/parfait/singleton_class.rb'
|
|
- 'lib/parfait/type.rb'
|
|
- 'lib/risc/linker.rb'
|
|
- 'lib/risc/register_slot.rb'
|
|
- 'lib/risc/register_value.rb'
|
|
- 'lib/slot_machine/instructions/dynamic_call.rb'
|
|
- 'lib/sol/if_statement.rb'
|
|
- 'lib/sol/send_statement.rb'
|
|
- 'lib/sol/while_statement.rb'
|
|
- 'lib/util/compiler_list.rb'
|
|
- 'lib/util/list.rb'
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 46
|
|
# Cop supports --auto-correct.
|
|
Style/SelfAssignment:
|
|
Enabled: false
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
Style/Semicolon:
|
|
Exclude:
|
|
- 'lib/arm/constants.rb'
|
|
- 'test/bench/ruby/hello.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: only_raise, only_fail, semantic
|
|
Style/SignalException:
|
|
Exclude:
|
|
- 'lib/rubyx/compile.rb'
|
|
- 'lib/rubyx/interpret.rb'
|
|
|
|
# Offense count: 21
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
Style/SingleLineMethods:
|
|
Exclude:
|
|
- 'lib/util/logger.rb'
|
|
- 'test/risc/interpreter/blocks/test_assign_outer.rb'
|
|
- 'test/rubyx/macro/test_integer_comparison.rb'
|
|
- 'test/rubyx/macro/test_integer_operator.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: use_perl_names, use_english_names
|
|
Style/SpecialGlobalVars:
|
|
Exclude:
|
|
- 'test/mains/helper.rb'
|
|
- 'test/mains/test_arm.rb'
|
|
|
|
# Offense count: 6
|
|
# Cop supports --auto-correct.
|
|
Style/StderrPuts:
|
|
Exclude:
|
|
- 'Rakefile'
|
|
- 'bin/rubyxc'
|
|
- 'test/helper.rb'
|
|
|
|
# Offense count: 1905
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiterals:
|
|
Enabled: false
|
|
|
|
# Offense count: 4
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiteralsInInterpolation:
|
|
Exclude:
|
|
- 'lib/risc/instructions/instruction.rb'
|
|
- 'lib/risc/instructions/label.rb'
|
|
- 'lib/util/logger.rb'
|
|
|
|
# Offense count: 45
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: MinSize.
|
|
# SupportedStyles: percent, brackets
|
|
Style/SymbolArray:
|
|
EnforcedStyle: brackets
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/SymbolLiteral:
|
|
Exclude:
|
|
- 'test/slot_machine/macro/test_get_internal_byte.rb'
|
|
|
|
# Offense count: 13
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: IgnoredMethods.
|
|
# IgnoredMethods: respond_to, define_method
|
|
Style/SymbolProc:
|
|
Exclude:
|
|
- 'lib/risc.rb'
|
|
- 'lib/risc/linker.rb'
|
|
- 'lib/ruby/class_method_statement.rb'
|
|
- 'lib/ruby/method_statement.rb'
|
|
- 'lib/ruby/send_statement.rb'
|
|
- 'lib/sol/call_statement.rb'
|
|
- 'lib/sol/class_method_expression.rb'
|
|
- 'lib/sol/macro_expression.rb'
|
|
- 'lib/sol/method_expression.rb'
|
|
- 'lib/sol/send_statement.rb'
|
|
- 'lib/sol/statements.rb'
|
|
- 'test/slot_machine/instructions/helper.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
Style/TernaryParentheses:
|
|
Exclude:
|
|
- 'lib/arm/instructions/compare_instruction.rb'
|
|
- 'lib/arm/instructions/stack_instruction.rb'
|
|
- 'lib/rubyx/stats.rb'
|
|
- 'lib/util/list.rb'
|
|
|
|
# Offense count: 17
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInArrayLiteral:
|
|
Enabled: false
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInHashLiteral:
|
|
Exclude:
|
|
- 'lib/risc/parfait_boot.rb'
|
|
- 'lib/sol/builtin.rb'
|
|
- 'test/support/options.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# 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/parfait/object.rb'
|
|
- 'lib/risc/position/position.rb'
|
|
- 'test/lib/test_log.rb'
|
|
- 'test/mains/source/14_classname_Space_5.rb'
|
|
|
|
# Offense count: 1
|
|
# Cop supports --auto-correct.
|
|
Style/UnlessElse:
|
|
Exclude:
|
|
- 'lib/parfait/type.rb'
|
|
|
|
# Offense count: 8
|
|
# Cop supports --auto-correct.
|
|
Style/WhileUntilDo:
|
|
Exclude:
|
|
- 'lib/parfait/callable.rb'
|
|
- 'lib/risc/parfait_adapter.rb'
|
|
- 'test/bench/ruby/adds.rb'
|
|
- 'test/bench/ruby/calls.rb'
|
|
- 'test/bench/ruby/hello.rb'
|
|
- 'test/bench/ruby/itos.rb'
|
|
- 'test/bench/ruby/loop.rb'
|
|
|
|
# Offense count: 7
|
|
# Cop supports --auto-correct.
|
|
Style/WhileUntilModifier:
|
|
Exclude:
|
|
- 'lib/ruby/call_statement.rb'
|
|
- 'lib/slot_machine/slot_compiler.rb'
|
|
- 'lib/slot_machine/slotted.rb'
|
|
- 'test/bench/ruby/loop.rb'
|
|
- 'test/bench/rubyx/loop.rb'
|
|
- 'test/bench/runner.rb'
|
|
- 'test/mains/source/31_while__0.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
|
# SupportedStyles: percent, brackets
|
|
Style/WordArray:
|
|
Exclude:
|
|
- 'lib/risc/builder.rb'
|
|
- 'test/rubyx/test_rubyxc.rb'
|
|
|
|
# Offense count: 5
|
|
# Cop supports --auto-correct.
|
|
# 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/arm/constants.rb'
|
|
- 'test/risc/binary/test_linker.rb'
|
|
- 'test/risc/interpreter/calling/test_alloc.rb'
|
|
- 'test/risc/position/test_code_listener1.rb'
|
|
|
|
# Offense count: 907
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Layout/LineLength:
|
|
Max: 174
|