firefly-iii/.ci/phpstan.neon

64 lines
2.8 KiB
Plaintext
Raw Normal View History

parameters:
2024-07-31 06:09:55 -05:00
scanFiles:
- ../_ide_helper_models.php
2023-10-29 11:41:14 -05:00
universalObjectCratesClasses:
- Illuminate\Database\Eloquent\Model
2023-11-05 03:16:53 -06:00
# TODO: slowly remove these parameters and fix the issues found.
2023-10-29 11:41:14 -05:00
reportUnmatchedIgnoredErrors: false
2020-07-31 08:12:26 -05:00
ignoreErrors:
2023-11-05 03:16:53 -06:00
# TODO: slowly remove these exceptions and fix the issues found.
2023-11-05 02:40:45 -06:00
- '#Dynamic call to static method#' # all the Laravel ORM things depend on this.
2023-11-28 10:18:31 -06:00
- '#Control structures using switch should not be used.#' # switch is fine in some cases.
2023-11-04 05:31:14 -05: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 08:34:36 -05:00
- '#is not allowed to extend#'
2024-07-31 06:09:55 -05:00
- '#does not specify its types#'
2023-11-04 11:41:28 -05:00
- '#switch is forbidden to use#'
2022-10-30 08:34:36 -05:00
- '#is neither abstract nor final#'
- '#on left side of \?\?\= always exists and is not nullable#'
2023-11-28 10:18:31 -06:00
- '#has a nullable return type declaration#' # perhaps throw errors instead?
- '#with a nullable type declaration#' # decide what action should be if param is null.
2022-12-30 13:25:04 -06:00
- '#with null as default value#'
2023-10-29 11:41:14 -05: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 13:25:04 -06:00
-
message: '#but containers should not be injected#'
paths:
- ../app/Support/Authentication/RemoteUserGuard.php
2022-10-30 08:34:36 -05:00
-
2023-11-05 01:28:05 -06:00
message: '#Function compact\(\) should not be used#' # too useful in template rendering.
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-03 23:11:05 -05:00
- ../app/Http/Controllers/Account/*.php
- ../app/Http/Controllers/Admin/*.php
- ../app/Http/Controllers/*.php
2022-12-30 13:25:04 -06: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 13:25:04 -06:00
- ../config
- ../bootstrap/app.php
2020-07-31 08:12:26 -05:00
# The level 8 is the highest level. original was 5
2023-12-02 00:05:34 -06:00
# 7 is more than enough, higher just leaves NULL things.
2023-11-28 10:18:31 -06:00
level: 7
2022-12-31 08:54:55 -06:00