Skip to content

Commit

Permalink
Add CI indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Dec 13, 2019
1 parent c83ffb6 commit a456585
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ php:

before_script:
- COMPOSER_MEMORY_LIMIT=2G composer install --no-interaction
script: vendor/bin/phpunit
script:
- vendor/bin/phpunit
- composer analyse
3 changes: 3 additions & 0 deletions ecs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
sets:
- 'symfony'
12 changes: 12 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
parameters:
excludes_analyse:
- %rootDir%/../../../public/main/admin/db.php
- %rootDir%/../../../public/main/extra/*
- %rootDir%/../../../public/main/cron/*
- %rootDir%/../../../public/main/inc/lib/pear/*
- %rootDir%/../../../public/main/inc/lib/nusoap/*
- %rootDir%/../../../public/main/inc/lib/search/*
- %rootDir%/../../../public/main/webservices/*
- %rootDir%/../../../src/CoreBundle/Migrations/Schema/*
- %rootDir%/../../../tests/*
level: max
55 changes: 55 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<psalm
totallyTyped="false"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>

<issueHandlers>
<LessSpecificReturnType errorLevel="info" />

<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->

<DeprecatedMethod errorLevel="info" />
<DeprecatedProperty errorLevel="info" />
<DeprecatedClass errorLevel="info" />
<DeprecatedConstant errorLevel="info" />
<DeprecatedFunction errorLevel="info" />
<DeprecatedInterface errorLevel="info" />
<DeprecatedTrait errorLevel="info" />

<InternalMethod errorLevel="info" />
<InternalProperty errorLevel="info" />
<InternalClass errorLevel="info" />

<MissingClosureReturnType errorLevel="info" />
<MissingReturnType errorLevel="info" />
<MissingPropertyType errorLevel="info" />
<InvalidDocblock errorLevel="info" />
<MisplacedRequiredParam errorLevel="info" />

<PropertyNotSetInConstructor errorLevel="info" />
<MissingConstructor errorLevel="info" />
<MissingClosureParamType errorLevel="info" />
<MissingParamType errorLevel="info" />

<RedundantCondition errorLevel="info" />

<DocblockTypeContradiction errorLevel="info" />
<RedundantConditionGivenDocblockType errorLevel="info" />

<UnresolvableInclude errorLevel="info" />

<RawObjectIteration errorLevel="info" />

<InvalidStringClass errorLevel="info" />
</issueHandlers>
</psalm>

0 comments on commit a456585

Please sign in to comment.