Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-27 09:53:56 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-11-27 09:53:56 +0300
commitc930f70b52d4a52ffd7034f9bf46cbc799e9aa31 (patch)
treece3b1ff621b4e726af76bdab5e5dce76c6ddd512 /build
parent645fc993c245f198a2da26aea0619e840eef3f3e (diff)
Harden phan checks to catch more errors
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'build')
-rw-r--r--build/.phan/config.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/.phan/config.php b/build/.phan/config.php
index 47bcb87acdd..1bdaddc0e05 100644
--- a/build/.phan/config.php
+++ b/build/.phan/config.php
@@ -106,32 +106,32 @@ return [
// an analysis. You should consider setting this
// to true only when you wish you had more issues
// to fix in your code base.
- 'quick_mode' => true,
+ 'quick_mode' => false,
// If enabled, check all methods that override a
// parent method to make sure its signature is
// compatible with the parent's. This check
// can add quite a bit of time to the analysis.
- 'analyze_signature_compatibility' => false,
+ 'analyze_signature_compatibility' => true,
// The minimum severity level to report on. This can be
// set to Issue::SEVERITY_LOW, Issue::SEVERITY_NORMAL or
// Issue::SEVERITY_CRITICAL. Setting it to only
// critical issues is a good place to start on a big
// sloppy mature code base.
- 'minimum_severity' => 10,
+ 'minimum_severity' => \Phan\Issue::SEVERITY_CRITICAL,
// If true, missing properties will be created when
// they are first seen. If false, we'll report an
// error message if there is an attempt to write
// to a class property that wasn't explicitly
// defined.
- 'allow_missing_properties' => true,
+ 'allow_missing_properties' => false,
// Allow null to be cast as any type and for any
// type to be cast to null. Setting this to false
// will cut down on false positives.
- 'null_casts_as_any_type' => true,
+ 'null_casts_as_any_type' => false,
// Allow null to be cast as any array-like type (Requires 0.9.3+)
// This is an incremental step in migrating away from null_casts_as_any_type.