PHPCS now voting on MediaWiki core

I announced earlier today that PHP CodeSniffer is now a voting job against all submitted MediaWiki core patches. This is the result of a lot of hard work by a large number of people.

Work on PHPCS compliance usually comes in bursts, most recently I was motivated after a closing PHP tag (?>) made it into our codebase, which easily could have been a huge issue.

PHPCS detects most code style issues as per our coding conventions using an enhanced PHP parser, "sniffs" written by upstream, and our own set of custom sniffs. The goal is to provide faster feedback to users about routine errors, instead of requiring a human to point them out.

There's still work to be done though, we made it voting by disabling some sniffs that were failing. Some of those are going to take a lot of work to enable (like maximum line length), but it's a huge accomplishment to get a large portion of it voting.

We also released MediaWiki-CodeSniffer 0.4.0 today, which is the versioned ruleset and custom sniffs. It has experimental support for automatically fixing errors that PHPCS spots, which will make it even easier to fix style issues.


GSoC 2015

This year for Google Summer of Code, I co-mentored with YuviPanda a project to build a cross-wiki watchlist that uses OAuth and runs on Tool Labs. Sitic did a fantastic job on the project, and the final result, crosswatch, is amazing.

I use it quite frequently, and aside from the cross-wiki integration, I think the killer feature is the inline diffs that you can see by clicking on an entry. I used to use Popups to kind of do that, but being able to see the diff just as MediaWiki would have shown it is really nice.

Aside from it being immensly useful, I think crosswatch is going to set the stage for future improvements to the watchlist and related features. I'm already independently implementing two of its many features in MediaWiki: ORES integration and cross-wiki notifications. I don't think it will be long until other feature requests from crosswatch are filed and implemented.

Also, new laptop sticker ^.^




Switching to Fedora

I recently got a new ThinkPad T440S through work, and decided to install Fedora on it. This was a few weeks ago, so I started out with Fedora 20 (now running F21).

Overall, it's perfect. There are a few issues so far, but all of those seem to be hardware related. Mainly:

  • wifi randomly drops causing the entire OS to freeze
  • touchpad gets annoying while typing (I ended up disabling it)

Other than that, I absolutely love it. I'm always amazed at how fast the boot is compared to my MacBook, the SSD was totally worth it.