Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

support linting multiple files at once usingphp -l #10024

Closed
@staabm

Description

@staabm

Description

would it be possible to support passing multiple files tophp -l, e.g.php -l file1.php file2.php file3.php?

my request is motivated by the fact thecurrent linting tools are slow because of the overhead involved to lint every single file using a single process, so e.g.proc_open dominates the whole process.

see this example blackfire profile, where I lint a project with 2890 files which takes 1min 14secs:

tested with on windows11 - but we see also unnecessary slowdown within github action jobs (not that big as in windows)

PHP 8.1.2 (cli) (built: Jan 19 2022 10:13:52) (NTS Visual C++ 2019 x64)Copyright (c) The PHP GroupZend Engine v4.1.2, Copyright (c) Zend Technologies

grafik

if we could e.g. lint 2 or 3 files at a time we could easily cut this processing time in half or even more.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp