Commit Graph

20 Commits

Author SHA1 Message Date
Andreas Gohr 257be26ca1 code style: multi statements 2023-08-31 22:47:18 +02:00
Andreas Gohr d4f83172d9 code style: line breaks 2023-08-31 22:44:40 +02:00
Andreas Gohr fe15e2c063 code style: static visibility 2023-08-31 22:42:02 +02:00
Andreas Gohr 90fb952c4c code style: operator spacing 2023-08-31 22:38:07 +02:00
Andreas Gohr 7a08a8bc85 code style: inc/dec spacing 2023-08-31 22:24:16 +02:00
Andreas Gohr 62ad2d27a5 code style: control structure fixes 2023-08-31 22:22:22 +02:00
Andreas Gohr 4b230b99ca code style: indent fixes 2023-08-31 22:09:41 +02:00
Andreas Gohr 7d34963b3e coding style: control flow line breaks 2023-08-31 15:04:10 +02:00
Andreas Gohr 177d6836e2 coding style: control flow whitespaces 2023-08-31 14:22:35 +02:00
Andreas Gohr dccd6b2bba coding style: function call spacing 2023-08-30 18:41:45 +02:00
Andreas Gohr b2c8ab4769 coding style: loop declaration spacing 2023-08-30 18:27:09 +02:00
Andreas Gohr 73022918a9 coding style: PSR12.Classes.ClassInstantiation.MissingParentheses 2023-08-30 18:25:29 +02:00
Andreas Gohr ed823bcd0f codestyle adjustments: PHP constant casing 2023-08-30 17:12:00 +02:00
Andreas Gohr 316e3ee67c codestyle adjustments: EOF new lines 2023-08-30 17:10:30 +02:00
Andreas Gohr d868eb89f1 codestyle adjustments: function declaration braces/spaces 2023-08-30 17:09:14 +02:00
Andreas Gohr 8c7c53b032 codestyle adjustments: class declaration braces 2023-08-30 17:05:28 +02:00
Andreas Gohr c1482d1c08 codestyle adjustments: function argument spacing 2023-08-30 17:03:06 +02:00
Andreas Gohr 74981a4e68 apply PSR-12 constant visibility rule
PSR-12 says constants need their visibility declared from PHP 7.1
onwards
2023-08-30 13:02:49 +02:00
Andreas Gohr b0265d201d ignore another PSR12 style check for now 2021-12-14 18:09:23 +01:00
Michael Große 36faf6960d
Split out temporary code style excludes
Splitting them out allows for plugins to use _test/phpcs.xml as the
basis for their own linting without having an overly permissive coding
standard.
Also, this makes it more obvious and painful that these are just
intended as temporary exceptions and should be actually fixed.

The rule `Generic.ControlStructures.InlineControlStructure.NotAllowed`
has its comment adjust to make it clear that this is an intended
deviation from the PSR-2/PSR-12 coding standard.

The rule `PSR1.Classes.ClassDeclaration.MissingNamespace` has to remain
in the DokuWiki coding standard as the plugin base classes can currently
not reasonably be in namespaces.
2020-02-19 10:55:56 +01:00