Last modified: 2013-10-29 12:14:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57623, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55623 - Bogus phpcs failure in VisualEditor
Bogus phpcs failure in VisualEditor
Status: RESOLVED WORKSFORME
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-11 14:44 UTC by Roan Kattouw
Modified: 2013-10-29 12:14 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2013-10-11 14:44:16 UTC
https://integration.wikimedia.org/ci/job/mwext-VisualEditor-phpcs-HEAD/1561/console is a bogus failure. The error messages are:

14:41:05 FILE: ...orkspace/mwext-VisualEditor-phpcs-HEAD/maintenance/makeStaticLoader.php
14:41:05 --------------------------------------------------------------------------------
14:41:05 FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
14:41:05 --------------------------------------------------------------------------------
14:41:05  78 | ERROR | Expected 1 space before "?"; 3 found
14:41:05     |       | (Squiz.WhiteSpace.OperatorSpacing.SpacingBefore)
14:41:05  80 | ERROR | Expected 1 space before ":"; 3 found
14:41:05     |       | (Squiz.WhiteSpace.OperatorSpacing.SpacingBefore)
14:41:05 --------------------------------------------------------------------------------

The source code doesn't have 3 spaces before the ?, only a bunch of tabs), but it does have a comment on the preceding line each time. Maybe that's what's confusing phpcs?
Comment 1 Roan Kattouw 2013-10-11 14:45:17 UTC
Filing this because it will eventually block https://gerrit.wikimedia.org/r/#/c/88896/ once that commit has been cleaned up and reviewed.
Comment 2 Antoine "hashar" Musso (WMF) 2013-10-29 12:14:10 UTC
Looking at the code, the phpcs failure seemed correct, the ternary operators should be at end of line.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links