diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 3efcd68..7d8a1a8 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,5 +1,7 @@ +# language: php checks: php: + verify_property_names: true simplify_boolean_return: true return_doc_comments: true return_doc_comment_if_not_inferrable: true @@ -11,24 +13,24 @@ checks: param_doc_comment_if_not_inferrable: true overriding_parameter: true no_short_variable_names: - minimum: '3' + minimum: "3" no_short_method_names: - minimum: '3' + minimum: "3" no_long_variable_names: - maximum: '20' + maximum: "20" no_goto: true naming_conventions: - local_variable: '^[a-z][a-zA-Z0-9]*$' + 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)' + 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_use_statements: remove_unused: true @@ -40,3 +42,11 @@ checks: verify_interface_like_constraints: true verify_documented_constraints: true verify_parent_constraints: true +build: + image: default-bionic + nodes: + tests: true + analysis: + tests: + override: + - php-scrutinizer-run