1
Mamba
XOOPS Plugin for PhpStorm 1.0 Alpha 5 Released

Resized Image


XOOPS Support Plugin for PhpStorm: Alpha 5 is here

XOOPS Support Plugin brings XOOPS CMS knowledge into PhpStorm and IntelliJ IDEA: it finds the mistakes that break XOOPS modules and fixes most of them with one Alt+Enter. It covers XOOPS 2.5, 2.7, and the upcoming XOOPS 2.8 and 4.0, for Core and module development.

Fewer false positives, found on three newbb trees, each checked against the module source and pinned with a fixture.

  1. InstallSql and SqlFileComment check only the file the installer runs: the one an active $modversion['sqlfile'] entry names, or sql/mysql.sql when none is named. Database dumps and old upgrade scripts beside it are no longer reported, and an entry set to false switches the check off.
  2. DeprecatedCoreApi no longer reports a module handler's own synchronization().
  3. Unlink accepts an SplFileInfo check (isFile() before getRealPath() / getPathname(), isLink() before getPathname()).
  4. UnregisteredTemplate and MissingRegisteredTemplate skip test trees.
  5. MenuAutoload inserts the require above declare(strict_types=1) and leaves a bootstrap.php that already loads the autoloader alone.
  6. New INSPECTIONS.md lists all 52 inspections with default level, quick-fix and when each stays silent. The UpdateCreatesTable description is rewritten in plain words.


Getting started

Install the plugin and open a XOOPS project. Detection is automatic. You can set the Core Version and other options under Settings → Languages & Frameworks → XOOPS Support, and the inspections are listed under Settings → Editor → Inspections → XOOPS. The plugin installs and updates without an IDE restart.

Source, documentation and issues on GitHub
Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs

2
Mamba
Re: XOOPS Plugin for PhpStorm 1.0 Alpha 5 Released

Short name Level Default Quick-fix Section
XoopsAllowlistAnchor Warning on yes Security
XoopsAttributeEscape Warning on yes Security
XoopsCsrf Warning on yes Security
XoopsDynamicCode Error on no Security
XoopsGuestUser Warning on yes Security
XoopsLegacySuperglobal Error on yes Security
XoopsOrderBy Warning on no Security
XoopsPathContainment Warning on no Security
XoopsSmartyRequestEscape Warning on yes Security
XoopsSqlConcat Warning on no Security
XoopsSuperglobal Weak warning on yes Security
XoopsUnserialize Warning on yes Security
XoopsWeakToken Warning on yes Security
XoopsDeprecatedDbApi Warning on yes Database
XoopsInstallSql Warning on no Database
XoopsQueryExec Warning on yes Database
XoopsResultSetGuard Weak warning on yes Database
XoopsSqlComment Error on yes Database
XoopsSqlFileComment Error on yes Database
XoopsUpdateCreatesTable Warning on no Database
XoopsByRefArgument Warning on no Module files and bootstrap
XoopsDoubleCpHeader Error on Alt+Enter only Module files and bootstrap
XoopsFileHeader Weak warning on yes Module files and bootstrap
XoopsFormLoader Warning on yes Module files and bootstrap
XoopsHandlerSignature Error on no Module files and bootstrap
XoopsHttpStatus Weak warning on yes Module files and bootstrap
XoopsIncludeOnceHeader Weak warning on yes Module files and bootstrap
XoopsIsFileAsset Weak warning on yes Module files and bootstrap
XoopsLocalXoopsOption Warning on yes Module files and bootstrap
XoopsMenuAutoload Error on yes Module files and bootstrap
XoopsPreloadGlobal Warning on no Module files and bootstrap
XoopsRootPathGuard Weak warning on yes Module files and bootstrap
XoopsSetcookie Weak warning on yes Module files and bootstrap
XoopsStrictCalendarCast Warning on yes Module files and bootstrap
XoopsUnlink Weak warning on no Module files and bootstrap
XoopsMissingRegisteredTemplate Warning on yes Templates and Smarty
XoopsSmarty5Api Warning on yes Templates and Smarty
XoopsSmarty5TemplatePrep Weak warning off no Templates and Smarty
XoopsSmartyBlockShorthand Warning on yes Templates and Smarty
XoopsSmartyDateFormatStrftime Warning on yes Templates and Smarty
XoopsSmartyForeachItemShadowsFrom Error on yes Templates and Smarty
XoopsSmartyRemovedTag Error on yes Templates and Smarty
XoopsSmartyUnquotedPluginArg Error on yes Templates and Smarty
XoopsUnregisteredTemplate Weak warning on Alt+Enter only Templates and Smarty
XoopsWrongSmartyDelimiter Error on yes Templates and Smarty
XoopsDuplicateDefine Warning on yes Language files
XoopsLanguageLoad Weak warning off no Language files
XoopsLanguageRole Weak warning on no Language files
XoopsLocaleConstant Warning on no Language files
XoopsThemeConstant Weak warning on no Language files
XoopsDeprecatedCoreApi Warning on yes Deprecated APIs
XoopsDoubleEncodedAmp Error on yes Deprecated APIs
Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs