Files
firefly-iii/.ci/phpstan.neon

81 lines
3.6 KiB
Plaintext
Raw Normal View History

parameters:
2023-10-29 17:41:14 +01:00
universalObjectCratesClasses:
- Illuminate\Database\Eloquent\Model
reportUnmatchedIgnoredErrors: false
2023-11-04 11:31:14 +01:00
checkGenericClassInNonGenericObjectType: false # remove this rule when all other issues are solved.
2020-07-31 15:12:26 +02:00
ignoreErrors:
2023-11-04 17:41:28 +01:00
- '#Use value object over return of values#' # from simplify, ignore it.
- '#Use explicit names over dynamic ones#' # from simplify, ignore it.
- '#Use unique name to make classes easy to recognize#'
- '#Do not name "e", shorter than 2 chars#'
- '#Do not name "q", shorter than 2 chars#'
2023-11-04 11:31:14 +01:00
- '#with no value type specified in iterable type array#' # remove this rule when all other issues are solved.
- '#has no value type specified in iterable type array#' # remove this rule when all other issues are solved.
2022-10-30 14:34:36 +01:00
- '#is not allowed to extend#'
2023-11-04 17:41:28 +01:00
- '#switch is forbidden to use#'
2022-10-30 14:34:36 +01:00
- '#is neither abstract nor final#'
- '#has a nullable return type declaration#'
- '#with a nullable type declaration#'
2022-12-30 20:25:04 +01:00
- '#with null as default value#'
2022-12-31 15:54:55 +01:00
- '#is not covariant with PHPDoc type array#'
2023-10-29 17:41:14 +01:00
-
message: '#Constructor in [a-zA-Z0-9\\_]+ has parameter \$[a-zA-Z0-9\\_]+ with default value#'
paths:
- ../app/Exceptions/IntervalException.php
- ../app/Support/Navigation.php
2022-12-30 20:25:04 +01:00
-
message: '#but containers should not be injected#'
paths:
- ../app/Support/Authentication/RemoteUserGuard.php
2022-10-30 14:34:36 +01:00
-
message: '#Control structures using switch should not be used.#'
2022-10-31 05:39:22 +01:00
paths:
- ../app/Api/V1/Controllers/Data/DestroyController.php
- ../app/Console/Commands/Correction/FixAccountTypes.php
2022-10-31 05:50:44 +01:00
- ../app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php
- ../app/Exceptions/GracefulNotFoundHandler.php
2022-11-04 05:11:05 +01:00
- ../app/Generator/Webhook/StandardMessageGenerator.php
2022-12-30 20:25:04 +01:00
- ../app/Support/Amount.php
- ../app/Support/Navigation.php
- ../app/Support/ParseDateString.php
- ../app/Support/Search/AccountSearch.php
- ../app/Support/Search/OperatorQuerySearch.php
- ../app/Support/Twig/General.php
- ../app/Transformers/RecurrenceTransformer.php
- ../app/Validation/AccountValidator.php
- ../app/Validation/RecurrenceValidation.php
- ../app/Validation/TransactionValidation.php
-
message: '#Function compact\(\) should not be used#'
paths:
- ../app/Generator/Report/Account/MonthReportGenerator.php
- ../app/Generator/Report/Audit/MonthReportGenerator.php
- ../app/Generator/Report/Budget/MonthReportGenerator.php
- ../app/Generator/Report/Category/MonthReportGenerator.php
- ../app/Generator/Report/Standard/MonthReportGenerator.php
- ../app/Generator/Report/Standard/MultiYearReportGenerator.php
- ../app/Generator/Report/Standard/YearReportGenerator.php
- ../app/Generator/Report/Tag/MonthReportGenerator.php
2022-11-04 05:11:05 +01:00
- ../app/Http/Controllers/Account/*.php
- ../app/Http/Controllers/Admin/*.php
- ../app/Http/Controllers/*.php
2022-12-30 20:25:04 +01:00
- ../app/Support/ExpandedForm.php
- ../app/Support/Form/AccountForm.php
- ../app/Support/Form/CurrencyForm.php
- ../app/Support/Form/FormSupport.php
-
message: '#Either catch a more specific exception#'
paths:
- ../app/Support/Form/FormSupport.php
paths:
- ../app
- ../database
- ../routes
2022-12-30 20:25:04 +01:00
- ../config
- ../bootstrap/app.php
2020-07-31 15:12:26 +02:00
# The level 8 is the highest level. original was 5
2023-11-04 17:41:28 +01:00
level: 1
2022-12-31 15:54:55 +01:00