-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8e0344
commit a73b365
Showing
12 changed files
with
155 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->exclude('vendor') | ||
->in(__DIR__) | ||
; | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR1' => true, | ||
'@PSR2' => true, | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'@PHP70Migration' => true, | ||
'@PHP70Migration:risky' => true, | ||
'@PHP71Migration' => true, | ||
'phpdoc_summary' => false, | ||
'yoda_style' => false, | ||
'self_accessor' => false, | ||
'combine_consecutive_unsets' => true, | ||
'blank_line_after_opening_tag' => false, | ||
'phpdoc_to_comment' => false, | ||
'phpdoc_no_empty_return' => false, | ||
'strict_param' => true, | ||
'doctrine_annotation_indentation' => true, | ||
'mb_str_functions' => true, | ||
'native_function_invocation' => true, | ||
'no_short_echo_tag' => true, | ||
'no_unreachable_default_argument_value' => true, | ||
'no_useless_else' => true, | ||
'no_useless_return' => true, | ||
'ordered_class_elements' => true, | ||
'phpdoc_add_missing_param_annotation' => true, | ||
'phpdoc_order' => true, | ||
'simplified_null_return' => false, | ||
'strict_comparison' => true, | ||
'ordered_imports' => ['sortAlgorithm' => 'alpha'], | ||
'declare_equal_normalize' => ['space' => 'single'], | ||
'array_syntax' => ['syntax' => 'short'], | ||
'list_syntax' => ['syntax' => 'short'], | ||
'doctrine_annotation_braces' => ['syntax' => 'with_braces'], | ||
'general_phpdoc_annotation_remove' => ['annotations' => ['author', 'created', 'version', 'package', 'copyright', 'license', 'throws']], | ||
]) | ||
->setFinder($finder) | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"php":"7.2.0","version":"2.8.3:v2.8.3#d9ec9b848cbf930c31dea3693d34dbd8b9c95295","rules":{"encoding":true,"full_opening_tag":true,"blank_line_after_namespace":true,"braces":{"allow_single_line_closure":true},"class_definition":{"singleLine":true},"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_constants":true,"lowercase_keywords":true,"method_argument_space":true,"no_break_comment":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":true,"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["const","method","property"]},"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["return"]},"cast_spaces":true,"concat_space":{"spacing":"none"},"declare_equal_normalize":{"space":"single"},"function_typehint_space":true,"include":true,"increment_style":true,"lowercase_cast":true,"magic_constant_casing":true,"method_separation":true,"native_function_casing":true,"new_with_braces":true,"no_blank_lines_after_class_opening":true,"no_blank_lines_after_phpdoc":true,"no_empty_comment":true,"no_empty_phpdoc":true,"no_empty_statement":true,"no_extra_consecutive_blank_lines":{"tokens":["curly_brace_block","extra","parenthesis_brace_block","square_brace_block","throw","use"]},"no_leading_import_slash":true,"no_leading_namespace_whitespace":true,"no_mixed_echo_print":{"use":"echo"},"no_multiline_whitespace_around_double_arrow":true,"no_short_bool_cast":true,"no_singleline_whitespace_before_semicolons":true,"no_spaces_around_offset":true,"no_trailing_comma_in_list_call":true,"no_trailing_comma_in_singleline_array":true,"no_unneeded_control_parentheses":true,"no_unneeded_curly_braces":true,"no_unneeded_final_method":true,"no_unused_imports":true,"no_whitespace_before_comma_in_array":true,"no_whitespace_in_blank_line":true,"normalize_index_brace":true,"object_operator_without_whitespace":true,"php_unit_fqcn_annotation":true,"phpdoc_align":true,"phpdoc_annotation_without_dot":true,"phpdoc_indent":true,"phpdoc_inline_tag":true,"phpdoc_no_access":true,"phpdoc_no_alias_tag":true,"phpdoc_no_package":true,"phpdoc_no_useless_inheritdoc":true,"phpdoc_return_self_reference":true,"phpdoc_scalar":true,"phpdoc_separation":true,"phpdoc_single_line_var_spacing":true,"phpdoc_trim":true,"phpdoc_types":true,"phpdoc_var_without_name":true,"protected_to_private":true,"return_type_declaration":true,"semicolon_after_instruction":true,"short_scalar_cast":true,"single_blank_line_before_namespace":true,"single_line_comment_style":{"comment_types":["hash"]},"single_quote":true,"space_after_semicolon":{"remove_in_empty_for_expressions":true},"standardize_not_equals":true,"ternary_operator_spaces":true,"trailing_comma_in_multiline_array":true,"trim_array_spaces":true,"unary_operator_spaces":true,"whitespace_after_comma_in_array":true,"dir_constant":true,"ereg_to_preg":true,"function_to_constant":true,"is_null":true,"modernize_types_casting":true,"no_alias_functions":true,"no_homoglyph_names":true,"non_printable_character":{"use_escape_sequences_in_strings":true},"php_unit_construct":true,"php_unit_dedicate_assert":true,"psr4":true,"silenced_deprecation_error":true,"ternary_to_null_coalescing":true,"declare_strict_types":true,"random_api_migration":{"replacements":{"mt_rand":"random_int","rand":"random_int"}},"pow_to_exponentiation":true,"combine_consecutive_unsets":true,"strict_param":true,"doctrine_annotation_indentation":true,"mb_str_functions":true,"native_function_invocation":true,"no_short_echo_tag":true,"no_unreachable_default_argument_value":true,"no_useless_else":true,"no_useless_return":true,"ordered_class_elements":true,"phpdoc_add_missing_param_annotation":true,"phpdoc_order":true,"strict_comparison":true,"ordered_imports":{"sortAlgorithm":"alpha"},"array_syntax":{"syntax":"short"},"list_syntax":{"syntax":"short"},"doctrine_annotation_braces":{"syntax":"with_braces"},"general_phpdoc_annotation_remove":{"annotations":["author","created","version","package","copyright","license","throws"]}},"hashes":{"Form\/DataTransformer\/TimestampToDateTimeTransformer.php":2278613954,"Form\/Type\/TimestampType.php":2326751630,"Tests\/TimestampTypeTest.php":4166878559,"Tests\/DependencyInjection\/Bukashk0zzzTimestampTypeExtensionTest.php":3307403684,"Bukashk0zzzTimestampTypeBundle.php":551629921,"DependencyInjection\/Bukashk0zzzTimestampTypeExtension.php":1716105970}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Bukashk0zzz"> | ||
<description>Bukashk0zzz coding standard.</description> | ||
|
||
<rule ref="./vendor/escapestudios/symfony2-coding-standard/Symfony"/> | ||
<rule ref="./vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml" /> | ||
|
||
<rule ref="./vendor/escapestudios/symfony2-coding-standard/Symfony"> | ||
<exclude name="Symfony.Functions.Arguments.Invalid"/> | ||
<exclude name="Symfony.Commenting.License.Warning"/> | ||
<exclude name="Symfony.Commenting.Annotations.Invalid"/> | ||
<exclude name="Symfony.ControlStructure.YodaConditions.Invalid"/> | ||
<exclude name="Symfony.ControlStructure.UnaryOperators.Invalid"/> | ||
<exclude name="Symfony.Functions.ReturnType.Invalid"/> | ||
</rule> | ||
|
||
<rule ref="./vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"> | ||
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment"/> | ||
<exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison.RequiredYodaComparison"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation.NonFullyQualifiedClassName"/> | ||
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/> | ||
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/> | ||
</rule> | ||
|
||
<rule ref="SlevomatCodingStandard.Types.EmptyLinesAroundTypeBraces"> | ||
<properties> | ||
<property name="linesCountAfterOpeningBrace" value="0"/> | ||
<property name="linesCountBeforeClosingBrace" value="0"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"> | ||
<properties> | ||
<property name="allowFullyQualifiedExceptions" value="true"/> | ||
<property name="allowPartialUses" value="true"/> | ||
<property name="allowFullyQualifiedGlobalClasses" value="true"/> | ||
<property name="allowFullyQualifiedGlobalFunctions" value="true"/> | ||
<property name="allowFullyQualifiedGlobalConstants" value="true"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations"> | ||
<properties> | ||
<property name="forbiddenAnnotations" type="array" value="@author, @created, @version, @package, @copyright, @license, @throws"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"> | ||
<properties> | ||
<property name="searchAnnotations" value="true"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="Squiz.Commenting.FunctionComment.MissingParamComment"> | ||
<severity>0</severity> | ||
</rule> | ||
|
||
<rule ref="Squiz.Commenting.FunctionComment.InvalidReturn"> | ||
<severity>0</severity> | ||
</rule> | ||
|
||
<arg name="colors"/> | ||
<arg name="encoding" value="utf-8"/> | ||
<arg name="extensions" value="php"/> | ||
|
||
<exclude-pattern>vendor/</exclude-pattern> | ||
|
||
<file>./</file> | ||
</ruleset> |