Add basepath parameter to PHP Code Sniffer
1 unresolved thread
1 unresolved thread
Closes #3380694
Merge request reports
Activity
- Resolved by Fran Garcia-Linares
165 165 - when: on_success 166 166 script: 167 167 - test -f phpcs.xml.dist || curl -OL https://git.drupalcode.org/$_GITLAB_TEMPLATES_REPO/-/raw/$_GITLAB_TEMPLATES_REF/scripts/phpcs.xml.dist 168 - vendor/bin/phpcs -s $_WEB_ROOT/modules/custom --report-junit=junit.xml --report-full --report-summary --report-source 168 - vendor/bin/phpcs -s $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME --basepath=$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME --report-junit=junit.xml --report-full --report-summary --report-source The list of files should actually be links, and I don't see them in the screenshot you put in the issue.
I think the suggestion here should fix it. If you can try, confirm, and then apply the suggestion we can RTBC.
316 - vendor/bin/phpcs -s $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME --basepath=$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME --report-junit=junit.xml --report-full --report-summary --report-source 316 - vendor/bin/phpcs -s $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME --basepath=$CI_PROJECT_DIR --report-junit=junit.xml --report-full --report-summary --report-source
added 64 commits
-
d7aedf74...a3ffedee - 63 commits from branch
project:1.0.x
- b30114f1 - Change phpcs basepath
-
d7aedf74...a3ffedee - 63 commits from branch
Adding
--basepath
is now covered in !325 (merged) so this MR can be closed.The question of how to populate the filename column can be investigated in a follow-up, as this MR is based on
1.0.x
so would be more trouble than it is worth to re-purpose it.
Please register or sign in to reply