From 4485b97eabe0619c351624bd9d3a0bca37dcdbe2 Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:02:38 +0200 Subject: [PATCH 1/8] Added scrutinizer config. --- .scrutinizer.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .scrutinizer.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..9292027 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,17 @@ +build: + build: + nodes: + analysis: + project_setup: + override: + - 'true' + tests: + override: + - php-scrutinizer-run --enable-security-analysis + - command: phpcs-run + use_website_config: true + +filter: + excluded_paths: + - 'tests/*' + - 'src/Business/Events/*' From b34a720775af4e9a6793396c9036bb28f1c03701 Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:03:53 +0200 Subject: [PATCH 2/8] Added scrutinizer config. --- .scrutinizer.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 9292027..047e54d 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,15 +1,14 @@ build: - build: - nodes: - analysis: - project_setup: + nodes: + analysis: + project_setup: + override: + - 'true' + tests: override: - - 'true' - tests: - override: - - php-scrutinizer-run --enable-security-analysis - - command: phpcs-run - use_website_config: true + - php-scrutinizer-run --enable-security-analysis + - command: phpcs-run + use_website_config: true filter: excluded_paths: From 81db6246379c2fc59ce0701d3ae8444f238c747e Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:05:18 +0200 Subject: [PATCH 3/8] Added scrutinizer config. --- .scrutinizer.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 047e54d..f88a548 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -3,14 +3,60 @@ build: analysis: project_setup: override: - - 'true' - tests: - override: + - 'true' + tests: + override: - php-scrutinizer-run --enable-security-analysis - - command: phpcs-run + - + command: phpcs-run use_website_config: true filter: excluded_paths: - 'tests/*' - 'src/Business/Events/*' + +checks: + php: + check_method_contracts: + verify_interface_like_constraints: true + verify_documented_constraints: true + verify_parent_constraints: true + simplify_boolean_return: true + return_doc_comments: true + remove_extra_empty_lines: true + return_doc_comment_if_not_inferrable: true + properties_in_camelcaps: true + phpunit_assertions: true + parameters_in_camelcaps: true + parameter_doc_comments: true + param_doc_comment_if_not_inferrable: true + overriding_parameter: true + no_short_variable_names: + minimum: '3' + no_short_method_names: + minimum: '3' + no_long_variable_names: + maximum: '20' + no_goto: true + naming_conventions: + local_variable: '^[a-z][a-zA-Z0-9]*$' + abstract_class_name: ^Abstract|Factory$ + utility_class_name: 'Utils?$' + constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$' + property_name: '^[a-z][a-zA-Z0-9]*$' + method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$' + parameter_name: '^[a-z][a-zA-Z0-9]*$' + interface_name: '^[A-Z][a-zA-Z0-9]*Interface$' + type_name: '^[A-Z][a-zA-Z0-9]*$' + exception_name: '^[A-Z][a-zA-Z0-9]*Exception$' + isser_method_name: '^(?:is|has|should|may|supports)' + more_specific_types_in_doc_comments: true + fix_line_ending: true + fix_doc_comments: false + +coding_style: + php: + spaces: + around_operators: + concatenation: true From 315229cf7e08490284ae8b6a19f6dd0fe2cce511 Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:08:24 +0200 Subject: [PATCH 4/8] Added scrutinizer config. --- .scrutinizer.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index f88a548..d47122c 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -11,6 +11,15 @@ build: command: phpcs-run use_website_config: true + environment: + variables: + ELASTICSEARCH_PORT: 9200 + php: + version: "7.1" + + services: + elasticsearch: 6.4.0 + filter: excluded_paths: - 'tests/*' From 9de8e6b0b202b145e7feadd66baaeb7dec731ca2 Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:13:21 +0200 Subject: [PATCH 5/8] Added scrutinizer config. --- .scrutinizer.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index d47122c..9ef025c 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,5 +1,13 @@ build: nodes: + coverage: + tests: + override: + - command: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml + coverage: + file: build/logs/clover.xml + format: clover + analysis: project_setup: override: @@ -7,8 +15,7 @@ build: tests: override: - php-scrutinizer-run --enable-security-analysis - - - command: phpcs-run + - command: phpcs-run use_website_config: true environment: From 556b2d7c7a94c0cb29faebc29cc48d0e7317d62b Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:15:10 +0200 Subject: [PATCH 6/8] Added scrutinizer config. --- .scrutinizer.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 9ef025c..e2e5fb6 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,6 +1,11 @@ build: nodes: coverage: + services: + elasticsearch: 6.4.0 + environment: + variables: + ELASTICSEARCH_PORT: 9200 tests: override: - command: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml @@ -18,15 +23,6 @@ build: - command: phpcs-run use_website_config: true - environment: - variables: - ELASTICSEARCH_PORT: 9200 - php: - version: "7.1" - - services: - elasticsearch: 6.4.0 - filter: excluded_paths: - 'tests/*' From 0fb382c7554ad001e868da95ed64dc9f0d52d898 Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:18:53 +0200 Subject: [PATCH 7/8] Added scrutinizer config. --- .scrutinizer.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index e2e5fb6..8155c9d 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -3,12 +3,21 @@ build: coverage: services: elasticsearch: 6.4.0 + environment: variables: ELASTICSEARCH_PORT: 9200 + + cache: + directories: + - vendor/ + tests: + stop_on_failure: true + override: - command: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml + stop_on_failure: true coverage: file: build/logs/clover.xml format: clover @@ -17,6 +26,7 @@ build: project_setup: override: - 'true' + tests: override: - php-scrutinizer-run --enable-security-analysis From 35af918cb3d85119afd9e95fcbe26e619304e2d1 Mon Sep 17 00:00:00 2001 From: Christopher Lorke Date: Sat, 27 Oct 2018 01:20:28 +0200 Subject: [PATCH 8/8] Added scrutinizer config. --- .scrutinizer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 8155c9d..67b4758 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -37,6 +37,7 @@ filter: excluded_paths: - 'tests/*' - 'src/Business/Events/*' + - 'src/Database/Migrations/*' checks: php: