diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b44725ad052d3c5e9cbf601d46c3408a1416880..a3f234504b19739b6f150479c9d69361b4d915f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,19 @@ include: - project: 'quiqqer/semantic-release' file: '/ci-templates/.gitlab-ci.yml' + +codestyle_check: + image: composer:2 + stage: test + script: + - composer global require squizlabs/php_codesniffer=^3 micheh/phpcs-gitlab=^1 + - /tmp/vendor/bin/phpcs -v -s -n -p --standard=PSR1,PSR2,PSR12 --no-cache --colors --report=full --report-/tmp/vendor/micheh/phpcs-gitlab/src/Report/Gitlab.php=phpcs-quality-report.json $CI_PROJECT_DIR + artifacts: + reports: + codequality: phpcs-quality-report.json + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED + #stages: # - lint # - release diff --git a/change_me.txt b/change_me.txt index 1a201990cdfbd77af6e02a0067ef99cd34e4a771..078a30edb997695fc4077c6e439b2424ae9d285d 100644 --- a/change_me.txt +++ b/change_me.txt @@ -22,3 +22,4 @@ 14 feat add breaking change 15 fix important fix 16 feat another breaking change +17 fix a fix diff --git a/src/QUI/Test/Test.php b/src/QUI/Test/Test.php new file mode 100644 index 0000000000000000000000000000000000000000..fa3423f61b6ac813b320f2622408c3b5456632f9 --- /dev/null +++ b/src/QUI/Test/Test.php @@ -0,0 +1,16 @@ +<?php + +namespace QUI\Test; + +use QUI\Package\Package; +use QUI\Projects\Media\ExternalImage; +use QUI\Interfaces\Users\User as UserInterfaces; +use QUI\System\Log; + +class Test +{ + public static function onUserGetAvatar(UserInterfaces $User) + { + return false; + } +}