-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
PHP code style check is checking data folder and apps2 and apps3 folders #31863
Comments
If you put stuff in folders like |
PR #31866 excludes the |
PR #31868 excludes any |
closing as #31868 (review) was closed I tried excluding the folders locally but I'm still getting a forest of "F" |
PR #31868 was rejected. In that PR I was trying to make the excluded folders for the PHP code style checks match more closely to what is excluded in |
I'm reopening this because even with I tried dumping the array:
Since I run into an out of memory error even with 2GB, I cannot see where the errors are pointing to so will need to do a trial and error session to find out. Maybe we should rather use inclusion instead of exclusion ? This is a blocker for using git hooks #31837 |
Can you provide your git hooks are optional and up to each developer to use them - (we can't enforce them) edit - my version of
works like a charm for me - btw we should add |
I've gotten further now after deleting a stray "3rdparty" and "build/integration" folder. The former is from when switching from stable9.1 and the latter was likely already excluded. Now I get some test results pointing at the files "tests/autoconfig-*.php". These were likely generated by test runs from "build/autotest.sh" as these files are not checked in. I can submit a PR to exclude these files if needed |
I am fine with excluding the Just trying to separate what are |
Adding The alternative would be to have the Makefile rule of "test-php-style" automatically delete these files instead. I've deleted them now and it looks fine. |
found this... PHP-CS-Fixer/PHP-CS-Fixer#1767 will try |
PR here #31925 |
cs-fixer uses https://symfony.com/components/Finder |
Steps to reproduce
data
of the local repomake test-php-style
Expected behaviour
Style checks pass
Actual behaviour
Style check fails on the file(s) that are actually just test user data, not real ownCloud code
Server configuration
Local development environment.
The text was updated successfully, but these errors were encountered: