RuboCop // 文档
首页
风格指南
Ruby Rails RSpec Minitest
API 文档
项目
RuboCop RuboCop AST RuboCop Capybara RuboCop factory_bot RuboCop Minitest RuboCop Performance RuboCop Rails RuboCop Rake RuboCop RSpec RuboCop RSpec Rails
社区
GitHub 组织 聊天 (Gitter) Open Collective

RuboCop Performance

    • 首页
    • 安装
    • 使用
    • Cops
    • Cops 文档
      • 性能
RuboCop Performance
  • RuboCop
    • 默认
    • 1.64
    • 1.63
    • 1.62
    • 1.61
    • 1.60
    • 1.59
    • 1.58
    • 1.57
    • 1.56
    • 1.55
    • 1.54
    • 1.53
    • 1.52
    • 1.51
    • 1.50
    • 1.49
    • 1.48
    • 1.47
    • 1.46
    • 1.45
    • 1.44
    • 1.43
    • 1.42
    • 1.41
    • 1.40
    • 1.0
  • RuboCop AST
    • master
    • 1.12
    • 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 Capybara
    • 默认
    • 2.21
    • 2.20
    • 2.19
    • 2.18
    • 2.17
  • RuboCop factory_bot
    • 默认
    • 2.26
    • 2.25
    • 2.24
    • 2.23
    • 2.22
  • RuboCop Minitest
    • 默认
    • 0.35
    • 0.34
    • 0.33
    • 0.32
    • 0.31
    • 0.30
    • 0.29
    • 0.28
    • 0.27
    • 0.26
    • 0.25
  • RuboCop Packaging
    • master
  • RuboCop Performance
    • 默认
    • 1.21
    • 1.20
    • 1.19
    • 1.18
    • 1.17
    • 1.16
    • 1.15
    • 1.14
    • 1.13
    • 1.12
  • RuboCop Rails
    • 默认
    • 2.25
    • 2.24
    • 2.23
    • 2.22
    • 2.21
    • 2.20
    • 2.19
    • 2.18
    • 2.17
    • 2.16
    • 2.15
    • 2.14
  • RuboCop RSpec
    • 默认
    • 3.0
    • 2.31
    • 2.30
    • 2.29
    • 2.28
    • 2.27
    • 2.26
    • 2.25
    • 2.24
    • 1.44
  • RuboCop RSpec Rails
    • 默认
    • 2.30
    • 2.29
    • 2.28
  • RuboCop Performance
  • Cops
默认 1.21 1.20 1.19 1.18 1.17 1.16 1.15 1.14 1.13 1.12
编辑此页面

Cops

在 RuboCop 行话中,对代码执行的各种检查被称为 cops。每个 cop 负责检测一个特定的违规行为。RuboCop Performance 只有一个 Performance 部门。

性能

性能 cops 对您的项目的优化分析。

部门 Performance

  • Performance/AncestorsInclude

  • Performance/ArraySemiInfiniteRangeSlice

  • Performance/BigDecimalWithNumericArgument

  • Performance/BindCall

  • Performance/BlockGivenWithExplicitBlock

  • Performance/Caller

  • Performance/CaseWhenSplat

  • 性能/Casecmp

  • 性能/ChainArrayAllocation

  • 性能/CollectionLiteralInLoop

  • 性能/CompareWithBlock

  • 性能/ConcurrentMonotonicTime

  • 性能/ConstantRegexp

  • 性能/Count

  • 性能/DeletePrefix

  • 性能/DeleteSuffix

  • 性能/Detect

  • 性能/DoubleStartEndWith

  • 性能/EndWith

  • 性能/FixedSize

  • 性能/FlatMap

  • 性能/InefficientHashSearch

  • 性能/IoReadlines

  • 性能/MapCompact

  • 性能/MapMethodChain

  • 性能/MethodObjectAsBlock

  • 性能/OpenStruct

  • 性能/RangeInclude

  • 性能/RedundantBlockCall

  • 性能/RedundantEqualityComparisonBlock

  • 性能/RedundantMatch

  • 性能/RedundantMerge

  • 性能/RedundantSortBlock

  • 性能/RedundantSplitRegexpArgument

  • 性能/RedundantStringChars

  • 性能/RegexpMatch

  • 性能/ReverseEach

  • 性能/ReverseFirst

  • 性能/SelectMap

  • 性能/Size

  • 性能/SortReverse

  • 性能/Squeeze

  • 性能/StartWith

  • 性能/StringIdentifierArgument

  • 性能/StringInclude

  • 性能/StringReplacement

  • 性能/Sum

  • 性能/TimesMap

  • 性能/UnfreezeString

  • 性能/UriDefaultParser

用法 性能

版权所有 (C) 2012-2024 Bozhidar Batsov 和 RuboCop 贡献者。

除另有说明外,docs.rubocop.org 采用 知识共享署名-相同方式共享 4.0 国际 (CC BY-SA 4.0) 许可。