Last modified: 2013-03-16 22:32:05 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 T46742, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44742 - phpcs : conflicting Sniffs about spaces in typecasts
phpcs : conflicting Sniffs about spaces in typecasts
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-07 10:16 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-03-16 22:32 UTC (History)
3 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2013-02-07 10:16:30 UTC
We seems to still have two conflicting sniffs regarding the space after a typecast.

https://integration.mediawiki.org/ci/job/mediawiki-core-phpcs-HEAD/1373/console

--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
  33 | ERROR | String concat is not required here; use a single string instead
  37 | ERROR | String concat is not required here; use a single string instead
--------------------------------------------------------------------------------

https://integration.mediawiki.org/ci/job/mediawiki-core-phpcs-HEAD/1375/console

--------------------------------------------------------------------------------
 FOUND 2 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
  371 | ERROR | A cast statement must be followed by a single space
  371 | ERROR | A cast statement must be followed by a single space
--------------------------------------------------------------------------------

I have made phpcs to show the sniff code (-s option) with https://gerrit.wikimedia.org/r/47847
Comment 1 Antoine "hashar" Musso (WMF) 2013-02-07 10:26:28 UTC
Test change:  https://gerrit.wikimedia.org/r/47848

Turns out the codesniffer code base was not up to date... Need to fix that.

/var/lib/tools/codesniffer is a submodule

/var/lib/tools/mwcodesniffer is a local checkout which is manually updated.

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


Navigation
Links