JakubOnderka / PHP-Parallel-Lint

This tool check syntax of PHP files faster than serial check with fancier output.
Other
647 stars 61 forks source link

composer: use separate autoload and autoload-dev #140

Closed mfn closed 2 years ago

mfn commented 5 years ago

Currently the whole project tree is marked for autoload, from composer.json

    "autoload": {
        "classmap": [
            "./"
        ]
    },

It does not differentiate between autoloading actual source and test related stuff, but should.

(unverified) suggestion:

    "autoload": {
        "classmap": [
            "./src/"
        ]
    },
    "autoload-dev": {
      "classmap": [
        "./tests/"
      ]
    }  
jrfnl commented 2 years ago

A PR is open to address in https://github.com/php-parallel-lint/PHP-Parallel-Lint/pull/88

grogy commented 2 years ago

PR was merged. Thanks @mfn for suggestion and @jrfnl for pushing as PR :+1:

mfn commented 2 years ago

Nice, closing then!