Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
phpstan: true
mago: true
mago-version: '1.30'
mago-version: '1.58' # # Must be kept in sync with @../../mise.toml
box: true
box-php-version: '8.5'
box-version: '4'
Expand Down
10 changes: 6 additions & 4 deletions mago.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#:schema https://mago.carthage.software/1.30.0/schema.json
#:schema https://mago.carthage.software/1.58.2/schema.json
# Welcome to Mago!
# For full documentation, see https://mago.carthage.software/1.30.0/en/tools/overview/
# For full documentation, see https://mago.carthage.software/1.58.2/en/tools/overview/
version = "1"
php-version = "8.5.0"

Expand All @@ -25,20 +25,22 @@ literal-named-argument = { enabled = false }
halstead = { effort-threshold = 7000 }

[analyzer]
excludes = ["tests/**/*.php"]
plugins = []
excludes = ["tests/"] # Doesn't work well with mockery.
find-unused-definitions = true
find-unused-expressions = true
analyze-dead-code = true
memoize-properties = true
check-throws = false
check-throws = false # Adding @throws yields little benefits.
check-dead-catch = false
unchecked-exceptions = ["Error", "LogicException"]
unchecked-exception-classes = []
check-missing-override = true
find-unused-parameters = true
strict-list-index-checks = true
strict-array-index-existence = true
allow-array-truthy-operand = false
allow-operator-overloading = false
no-boolean-literal-comparison = true
check-missing-type-hints = true
register-super-globals = true
2 changes: 1 addition & 1 deletion mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
GOFLAGS = '-mod=mod'

[tools]
mago = "1.30" # Must be kept in sync with @.github/workflows/lint.yml
mago = "1.58" # Must be kept in sync with @.github/workflows/lint.yml

[tasks.phar]
depends = ['vendor:no-dev']
Expand Down
Loading