Skip to content

Commit

Permalink
added config for Phan (Static Analyser), referencing https://github.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Dec 22, 2016
1 parent 909a338 commit 3f930d6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .phan/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* Phan Configuration
*
* This configuration will overlaid on top of the default configuration.
* Command line arguments will be applied after this file is read.
* See Config for all configurable options.
*
* @link https://github.com/etsy/phan
* @see src/Phan/Config.php
*/
return [
// whitelist
'directory_list' => [ '.', 'test', 'extensions'],
// blacklist
'exclude_analysis_directory_list' => [ './vendor', '.\vendor', 'vendor/', 'doc/', 'packages/', 'tutorials/'],
// suppression
'suppress_issue_types' => [ 'PhanUndeclaredClassMethod'],
// checks
'allow_missing_properties' => false,
'analyze_signature_compatibility' => true,
'backward_compatibility_checks' => true,
'dead_code_detection' => true,
'ignore_undeclared_variables_in_global_scope' => false,
'minimum_severity' => 10,
'null_casts_as_any_type' => true,
'quick_mode' => false,
'scalar_implicit_cast' => true,
'should_visit_all_nodes' => true,
];
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
**currently working on: fixing mock objects & references**

### Changes
* added configuration file for Phan (Static Analyzer)
* HtmlReporter: renamed $character_set to $charset and set "utf-8" as default charset
* cleanup of reference handling
- removed explicit assign-new-object-by-reference ampersands
Expand Down

0 comments on commit 3f930d6

Please sign in to comment.