├── README.md └── art ├── .gitkeep └── banner.png /README.md: -------------------------------------------------------------------------------- 1 |

2 | Pint Strict Preset 3 |

4 | 5 | ------ 6 | 7 | Pint strict preset is an insanely defensive coding style preset for those who demand meticulous precision in their projects. To use it, simply create a `pint.json` file with the following contents: 8 | 9 | ```json 10 | { 11 | "preset": "laravel", 12 | "rules": { 13 | "array_push": true, 14 | "backtick_to_shell_exec": true, 15 | "date_time_immutable": true, 16 | "declare_strict_types": true, 17 | "lowercase_keywords": true, 18 | "lowercase_static_reference": true, 19 | "final_class": true, 20 | "final_internal_class": true, 21 | "final_public_method_for_abstract_class": true, 22 | "fully_qualified_strict_types": true, 23 | "global_namespace_import": { 24 | "import_classes": true, 25 | "import_constants": true, 26 | "import_functions": true 27 | }, 28 | "mb_str_functions": true, 29 | "modernize_types_casting": true, 30 | "new_with_parentheses": false, 31 | "no_superfluous_elseif": true, 32 | "no_useless_else": true, 33 | "no_multiple_statements_per_line": true, 34 | "ordered_class_elements": { 35 | "order": [ 36 | "use_trait", 37 | "case", 38 | "constant", 39 | "constant_public", 40 | "constant_protected", 41 | "constant_private", 42 | "property_public", 43 | "property_protected", 44 | "property_private", 45 | "construct", 46 | "destruct", 47 | "magic", 48 | "phpunit", 49 | "method_abstract", 50 | "method_public_static", 51 | "method_public", 52 | "method_protected_static", 53 | "method_protected", 54 | "method_private_static", 55 | "method_private" 56 | ], 57 | "sort_algorithm": "none" 58 | }, 59 | "ordered_interfaces": true, 60 | "ordered_traits": true, 61 | "protected_to_private": true, 62 | "self_accessor": true, 63 | "self_static_accessor": true, 64 | "strict_comparison": true, 65 | "visibility_required": true 66 | } 67 | } 68 | ``` 69 | -------------------------------------------------------------------------------- /art/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /art/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nunomaduro/pint-strict-preset/55930949bf9eda9f63ad730a38bbca180fa41e81/art/banner.png --------------------------------------------------------------------------------