aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-29 01:36:37 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-10-29 01:36:37 +0100
commit99fccb6f19e3945156ba74b67602a4a5b88e7434 (patch)
treeb8b1c42680288658272ff4a37a34e7b8f4f83097 /build
parent5b6608312081624d9b46fce47183c2f65fd0361b (diff)
downloadforums-99fccb6f19e3945156ba74b67602a4a5b88e7434.tar
forums-99fccb6f19e3945156ba74b67602a4a5b88e7434.tar.gz
forums-99fccb6f19e3945156ba74b67602a4a5b88e7434.tar.bz2
forums-99fccb6f19e3945156ba74b67602a4a5b88e7434.tar.xz
forums-99fccb6f19e3945156ba74b67602a4a5b88e7434.zip
[task/code-sniffer] Cleanup code sniffer ruleset files.
PHPBB3-11980
Diffstat (limited to 'build')
-rw-r--r--build/code_sniffer/ruleset-php-legacy.xml4
-rw-r--r--build/code_sniffer/ruleset-php-strict.xml4
2 files changed, 3 insertions, 5 deletions
diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml
index ebc85c4fef..ed8c7e98a0 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -7,9 +7,7 @@
<!-- The body of each structure MUST be enclosed by braces. -->
<rule ref="Generic.ControlStructures.InlineControlStructure" />
-
- <!-- All PHP files MUST end with a single blank line. -->
-
+
<!-- Class constants MUST be declared in all upper case with underscore separators. -->
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />
diff --git a/build/code_sniffer/ruleset-php-strict.xml b/build/code_sniffer/ruleset-php-strict.xml
index 8580090c69..65b6763c57 100644
--- a/build/code_sniffer/ruleset-php-strict.xml
+++ b/build/code_sniffer/ruleset-php-strict.xml
@@ -24,13 +24,13 @@
<!-- There MUST NOT be trailing whitespace at the end of lines. -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
-
+
<!-- There MUST NOT be whitespace before the first content of a file -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile" />
<!-- There MUST NOT be whitespace after the last content of a file -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile" />
-
+
<!-- Functions MUST NOT contain multiple empty lines in a row -->
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />