-
-
Couldn't load subscription status.
- Fork 4.6k
Hello psalm #21787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Hello psalm #21787
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7257793
Hello psalm
kesselb 8b3b5ae
Add stubs for phpseclib
kesselb fd6cdbc
Add template functions
kesselb 6ba55d7
Add psalm as composer dependency
kesselb dd721fc
Fix: UndefinedFunction Function x does not exist in templates
kesselb 87d738d
Exclude stubs from code style check
kesselb 238f181
Suppress warning for $_ and $l
kesselb 568e1f6
Remove directory/file element.
kesselb fe3a628
Supress UndefinedGlobalVariable for register_command.php
kesselb 90aa451
Fix variable name for referenced variable.
kesselb 8d18f0a
Suppress warning for template functions.
kesselb 4efca69
Add psalm baseline
MorrisJobke 80056e0
Add a check for fixes in the psalm baseline
MorrisJobke b70792a
Add stubs for gd, intl, IntlChar, ldap, redis_cluster and xsl
MorrisJobke c6b251c
Add patches for stubs
MorrisJobke 42bb6cd
Check only the baseline.xml and exclude the psalm.xml from the file c…
MorrisJobke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,25 @@ | ||
| name: Static code analysis | ||
|
|
||
| on: [pull_request] | ||
|
|
||
| jobs: | ||
| static-code-analysis: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Checkout submodules | ||
| shell: bash | ||
| run: | | ||
| auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
| git submodule sync --recursive | ||
| git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | ||
| - name: Remove composer.json | ||
| shell: bash | ||
| run: rm composer.json composer.lock | ||
| - name: Psalm | ||
| uses: docker://jakzal/phpqa:php7.4-alpine | ||
| with: | ||
| args: psalm --monochrome --no-progress --output-format=text --update-baseline | ||
| - name: Check for changes in Psalm baseline | ||
| run: | | ||
| bash -c "[[ ! \"`git status --porcelain build/psalm-baseline.xml`\" ]] || ( echo 'Uncommited changes in Psalm baseline' && git status && git diff && exit 1 )" |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -70,6 +70,7 @@ | |
| 'ocs', | ||
| 'package-lock.json', | ||
| 'package.json', | ||
| 'psalm.xml', | ||
| 'public.php', | ||
| 'README.md', | ||
| 'remote.php', | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need psalm baseline here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No - because it's in the
build/folder which is deleted already. Only new files in the root need to be checked if the release script should either delete them or keep them. I went for the "delete the psalm.xml in the release" way. :)