Files
marcus 2f91c3e6af WP Plugin Starter 1.0.0: a fresh start
The parts every wpallstars plugin needs: settings screen with search and an empty General tab, Read Me tab, features as classes, replaced plugins, the shared GitHub updater, release and check scripts, CI and the shared rules. scripts/rename-plugin.sh starts a new plugin; scripts/sync-core.sh keeps plugins' core files in step with this starter. Built with aidevops (https://aidevops.sh).
2026-10-03 03:30:42 +01:00

23 lines
920 B
Plaintext

# PHPStan settings for WP Plugin Starter's own files, added to phpstan.neon.dist
# (which holds the settings every plugin made from the starter shares).
# Add the plugin's own folders under paths (for example blocks) and each
# ignore with the identifier, the file and the reason.
parameters:
ignoreErrors:
# The starter has no features, tabs to rename or helpers yet:
# WPStarter_Setup's lists are empty and its methods do nothing, so
# PHPStan reads the core code that uses them as having no effect.
# A plugin made from the starter fills them and drops these ignores.
-
identifiers:
- foreach.emptyArray
- staticMethod.resultUnused
path: includes/class-wpstarter.php
-
identifier: staticMethod.resultUnused
path: admin/settings.php
-
identifier: function.impossibleType
message: '#array_key_exists\(\) with mixed and array\{\}#'
path: includes/class-wpstarter-settings.php