Skip to content

One-click installer for useful tooling #24

@dereuromark

Description

@dereuromark

in the backend we should provide a one-click installer for certain useful tools to opt-in

They auto detect the paths and adjust the script before creating it for the user.
Also:

  • Allow visual diff of latest version vs status quo in app to quickly compare and see what might want to get ported/updated
  • Provide base stubs to work with in case one doesnt need to copy things over

PHPStan enhancements

includes:
	- phpstan-baseline.neon
	- vendor/cakedc/cakephp-phpstan/extension.neon
	- vendor/rector/type-perfect/config/extension.neon
	- vendor/phpstan/phpstan-strict-rules/rules.neon

composer unused-vars

"sirbrillig/phpcs-variable-analysis"

"unused-vars": "phpcs --standard=phpcs-unused-vars.xml --colors -p src/",
and

<?xml version="1.0"?>
<ruleset name="UnusedVariables">
    <description>Detect unused variables excluding function parameters</description>
    <arg name="tab-width" value="4"/>
    <arg value="ps"/>

    <rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
        <properties>
            <property name="allowUnusedFunctionParameters" value="1"/>
            <property name="allowUnusedForeachVariables" value="1"/>
            <property name="ignoreUnusedRegexp" value="/^_/"/>
        </properties>
    </rule>
</ruleset>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions