RuboCop // Docs
Home
Style Guides
Ruby Rails RSpec Minitest
API Docs
Projects
RuboCop RuboCop AST RuboCop Minitest RuboCop Performance RuboCop Rails RuboCop Rake RuboCop RSpec
Community
GitHub Org Chat (Gitter) Open Collective

RuboCop Performance

    • Home
    • Installation
    • Usage
    • Cops
    • Cops Documentation
      • Performance
RuboCop Performance 1.8
  • RuboCop
    • master
    • 1.11
    • 1.10
    • 1.9
    • 1.8
    • 1.7
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.2
    • 1.1
    • 1.0
  • RuboCop AST
    • master
    • 1.4
    • 1.3
    • 1.2
    • 1.1
    • 1.0
  • RuboCop Minitest
    • master
    • 0.10
  • RuboCop Packaging
    • master
  • RuboCop Performance
    • master
    • 1.10
    • 1.9
    • 1.8
    • 1.7
  • RuboCop Rails
    • master
    • 2.9
    • 2.8
    • 2.7
  • RuboCop RSpec
    • master
    • 2.2
    • 2.1
    • 2.0
    • 1.44
  • RuboCop Performance
  • Cops
master 1.10 1.9 1.8 1.7
Edit this Page

Cops

In RuboCop lingo the various checks performed on the code are called cops. Each cop is responsible for detecting one particular offense. RuboCop Performance has only one Performance department.

Performance

Performance cops optimization analysis for your projects.

Department Performance

  • Performance/AncestorsInclude

  • Performance/BigDecimalWithNumericArgument

  • Performance/BindCall

  • Performance/Caller

  • Performance/CaseWhenSplat

  • Performance/Casecmp

  • Performance/ChainArrayAllocation

  • Performance/CollectionLiteralInLoop

  • Performance/CompareWithBlock

  • Performance/Count

  • Performance/DeletePrefix

  • Performance/DeleteSuffix

  • Performance/Detect

  • Performance/DoubleStartEndWith

  • Performance/EndWith

  • Performance/FixedSize

  • Performance/FlatMap

  • Performance/InefficientHashSearch

  • Performance/IoReadlines

  • Performance/OpenStruct

  • Performance/RangeInclude

  • Performance/RedundantBlockCall

  • Performance/RedundantMatch

  • Performance/RedundantMerge

  • Performance/RedundantSortBlock

  • Performance/RedundantStringChars

  • Performance/RegexpMatch

  • Performance/ReverseEach

  • Performance/ReverseFirst

  • Performance/Size

  • Performance/SortReverse

  • Performance/Squeeze

  • Performance/StartWith

  • Performance/StringInclude

  • Performance/StringReplacement

  • Performance/Sum

  • Performance/TimesMap

  • Performance/UnfreezeString

  • Performance/UriDefaultParser

Usage Performance

Copyright (C) 2012-2020 Bozhidar Batsov and RuboCop contributors.

Except where otherwise noted, docs.rubocop.org is licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).