Skip to content

Commit

Permalink
🚑 chore: Update .scrutinizer.yml configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sugeng-sulistiyawan committed May 15, 2024
1 parent d9a9fc8 commit edb58d1
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit edb58d1

Please sign in to comment.