Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • rubocop-rules rubocop-rules
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • visible
  • rubocop-rulesrubocop-rules
  • Merge requests
  • !66

Merged
Created Jan 25, 2021 by Anthony Robin@anthony.robinDeveloper

🤖 Enable new cops introduced since `Rubocop v1.2`

  • Overview 2
  • Commits 1
  • Pipelines 2
  • Changes 1

Also enable Rails and Performance related cops.

New enabled cops:

  • Layout/SpaceBeforeBrackets (new in 1.7)

  • Lint/AmbiguousAssignment (new in 1.7)

  • Lint/DeprecatedConstants (new in 1.8)

  • Lint/DuplicateBranch (new in 1.3)

  • Lint/EmptyClass (new in 1.3)

  • Lint/LambdaWithoutLiteralBlock (new in 1.8)

  • Lint/RedundantDirGlobSort (new in 1.8)

  • Lint/UnexpectedBlockArity (new in 1.5)

  • Style/EndlessMethod (new in 1.8)

  • Style/HashExcept (new in 1.7) => NOTE: this cop is disabled because it is only targetting ruby 3.0+

  • Style/NilLambda (new in 1.3)

  • Style/RedundantArgument (new in 1.4)

  • Performance/BlockGivenWithExplicitBlock (new in 1.9)

  • Performance/CollectionLiteralInLoop (new in 1.8)

  • Performance/ConstantRegexp (new in 1.9)

  • Performance/MethodObjectAsBlock (new in 1.9)

  • Rails/AttributeDefaultBlockValue (new in 2.9)

  • Rails/WhereEquals (new in 2.9)

Edited Jan 25, 2021 by Anthony Robin
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: add-new-cops-1.2+