Skip to content
On this page

taqwim Preset

Rules under this preset:

blank-linesfixable

Enforce consistent linebreak spaces

compatibility

Ensure that implemented features are compatible with the set version of PHP

id-length

Ensure that identifiers are at within the length limit.

inline-config

Check that inline config is only used in block comments. Also check that the inline config is valid JSON.

max-lines

Ensure that certain structure have line limit

no-mixed-spaces-and-tabs

Disallow mixing spaces and tabs for indentation

no-nested-ternaryfixable

Ensure that ternary statements are not nested

object-members-limit

Ensure that objects in PHP have a maximum number of members

prefer-interpolationfixable

Ensure interpolation is used instead of concatenation

prefer-single-quotesfixable

Ensure that double quotes are converted to single quotes where possible

type-checkfixable

Check that type checks use three equal signs

array.comma-danglefixable

Ensure that trailing commas are consistent in arrays

array.syntaxfixable

Ensure that array syntax is consistent

method.ban

Ensure that certain function are not called in the code

method.break-parameters

Break parameters into multiple lines if the line exceeds the maximum length

method.complexity

Ensures that the cyclomatic complexity of functions/methods is withing limit.

method.max-depth

Ensure that nesting level of a method or function does not exceed a specified limit

method.max-parameters

Ensure that a method or function does not have too many parameters

usegroup.scopefixable

Ensure consistent state of use group

Released under the MIT License.