kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

GeneratePHPDoc not working #63

Closed buttflattery closed 1 year ago

buttflattery commented 5 years ago

GeneratePHPDoc seems to be generating the comments tag for the class properties when you have class with 700 lines having the class properties around 36 including private, public and const, You can use this class to regenerate, on the other hand, if I create a new class and define a few properties and press save or format it does add the docblocks for public and private properties only and not the const

Neither it formats the code, apart from the problem stated above.

The settings i have currently are

"phpfmt.php_bin": "php",
"phpfmt.passes": [
        "AlignPHPCode",
        // "AllmanStyleBraces",
        "AlignTypeHint",
        "AddMissingParentheses",
        "DocBlockToComment",
        "GeneratePHPDoc",
        "IndentTernaryConditions",
        "JoinToImplode",
        "OrganizeClass",
        "OnlyOrderUseClauses",
        // "PrettyPrintDocBlocks",
        "PSR2KeywordsLowerCase",
        "PSR2LnAfterNamespace",
        "PSR2CurlyOpenNextLine",
        "PSR2ModifierVisibilityStaticOrder",
        "PSR2SingleEmptyLineAndStripClosingTag",
        "ReindentSwitchBlocks",
        "RemoveUseLeadingSlash",
        "StripExtraCommaInArray"
    ],
    "phpfmt.exclude": [
        "ReindentComments",
        "StripNewlineWithinClassBody"
    ],
    "phpfmt.psr2": false,

About

OS Windows 10

Vscode Version: 1.29.1 (system setup) Commit: bc24f98b5f70467bc689abf41cc5550ca637088e Date: 2018-11-15T19:13:36.375Z Electron: 2.0.12 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 Architecture: x64