Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while executing cgl check #2

Closed
sfroemkenjw opened this issue Apr 12, 2023 · 4 comments
Closed

Error while executing cgl check #2

sfroemkenjw opened this issue Apr 12, 2023 · 4 comments

Comments

@sfroemkenjw
Copy link

Hello,

I get following error while executing cgl:

Can't find a suitable configuration file in this directory or any parent. Are you in the right directory?

I found this line which contains a typo3/ folder:

https://github.com/astehlik/typo3-extension-buildtools/blob/main/testing-docker/docker-compose.yml#L412-L413

Nice greetings

Stefan

@sfroemkenjw
Copy link
Author

sfroemkenjw commented Apr 12, 2023

I have updated that part to:

    command: >
      /bin/sh -c "
        if [ ${SCRIPT_VERBOSE} -eq 1 ]; then
          set -x
        fi
        php -dxdebug.mode=off ${CORE_ROOT}/.Build/bin/php-cs-fixer fix -v ${CGLCHECK_DRY_RUN} --path-mode intersection \
          --config=Build/php-cs-fixer/config.php Classes/ Tests/
      "

Works now.

Stefan

@sfroemkenjw
Copy link
Author

I prefer using the same path as TYPO3 have:

https://github.com/TYPO3/typo3/tree/main/Build/php-cs-fixer

I have updated my answer above

@astehlik
Copy link
Owner

Hi @sfroemkenjw.

In the TYPO3_11 and TYPO3_12 branches the path is now completly removed, which gives you the greatest flexibility. You can configure the path in the config file.

You can find a working Example here.

Please let me know if this is a viable solution for you.

@sfroemkenjw
Copy link
Author

Hello @astehlik

I had a talk to Stefan Bürk and migrated our new extensions completely to TYPO3 Testing Framework. So, I can't tell you anymore, if that will work.

Nice greetings

Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants