phplint: The "-x" option does not exist.
Sorry to litter your repo with a support request. I am aware of older issues with the same issues, but could not resolve.
I get the error The "-x" option does not exist.
when running the linter.
I am using gitlab CI with a symfony-based project with a standard symfony file structure. (e.g. project_dir/src/ā¦)
My .gitlab-ci.yml
job:
phplint:
stage: test
needs: []
image: overtrue/phplint:latest
variables:
INPUT_PATH: "./"
INPUT_OPTIONS: "-c .phplint.yml"
script: echo '' #prevents ci yml parse error
my .phplint.yml
:
path: ./src
jobs: 10
extensions:
- php
exclude:
- vendor
warning: true
memory-limit: -1
no-cache: true
my output in the pipeline
Running with gitlab-runner 16.3.0~beta.108.g2b6048b4 (2b6048b4)
on green-2.saas-linux-small-amd64.runners-manager.gitlab.com/default ns46NMmJ, system ID: s_85d7af184313
feature flags: FF_USE_IMPROVED_URL_MASKING:true, FF_RESOLVE_FULL_TLS_CHAIN:false
Resolving secrets
00:00
Preparing the "docker+machine" executor
00:07
Using Docker executor with image overtrue/phplint:latest ...
Pulling docker image overtrue/phplint:latest ...
Using docker image sha256:5f8f6a623cc79c280baa62930eecabb2d6c0a2cda58688b0f945915952e9a64a for overtrue/phplint:latest with digest overtrue/phplint@sha256:191bdfb1d350c38a7d98014bdff83122103f5dcb4ae22552e4d1cb1df9de3d28 ...
Preparing environment
00:01
Running on runner-ns46nmmj-project-15927696-concurrent-0 via runner-ns46nmmj-s-l-s-amd64-1695128617-90cdfe2e...
Getting source from Git repository
00:03
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/clerkbase/onboard-app/.git/
Created fresh repository.
Checking out e3d8436f as detached HEAD (ref is refs/merge-requests/1085/head)...
Skipping Git submodules setup
$ git remote set-url origin "${CI_REPOSITORY_URL}"
Restoring cache
00:13
Checking cache for 0_yarn-f6addb288c725b780b517883bd059972ea139036-non_protected...
Downloading cache from https://storage.googleapis.com/gitlab-com-runners-cache/project/15927696/0_yarn-f6addb288c725b780b517883bd059972ea139036-non_protected
Successfully extracted cache
Checking cache for 1_composer-3c910146abac5175794d5c45560871a531ac11b9-non_protected...
Downloading cache from https://storage.googleapis.com/gitlab-com-runners-cache/project/15927696/1_composer-3c910146abac5175794d5c45560871a531ac11b9-non_protected
Successfully extracted cache
Executing "step_script" stage of the job script
00:00
Using docker image sha256:5f8f6a623cc79c280baa62930eecabb2d6c0a2cda58688b0f945915952e9a64a for overtrue/phplint:latest with digest overtrue/phplint@sha256:191bdfb1d350c38a7d98014bdff83122103f5dcb4ae22552e4d1cb1df9de3d28 ...
The "-x" option does not exist.
lint [--exclude EXCLUDE] [--extensions EXTENSIONS] [-j|--jobs JOBS] [-c|--configuration CONFIGURATION] [--no-configuration] [--cache CACHE] [--no-cache] [-p|--progress PROGRESS] [--no-progress] [--log-json [LOG-JSON]] [--log-junit [LOG-JUNIT]] [-w|--warning] [--memory-limit MEMORY-LIMIT] [--ignore-exit-code] [--] [<path>...]
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1
Please advise how to correct. thank you!
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 26 (2 by maintainers)
Commits related to this issue
- bump upcoming dev fix version about issue #192 — committed to overtrue/phplint by llaville 9 months ago
- use different origins for locally, gitlab or github runs (fix issue #192) — committed to overtrue/phplint by llaville 9 months ago
that makes two of us š