HELP
This commit is contained in:
parent
c6664a7597
commit
e05e9553f5
1250 changed files with 23379 additions and 147730 deletions
18
mago.toml
18
mago.toml
|
|
@ -3,8 +3,8 @@ php-version = "8.4.0"
|
|||
[source]
|
||||
excludes = ["web/wp/wp-admin/includes/noop.php"]
|
||||
extensions = ["php"]
|
||||
includes = ["config", "vendor", "web/app/plugins", "web/vendor", "web/wp"]
|
||||
paths = ["web/app/themes/haiku-atelier-2024/"]
|
||||
includes = ["config", "vendor", "web/app/plugins", "web/wp"]
|
||||
paths = ["web/app/themes/haiku-atelier-2024"]
|
||||
|
||||
[formatter]
|
||||
# Brace style for classes, traits, etc.
|
||||
|
|
@ -24,7 +24,7 @@ php-version = "8.4.0"
|
|||
# Prefer single quotes over double quotes for strings.
|
||||
single-quote = true
|
||||
# Number of spaces per indentation level.
|
||||
tab-width = 4
|
||||
tab-width = 2
|
||||
# Add a trailing comma to multi-line arrays, parameter lists, etc.
|
||||
trailing-comma = true
|
||||
# Use tabs instead of spaces for indentation.
|
||||
|
|
@ -52,7 +52,7 @@ php-version = "8.4.0"
|
|||
# Preserve existing line breaks in attribute lists.
|
||||
preserve-breaking-attribute-list = false
|
||||
# Preserve existing line breaks in ternary expressions.
|
||||
preserve-breaking-conditional-expression = false
|
||||
preserve-breaking-conditional-expression = true
|
||||
# Always break parameter lists with promoted properties.
|
||||
break-promoted-properties-list = true
|
||||
# Place the binary operator on the next line when breaking.
|
||||
|
|
@ -64,11 +64,11 @@ php-version = "8.4.0"
|
|||
# Use table-style alignment for arrays.
|
||||
array-table-style-alignment = true
|
||||
# Sort use statements alphabetically.
|
||||
sort-uses = true
|
||||
sort-uses = false
|
||||
# Insert a blank line between different types of use statements.
|
||||
separate-use-types = true
|
||||
separate-use-types = false
|
||||
# Expand grouped use statements into individual statements.
|
||||
expand-use-groups = true
|
||||
expand-use-groups = false
|
||||
# How to format null type hints (null|T vs ?T).
|
||||
null-type-hint = "null_pipe"
|
||||
# Add parentheses around new in member access ((new Foo)->bar()).
|
||||
|
|
@ -82,6 +82,8 @@ php-version = "8.4.0"
|
|||
# Add a space before arrow function parameters.
|
||||
space-before-arrow-function-parameter-list-parenthesis = false
|
||||
|
||||
excludes = ["vendor"]
|
||||
|
||||
[linter]
|
||||
integrations = ["wordpress"]
|
||||
|
||||
|
|
@ -89,9 +91,11 @@ php-version = "8.4.0"
|
|||
ambiguous-function-call = { enabled = true }
|
||||
halstead = { effort-threshold = 7000 }
|
||||
literal-named-argument = { enabled = false }
|
||||
no-else-clause = { enabled = false }
|
||||
no-redundant-readonly = { enabled = true }
|
||||
no-redundant-use = { enabled = true }
|
||||
no-variable-variable = { enabled = true }
|
||||
tagged-todo = { enabled = false }
|
||||
|
||||
[analyzer]
|
||||
allow-possibly-undefined-array-keys = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue