[dokuwiki] PSR-2 Adoption

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: DokuWiki Mailinglist <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 10 Oct 2019 10:24:05 +0200

Hi all,

I just merged the psr2 branch into master. I worked on this branch on
and off for more than a year now.

For now all the automatic reformatting fixes that PHP CodeSniffer can
do for us are not applied. The branch merely fixed stuff that needed
manual intervention. Especially the rules on how classes and variables
should be named and that files should either declare classes/functions
OR execute code required a lot of refactoring. That's why working on
something that sounded like an easy job took so long.

A lot of stuff moved, many old classes and functions have been marked
deprecated (plugin developers should enable the debug log to see
warnings for the use of deprecated stuff).

Before we can go ahead and also apply the automatic reformatting, we
need to go through the open pull requests and decide if we want to
apply them or not. We probably need to fix a lot of them before they
apply cleanly.

Ideally I would like to have a bug squashing weekend for that (see
https://www.dokuwiki.org/devel:bughunting). But because of life things
I will have very little time on the weekends for probably the next
half year. So, if anyone else would take up organizing and managing
this, I'd be grateful.

For triaging the PRs, I started a github project at
https://github.com/splitbrain/dokuwiki/projects/1

I'm probably forgetting to explain things here that I should explain.
So best just ask ;-)

Andi

-- 
splitbrain.org
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] PSR-2 Adoption - Andreas Gohr