-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- **New Features** - Added static analysis checks using Psalm in the workflow. - Introduced Psalm configuration settings. - **Chores** - Updated `.gitignore` to exclude the `/psalm` directory. - Added `vimeo/psalm` as a development dependency in `composer.json`. - **Documentation** - Introduced `phpstorm.meta.php` for better type hinting in PhpStorm. - **Refactor** - Improved type declarations and handling of dependencies and versions in asset files. - Enhanced type declaration for the `$package` variable in `plugin.php`. - **Style** - Updated annotations for internal usage and removed unnecessary PHPDoc blocks. fix: #51
- Loading branch information
Showing
10 changed files
with
82 additions
and
14 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 |
---|---|---|
|
@@ -32,3 +32,6 @@ jobs: | |
|
||
- name: Check code styles | ||
run: composer cs | ||
|
||
- name: Check Static Analysis | ||
run: composer 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/.psalm | ||
/.idea/ | ||
/.vscode/ | ||
/build/ | ||
|
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,13 @@ | ||
<?php | ||
|
||
namespace PHPSTORM_META { | ||
override( | ||
\Psr\Container\ContainerInterface::get(0), | ||
map( | ||
[ | ||
'' => '@', | ||
\Inpsyde\Modularity\Package::PROPERTIES => \Inpsyde\Modularity\Properties\Properties::class, | ||
] | ||
) | ||
); | ||
} |
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,38 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="1" | ||
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" | ||
findUnusedBaselineEntry="true" | ||
findUnusedCode="true" | ||
cacheDirectory="./.psalm" | ||
> | ||
<projectFiles> | ||
<file name="plugin.php" /> | ||
<directory name="sources/server" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
<directory name="tests" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<!-- https://github.com/vimeo/psalm/issues/5791 --> | ||
<!-- Do not stub noop.php --> | ||
<stubs> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/l10n.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/theme.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/formatting.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/kses.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/plugin.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/blocks.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/post.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/functions.wp-scripts.php"/> | ||
<file name="vendor/roots/wordpress-no-content/wp-includes/functions.wp-styles.php"/> | ||
</stubs> | ||
|
||
<extraFiles> | ||
<directory name="vendor/roots/wordpress-no-content"/> | ||
</extraFiles> | ||
</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
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