-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christoph Wurst <[email protected]>
- Loading branch information
1 parent
976e53d
commit 49e6bd2
Showing
19 changed files
with
2,435 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This workflow is provided via the organization template repository | ||
# | ||
# https://github.com/nextcloud/.github | ||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
|
||
name: Static analysis | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- stable* | ||
|
||
concurrency: | ||
group: psalm-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
static-analysis: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
# do not stop on another job's failure | ||
fail-fast: false | ||
matrix: | ||
ocp-version: [ 'dev-master', 'dev-stable27', 'dev-stable26', 'dev-stable25' ] | ||
|
||
name: Nextcloud ${{ matrix.ocp-version }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
|
||
- name: Set up php | ||
uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # v2 | ||
with: | ||
php-version: 8.0 | ||
coverage: none | ||
ini-file: development | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: composer i | ||
|
||
- name: Install dependencies | ||
run: composer require --dev nextcloud/ocp:${{ matrix.ocp-version }} --ignore-platform-reqs --with-dependencies | ||
|
||
- name: Run coding standards check | ||
run: composer run psalm | ||
|
||
summary: | ||
runs-on: ubuntu-latest | ||
needs: static-analysis | ||
|
||
if: always() | ||
|
||
name: static-psalm-analysis-summary | ||
|
||
steps: | ||
- name: Summary status | ||
run: if ${{ needs.static-analysis.result != 'success' }}; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="4" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config" | ||
errorBaseline="tests/psalm-baseline.xml" | ||
findUnusedBaselineEntry="true" | ||
findUnusedCode="false" | ||
> | ||
<projectFiles> | ||
<directory name="lib" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
<directory name="vendor-bin" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
<extraFiles> | ||
<directory name="vendor" /> | ||
<directory name="vendor/nextcloud/ocp" /> | ||
</extraFiles> | ||
<issueHandlers> | ||
<UndefinedClass> | ||
<errorLevel type="suppress"> | ||
<referencedClass name="Doctrine\DBAL\Platforms\MySQLPlatform" /> | ||
<referencedClass name="Doctrine\DBAL\Platforms\PostgreSQL94Platform" /> | ||
<referencedClass name="Doctrine\DBAL\Platforms\SqlitePlatform" /> | ||
<referencedClass name="Doctrine\DBAL\Types\Type" /> | ||
<referencedClass name="Doctrine\DBAL\Types\Types" /> | ||
<referencedClass name="OC\Security\CSP\ContentSecurityPolicyNonceManager" /> | ||
<referencedClass name="Psr\Http\Client\ClientExceptionInterface" /> | ||
<referencedClass name="Sabre\VObject\Component\VCalendar" /> | ||
<referencedClass name="Symfony\Component\HttpFoundation\IpUtils" /> | ||
<referencedClass name="Symfony\Component\Console\Command\Command" /> | ||
<referencedClass name="Symfony\Component\Console\Input\InputArgument" /> | ||
<referencedClass name="Symfony\Component\Console\Input\InputInterface" /> | ||
<referencedClass name="Symfony\Component\Console\Input\InputOption" /> | ||
<referencedClass name="Symfony\Component\Console\Output\OutputInterface" /> | ||
</errorLevel> | ||
</UndefinedClass> | ||
<UndefinedDocblockClass> | ||
<errorLevel type="suppress"> | ||
<referencedClass name="Doctrine\DBAL\Driver\Statement" /> | ||
<referencedClass name="Doctrine\DBAL\Platforms\AbstractPlatform" /> | ||
<referencedClass name="Doctrine\DBAL\Schema\Schema" /> | ||
<referencedClass name="Doctrine\DBAL\Schema\SchemaException" /> | ||
<referencedClass name="Doctrine\DBAL\Schema\Table" /> | ||
<referencedClass name="OC\Security\CSP\ContentSecurityPolicyNonceManager" /> | ||
<referencedClass name="Symfony\Component\Console\Output\OutputInterface" /> | ||
</errorLevel> | ||
</UndefinedDocblockClass> | ||
</issueHandlers> | ||
</psalm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.