Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 40fb114

Browse files
author
DKravtsov
committed
Updated composer dependencies. Added xalan tool for generating phpcpd html report.
1 parent 95e95ee commit 40fb114

File tree

22 files changed

+809
-707
lines changed

22 files changed

+809
-707
lines changed

‎.circleci/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
make phpmd
6565
6666
- run:
67-
name: Run PHP copy past detector
67+
name: Run PHP copy paste detector
6868
command: |
6969
make phpcpd
7070

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: make phpinsights
5151
- name: Run php mess detector
5252
run: make phpmd
53-
- name: Run php copy past detector
53+
- name: Run php copy paste detector
5454
run: make phpcpd
5555
- name: Stop the docker images
5656
run: make stop-test
@@ -72,7 +72,7 @@ jobs:
7272
# - name: 'Install dependencies'
7373
# run: COMPOSER_MEMORY_LIMIT=-1 composer install
7474
# - name: 'Download coverage data for Qodana'
75-
# uses: actions/download-artifact@v3
75+
# uses: actions/download-artifact@v4
7676
# with:
7777
# name: php-coverage-data
7878
# path: .qodana/code-coverage

‎.idea/htdocs.iml‎

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/php.xml‎

Lines changed: 118 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
4545
wget \
4646
librabbitmq-dev \
4747
debsecan \
48+
xalan \
4849
&& pecl install amqp \
4950
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
5051
&& docker-php-ext-configure intl \

‎Makefile‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,19 @@ else
336336
endif
337337

338338
phpcpd: ## Runs php copy/paste detector
339-
@make exec cmd="php ./vendor/bin/phpcpd --fuzzy --verbose src tests"
339+
@make exec-bash cmd="mkdir -p reports/phpcpd && php ./vendor/bin/phpcpd --fuzzy --verbose --log-pmd=reports/phpcpd/phpcpd-report-v1.xml src tests"
340+
341+
phpcpd-html-report: ## Generates phpcpd html report
342+
ifeq ($(INSIDE_DOCKER_CONTAINER), 1)
343+
@if [ ! -f reports/phpcpd/phpcpd-report-v1.xml ] ; then \
344+
printf "033円[32;49mreports/phpcpd/phpcpd-report-v1.xml not found, please run phpcpd.033円[39m\n" ; \
345+
else \
346+
printf "033円[32;49mCreating reports/phpcpd/phpcpd-report-v1.html report...033円[39m\n" ; \
347+
xalan -in reports/phpcpd/phpcpd-report-v1.xml -xsl https://systemsdk.github.io/phpcpd/report/phpcpd-html-v1_0_0.xslt -out reports/phpcpd/phpcpd-report-v1.html ; \
348+
fi;
349+
else
350+
@make exec-bash cmd="make phpcpd-html-report"
351+
endif
340352

341353
phpmd: ## Runs php mess detector
342354
@make exec cmd="php ./vendor/bin/phpmd src,tests text phpmd_ruleset.xml --suffixes php"

‎composer.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"doctrine/annotations": "^2.0.2",
3636
"doctrine/doctrine-bundle": "^2.14.0",
3737
"doctrine/doctrine-migrations-bundle": "^3.4.1",
38-
"doctrine/orm": "^2.20.2",
38+
"doctrine/orm": "^2.20.3",
3939
"phpdocumentor/reflection-docblock": "^5.6.2",
4040
"dukecity/command-scheduler-bundle": "^6.0.4",
4141
"symfony/amqp-messenger": "7.2.*",
@@ -73,8 +73,8 @@
7373
"symfony/validator": "7.2.*",
7474
"symfony/web-link": "7.2.*",
7575
"symfony/yaml": "7.2.*",
76-
"twig/extra-bundle": "^2.12|^3.20",
77-
"twig/twig": "^2.12|^3.20"
76+
"twig/extra-bundle": "^2.12|^3.21",
77+
"twig/twig": "^2.12|^3.21.1"
7878
},
7979
"conflict": {
8080
"symfony/debug": "<3.3",
@@ -88,7 +88,7 @@
8888
"roave/security-advisories": "dev-latest",
8989
"symfony/browser-kit": "7.2.*",
9090
"symfony/debug-bundle": "7.2.*",
91-
"symfony/maker-bundle": "^1.62.1",
91+
"symfony/maker-bundle": "^1.63.0",
9292
"symfony/requirements-checker": "^2.0.3",
9393
"symfony/stopwatch": "7.2.*",
9494
"symfony/var-dumper": "7.2.*",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /