Add phan configuration for static analysis
Bug: T179554 Change-Id: I587285fb3687541233156e19e24cd448e9a7976a
This commit is contained in:
parent
971a0bdfa9
commit
0363a54bf4
|
@ -22,6 +22,7 @@ sftp-config.json
|
|||
/docs
|
||||
/node_modules
|
||||
/vendor
|
||||
/tests/phan/issues
|
||||
|
||||
# Operating systems
|
||||
## Mac OS X
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "18.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1"
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
*/
|
||||
|
||||
$cfg = require __DIR__ . '/../../vendor/mediawiki/mediawiki-phan-config/src/config.php';
|
||||
|
||||
// phan doesn't support @inheritDoc yet
|
||||
$cfg['suppress_issue_types'][] = 'PhanParamSignatureMismatch';
|
||||
|
||||
return $cfg;
|
Loading…
Reference in New Issue