Skip to content

Commit ed3bb3c

Browse files
authored
Update configuration file (#5)
1 parent c3d608c commit ed3bb3c

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

.scrutinizer.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ build:
1616
stop_on_failure: true
1717
override:
1818
- php-scrutinizer-run --enable-security-analysis
19-
-
20-
command: make codestyle
21-
analysis:
22-
file: 'build/reports/cs-data'
23-
format: 'php-cs-checkstyle'
19+
- make codestyle
2420
-
2521
command: make coverage
2622
idle_timeout: 1200
@@ -39,8 +35,7 @@ build:
3935
COMPOSER_OPTIONS: '--optimize-autoloader'
4036
COVERAGE_OUTPUT_STYLE: 'clover'
4137
COVERAGE_CLOVER_FILE_PATH: 'build/coverage/clover.xml'
42-
PHPCS_REPORT_STYLE: 'checkstyle'
43-
PHPCS_REPORT_FILE: 'build/reports/cs-data'
38+
PHPCS_DISABLE_WARNING: "true"
4439
php:
4540
version: "7.1"
4641
timezone: UTC

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ COVERAGE_CLOVER_FILE_PATH ?= ${COVERAGE_DIRECTORY}/clover.xml
1313
#COMPOSER_OPTIONS=
1414
### Phpcs
1515
PHPCS_REPORT_STYLE ?= full
16+
PHPCS_DISABLE_WARNING ?= "false"
1617
#PHPCS_REPORT_FILE=
1718
#PHPCS_REPORT_FILE_OPTION=
1819

@@ -51,6 +52,12 @@ ifneq ("${PHPCS_REPORT_FILE}","")
5152
PHPCS_REPORT_FILE_OPTION ?= --report-file=${PHPCS_REPORT_FILE}
5253
endif
5354

55+
ifneq ("${PHPCS_DISABLE_WARNING}","true")
56+
PHPCS_DISABLE_WARNING_OPTION=
57+
else
58+
PHPCS_DISABLE_WARNING_OPTION=-n
59+
endif
60+
5461

5562
## Project build (install and configure)
5663
build: install configure
@@ -76,7 +83,7 @@ test-functional:
7683
./vendor/bin/behat ${BEHAT_COLOR_OPTION} ${BEHAT_OUTPUT_STYLE_OPTION} --no-snippets
7784

7885
codestyle: create-reports-directory
79-
./vendor/bin/phpcs --standard=phpcs.xml.dist ${PHPCS_COLOR_OPTION} ${PHPCS_REPORT_FILE_OPTION} --report=${PHPCS_REPORT_STYLE}
86+
./vendor/bin/phpcs ${PHPCS_DISABLE_WARNING_OPTION} --standard=phpcs.xml.dist ${PHPCS_COLOR_OPTION} ${PHPCS_REPORT_FILE_OPTION} --report=${PHPCS_REPORT_STYLE}
8087

8188
coverage: create-coverage-directory
8289
./vendor/bin/phpunit ${PHPUNIT_COLOR_OPTION} ${PHPUNIT_OUTPUT_STYLE_OPTION} ${PHPUNIT_COVERAGE_OPTION}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[![Latest Stable Version](https://img.shields.io/packagist/v/yoanm/jsonrpc-server-doc-sdk.svg)](https://packagist.org/packages/yoanm/jsonrpc-server-doc-sdk) [![Packagist PHP version](https://img.shields.io/packagist/php-v/yoanm/jsonrpc-server-doc-sdk.svg)](https://packagist.org/packages/yoanm/jsonrpc-server-doc-sdk)
99

10-
Php SDK to generate Http JSON-RPC server documentation
10+
Php SDK to generate (Http) JSON-RPC server documentation
1111

1212
## How to use
1313

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yoanm/jsonrpc-server-doc-sdk",
3-
"description": "SDK to generate Http JSON-RPC server documentation",
3+
"description": "SDK to generate (Http) JSON-RPC server documentation",
44
"license": "MIT",
55
"type": "library",
66
"support": {

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434

3535
<testsuites>
3636
<testsuite name="functional">
37-
<directory>tests/Functional</directory>
37+
<directory>tests/Functional/*</directory>
3838
</testsuite>
3939
<testsuite name="technical">
40-
<directory>tests/Technical</directory>
40+
<directory>tests/Technical/*</directory>
4141
</testsuite>
4242
</testsuites>
4343

0 commit comments

Comments
 (0)