Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Fatal error: spawn ENAMETOOLONG #32

Description

@clphillips

I suspect this is something to do with too many files... but isn't an issue for grunt-phplint using the same globbing pattner:

Gruntfile.js

...
    phpcs: {
      all: {
        dir: ['src/**/*.php'],
        options: {
          bin: 'phpcs',
          standard: 'Zend',
          report: 'checkstyle',
          reportFile: 'build/logs/checkstyle.xml'
        }
      }
    },
    phplint: {
      all: ['src/**/*.php']
    },
...

Then run...

grunt phpcs:all

Results in:

Running "phpcs:all" (phpcs) task
Starting phpcs (target: all) in src/**/*.php
Fatal error: spawn ENAMETOOLONG

Like I said, no problem for phplint:

grunt phplint:all

Results in:

Running "phplint:all" (phplint) task
>> 1412 files php linted.
Done, without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions