Skip to content

Commit

Permalink
Tighten test level to maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Jul 12, 2020
1 parent 3202440 commit b5d95b5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions vendor/bin/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ parameters:
- %rootDir%/../../../../tki/vendor/*
- %rootDir%/../../../../tki/templates/*
- %rootDir%/../../../../tki/classes/Db.php
- %rootDir%/../../../../tki/classes/CheckDefenses.php # Bunch of intractable errors - maybe in the future
ignoreErrors:
- '#Access to an undefined property Tki#'
- '#Variable property access#' #// In (class) Reg, File, and in create_universe/10, this flags an error during the config variable/value import code.
- '#Undefined variable#' #// ~86 errors
- '# might not be defined#' #// 4100+ errors - lots of work to do, real errors too.
- '# with no typehint #' # At error level 5-6, this comes back
- '# has no return typehint specified#' # At error level 5-6, this comes back
- '# only iterables are supported#' # Level 8
- '# might not be defined#' # Level 1 to 8 - 4100+ errors - lots of work to do, real errors too.
- '#Variable property access#' # Level 1 - In (class) Reg, File, and in create_universe/10, this flags an error during the config variable/value import code.
- '#Access to an undefined property Tki#' # Level 2 - 357 errors - All of these will not go away unless we switch away from tkireg being dynamic-only.
- '# with no typehint #' # Level 6 - 16 errors - Mostly related to $db (non-pdo), but a few that are not.
- '# only iterables are supported#' # Level 7 - 5 errors in 4 files, all should be replaced with pdo/db migration
- '# does not exist on array#' # Level 7 - 16 errors - All in classes/Ownership.php for id/type
- '#function array_merge_recursive expects array#' # Level 7 - 1 error - in classes/Smarty.php

rules:
- PHPStan\Rules\BooleansInConditions\BooleanInBooleanAndRule
Expand Down

0 comments on commit b5d95b5

Please sign in to comment.