Page MenuHomePhabricator

Review if existing Ruby code follows Ruby Styleguide
Closed, ResolvedPublic

Description

The styleguide:

https://github.com/styleguide/ruby

Repositories with Ruby code:

https://github.com/wikimedia/mediawiki-selenium#links


Version: wmf-deployment
Severity: normal
Whiteboard: zfilipin
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=69245

Details

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:59 AM
bzimport set Reference to bz63307.

Change 168277 had a related patch set uploaded by Zfilipin:
Fixed Style/BracesAroundHashParameters RuboCop offense

https://gerrit.wikimedia.org/r/168277

Change 168279 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/Alias

https://gerrit.wikimedia.org/r/168279

Change 168281 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/DotPosition

https://gerrit.wikimedia.org/r/168281

Change 168283 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/LeadingCommentSpace

https://gerrit.wikimedia.org/r/168283

Change 168284 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/PercentLiteralDelimiters

https://gerrit.wikimedia.org/r/168284

Change 168285 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/SignalException

https://gerrit.wikimedia.org/r/168285

Change 168286 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/SpaceInsideParens

https://gerrit.wikimedia.org/r/168286

Change 168287 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/SpecialGlobalVars

https://gerrit.wikimedia.org/r/168287

Change 168288 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/StringLiterals

https://gerrit.wikimedia.org/r/168288

Change 168289 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/UnneededPercentQ

https://gerrit.wikimedia.org/r/168289

Change 168290 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/WordArray

https://gerrit.wikimedia.org/r/168290

Change 168292 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Lint/UselessAssignment

https://gerrit.wikimedia.org/r/168292

Change 168309 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/ClassAndModuleChildren

https://gerrit.wikimedia.org/r/168309

Change 168310 had a related patch set uploaded by Zfilipin:
WIP Fixed RuboCop offense Metrics/LineLength

https://gerrit.wikimedia.org/r/168310

Change 168314 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Lint/UnusedBlockArgument

https://gerrit.wikimedia.org/r/168314

Change 168316 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Lint/UnusedMethodArgument

https://gerrit.wikimedia.org/r/168316

Change 168318 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Lint/UselessAccessModifier

https://gerrit.wikimedia.org/r/168318

Change 168320 had a related patch set uploaded by Zfilipin:
Fixed RuboCop offense Style/AndOr

https://gerrit.wikimedia.org/r/168320

Change 168277 merged by jenkins-bot:
Fixed RuboCop offense Style/BracesAroundHashParameters

https://gerrit.wikimedia.org/r/168277

Change 169363 had a related patch set uploaded by Zfilipin:
Fixed Lint/UnusedBlockArgument RuboCop offense

https://gerrit.wikimedia.org/r/169363

Change 168279 merged by Dduvall:
Use alias_method when aliasing macro-defined attributes

https://gerrit.wikimedia.org/r/168279

Change 168281 merged by jenkins-bot:
Added custom RuboCop check for Style/DotPosition

https://gerrit.wikimedia.org/r/168281

Change 168283 merged by jenkins-bot:
Fixed RuboCop offense Style/LeadingCommentSpace

https://gerrit.wikimedia.org/r/168283

Change 168284 merged by jenkins-bot:
Fixed RuboCop offense Style/PercentLiteralDelimiters

https://gerrit.wikimedia.org/r/168284

Change 168286 merged by jenkins-bot:
Fixed RuboCop offense Style/SpaceInsideParens

https://gerrit.wikimedia.org/r/168286

Change 168287 merged by jenkins-bot:
Fixed RuboCop offense Style/SpecialGlobalVars

https://gerrit.wikimedia.org/r/168287

Change 168288 merged by jenkins-bot:
Fixed RuboCop offense Style/StringLiterals

https://gerrit.wikimedia.org/r/168288

Change 168289 merged by jenkins-bot:
Fixed RuboCop offense Style/UnneededPercentQ

https://gerrit.wikimedia.org/r/168289

Change 168290 merged by Dduvall:
Fixed RuboCop offense Style/WordArray

https://gerrit.wikimedia.org/r/168290

Change 168292 merged by jenkins-bot:
Fixed RuboCop offense Lint/UselessAssignment

https://gerrit.wikimedia.org/r/168292

Change 168309 merged by Dduvall:
Fixed RuboCop offense Style/ClassAndModuleChildren

https://gerrit.wikimedia.org/r/168309

Change 168285 merged by jenkins-bot:
Ignore RuboCop offense Style/SignalException

https://gerrit.wikimedia.org/r/168285

Change 168310 merged by jenkins-bot:
Fixed RuboCop offense Metrics/LineLength

https://gerrit.wikimedia.org/r/168310

Change 170189 had a related patch set uploaded by Dduvall:
Ignoring RuboCop rule Style/Alias

https://gerrit.wikimedia.org/r/170189

Change 168320 abandoned by Zfilipin:
Fixed RuboCop offense Style/AndOr

Reason:
Another big refactoring is happening at the same time: https://gerrit.wikimedia.org/r/#/q/branch:env-abstraction-layer,n,z

https://gerrit.wikimedia.org/r/168320

Change 168318 abandoned by Zfilipin:
Fixed RuboCop offense Lint/UselessAccessModifier

Reason:
Another big refactoring is happening at the same time: https://gerrit.wikimedia.org/r/#/q/branch:env-abstraction-layer,n,z

https://gerrit.wikimedia.org/r/168318

Change 168316 abandoned by Zfilipin:
Fixed RuboCop offense Lint/UnusedMethodArgument

Reason:
Another big refactoring is happening at the same time: https://gerrit.wikimedia.org/r/#/q/branch:env-abstraction-layer,n,z

https://gerrit.wikimedia.org/r/168316

Change 168314 abandoned by Zfilipin:
Fixed RuboCop offense Lint/UnusedBlockArgument

Reason:
Another big refactoring is happening at the same time: https://gerrit.wikimedia.org/r/#/q/branch:env-abstraction-layer,n,z

https://gerrit.wikimedia.org/r/168314

Change 170911 had a related patch set uploaded by Zfilipin:
Fixed Style/SpaceAfterComma RuboCop offense

https://gerrit.wikimedia.org/r/170911

Change 170911 merged by jenkins-bot:
Fixed Style/SpaceAfterComma RuboCop offense

https://gerrit.wikimedia.org/r/170911

Change 171742 had a related patch set uploaded by Zfilipin:
QA: Update RuboCop configuration file for new RuboCop version

https://gerrit.wikimedia.org/r/171742

Change 171743 had a related patch set uploaded by Zfilipin:
QA: Fixed Lint/EndAlignment RuboCop offense

https://gerrit.wikimedia.org/r/171743

Change 171744 had a related patch set uploaded by Zfilipin:
QA: Fixed Lint/ParenthesesAsGroupedExpression RuboCop offense

https://gerrit.wikimedia.org/r/171744

Change 171745 had a related patch set uploaded by Zfilipin:
QA: Fixed Lint/UnusedBlockArgument RuboCop offense

https://gerrit.wikimedia.org/r/171745

Change 171746 had a related patch set uploaded by Zfilipin:
QA: Ignoring Metrics/ClassLength RuboCop cop

https://gerrit.wikimedia.org/r/171746

Change 171747 had a related patch set uploaded by Zfilipin:
QA: Fixed Style/BracesAroundHashParameters RoboCop offense

https://gerrit.wikimedia.org/r/171747

Change 171748 had a related patch set uploaded by Zfilipin:
QA: Fixed Style/CommentAnnotation RuboCop offense

https://gerrit.wikimedia.org/r/171748

Change 171749 had a related patch set uploaded by Zfilipin:
QA: Fixed Style/EmptyLines RuboCop offense

https://gerrit.wikimedia.org/r/171749

Change 171750 had a related patch set uploaded by Zfilipin:
QA: Fixed Style/EmptyLinesAroundClassBody RuboCop offense

https://gerrit.wikimedia.org/r/171750

Change 171751 had a related patch set uploaded by Zfilipin:
QA: Fixed Style/HashSyntax RuboCop offense

https://gerrit.wikimedia.org/r/171751

Change 171751 abandoned by Zfilipin:
QA: Fixed Style/HashSyntax RuboCop offense

https://gerrit.wikimedia.org/r/171751

Change 171750 abandoned by Zfilipin:
QA: Fixed Style/EmptyLinesAroundClassBody RuboCop offense

https://gerrit.wikimedia.org/r/171750

Change 171749 abandoned by Zfilipin:
QA: Fixed Style/EmptyLines RuboCop offense

https://gerrit.wikimedia.org/r/171749

Change 171748 abandoned by Zfilipin:
QA: Fixed Style/CommentAnnotation RuboCop offense

https://gerrit.wikimedia.org/r/171748

Change 171747 abandoned by Zfilipin:
QA: Fixed Style/BracesAroundHashParameters RoboCop offense

https://gerrit.wikimedia.org/r/171747

Change 171746 abandoned by Zfilipin:
QA: Ignoring Metrics/ClassLength RuboCop cop

https://gerrit.wikimedia.org/r/171746

Change 171745 abandoned by Zfilipin:
QA: Fixed Lint/UnusedBlockArgument RuboCop offense

https://gerrit.wikimedia.org/r/171745

Change 171744 abandoned by Zfilipin:
QA: Fixed Lint/ParenthesesAsGroupedExpression RuboCop offense

https://gerrit.wikimedia.org/r/171744

Change 171743 abandoned by Zfilipin:
QA: Fixed Lint/EndAlignment RuboCop offense

https://gerrit.wikimedia.org/r/171743

Change 171742 abandoned by Zfilipin:
QA: Update RuboCop configuration file for new RuboCop version

https://gerrit.wikimedia.org/r/171742

Change 171802 had a related patch set uploaded by Lubaochuan:
Removed Style/LeadingCommentSpace RuboCop offense from .rubocop_todo.yml file

https://gerrit.wikimedia.org/r/171802

Change 172245 had a related patch set uploaded by Vikassy:
[BrowserTest] Fixed Style/CommentAnnotation RuboCop offense

https://gerrit.wikimedia.org/r/172245

Change 171802 abandoned by Lubaochuan:
Removed Style/LeadingCommentSpace RuboCop offense from .rubocop_todo.yml file

Reason:
Will incorporating this change by amending the previous/original change at https://gerrit.wikimedia.org/r/#/c/171508/

https://gerrit.wikimedia.org/r/171802

Change 172535 had a related patch set uploaded by Lubaochuan:
Fixed Style/Documentation RuboCop offense

https://gerrit.wikimedia.org/r/172535

Change 169363 merged by jenkins-bot:
Fixed Lint/UnusedBlockArgument RuboCop offense

https://gerrit.wikimedia.org/r/169363

Change 172535 merged by jenkins-bot:
Fixed Style/Documentation RuboCop offense

https://gerrit.wikimedia.org/r/172535

Change 172708 had a related patch set uploaded by Zfilipin:
tests: RuboCop checks .docs/CustomTags.rb

https://gerrit.wikimedia.org/r/172708

Change 172708 merged by jenkins-bot:
tests: RuboCop checks .docs/CustomTags.rb

https://gerrit.wikimedia.org/r/172708

Change 171508 had a related patch set uploaded by Lubaochuan:
Fixed Style/LeadingCommentSpace RuboCop offense Removed Style/LeadingCommentSpace RuboCop offense from .rubocop_todo.yml file

https://gerrit.wikimedia.org/r/171508

Change 171508 had a related patch set uploaded by Lubaochuan:
Fixed Style/LeadingCommentSpace RuboCop offense

https://gerrit.wikimedia.org/r/171508

Change 171508 merged by jenkins-bot:
Fixed Style/LeadingCommentSpace RuboCop offense

https://gerrit.wikimedia.org/r/171508

The review is mostly done. "All" that is left is fixing the problems.

Change 172245 abandoned by Zfilipin:
[BrowserTest] Fixed Style/CommentAnnotation RuboCop offense

Reason:
No activity in a month. Abandoning the commit, since it was my original comment anyway. If you plan to work on this, please restore the commit.

https://gerrit.wikimedia.org/r/172245

Change 170189 abandoned by Hashar:
Ignoring RuboCop rule Style/Alias

Reason:
This is no more needed. The .rubocop_todo.yml has been removed in master branch and all tests pass.

https://gerrit.wikimedia.org/r/170189

Change 170189 restored by Hashar:
Ignoring RuboCop rule Style/Alias

Reason:
bah

https://gerrit.wikimedia.org/r/170189

Change 170189 had a related patch set uploaded (by Hashar):
Ignoring RuboCop rule Style/Alias

https://gerrit.wikimedia.org/r/170189

Patch-For-Review

Change 170189 merged by jenkins-bot:
Ignoring RuboCop rule Style/Alias

https://gerrit.wikimedia.org/r/170189