aboutsummaryrefslogblamecommitdiffstats
path: root/.phpcs.xml
blob: b1b08f88ef58e16d80d5a9686662cc7c0171eac1 (plain) (tree)













































                                                                                                                                
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
	<description>PHP CodeSniffer config for Hubzilla</description>

	<file>boot.php</file>
	<file>index.php</file>
	<file>app</file>
	<file>include</file>
	<file>install</file>
	<file>library</file>
	<file>tests</file>
	<file>util</file>
	<file>vendor</file>
	<file>view</file>
	<file>Zotlabs</file>

	<rule ref="Generic">
		<exclude name="Generic.Arrays.ArrayIndent"/>
		<exclude name="Generic.Arrays.DisallowLongArraySyntax"/>
		<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
		<exclude name="Generic.Files.EndFileNoNewline"/>
		<exclude name="Generic.Files.LowercasedFilename"/>
		<exclude name="Generic.Formatting.MultipleStatementAlignment"/>
		<exclude name="Generic.Formatting.SpaceAfterNot"/>
		<exclude name="Generic.Functions.FunctionCallArgumentSpacing"/>
		<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
		<exclude name="Generic.NamingConventions.CamelCapsFunctionName"/>
		<exclude name="Generic.PHP.ClosingPHPTag"/>
		<exclude name="Generic.PHP.RequireStrictTypes"/>
		<exclude name="Generic.PHP.UpperCaseConstant"/>
		<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
		<exclude name="Generic.WhiteSpace.ScopeIndent"/>
	</rule>

	<!--
		Warn about lines longer than 120 columns, lines longer than 150
		columns will flag an error.
	-->
	<rule ref="Generic.Files.LineLength">
		<properties>
			<property name="lineLimit" value="100" />
			<property name="absoluteLineLimit" value="150" />
		</properties>
	</rule>

</ruleset>