Pint won't fix/format Volt files.
还没有人认领这个 Issue。
评估
调研方向
首先使用 .\vendor\bin\pint 和提供的 pint.json 配置复现该问题。检查 resources\views\livewire\users\index.blade.php 是如何被发现并传递给 Pint 的;完成的标准是该文件按照已配置的规则完成格式化,并且在项目存在相关测试位置的情况下,为此案例添加回归检查。
由索引模型根据 Issue 内容生成。
描述
Volt Version
1.7.1
Laravel Version
12.21.0
PHP Version
8.4.11
Database Driver & Version
sqlite 3.46.0
Description
pint.json isn't working with volt.
Steps To Reproduce
config a base pint.json
{
"preset": "laravel",
"rules": {
"array_syntax": true,
"assign_null_coalescing_to_coalesce_equal": true,
"binary_operator_spaces": {
"default": "at_least_single_space"
},
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"blank_line_between_import_groups": true,
"blank_lines_before_namespace": true,
"braces_position": {
"allow_single_line_empty_anonymous_classes": true
},
"class_definition": {
"inline_constructor_arguments": false,
"space_before_parenthesis": true
},
"clean_namespace": true,
"compact_nullable_type_declaration": true,
"constant_case": true,
"control_structure_braces": true,
"control_structure_continuation_position": true,
"declare_equal_normalize": true,
"elseif": true,
"encoding": true,
"full_opening_tag": true,
"function_declaration": true,
"heredoc_indentation": true,
"indentation_type": true,
"line_ending": true,
"list_syntax": true,
"lowercase_cast": true,
"lowercase_keywords": true,
"lowercase_static_reference": true,
"method_argument_space": {
"attribute_placement": "ignore",
"on_multiline": "ensure_fully_multiline"
},
"new_with_parentheses": true,
"no_blank_lines_after_class_opening": true,
"no_break_comment": true,
"no_closing_tag": true,
"no_extra_blank_lines": {
"tokens": [
"use"
]
},
"no_leading_import_slash": true,
"no_multiple_statements_per_line": true,
"no_space_around_double_colon": true,
"no_spaces_after_function_name": true,
"no_trailing_whitespace": true,
"no_trailing_whitespace_in_comment": true,
"no_unset_cast": true,
"no_whitespace_before_comma_in_array": {
"after_heredoc": true
},
"no_whitespace_in_blank_line": true,
"normalize_index_brace": true,
"nullable_type_declaration_for_default_null_value": true,
"octal_notation": true,
"ordered_class_elements": {
"order": [
"use_trait"
]
},
"ordered_imports": {
"imports_order": [
"class",
"function",
"const"
],
"sort_algorithm": "none"
},
"return_type_declaration": true,
"short_scalar_cast": true,
"simple_to_complex_string_variable": true,
"single_blank_line_at_eof": true,
"single_class_element_per_statement": {
"elements": [
"property"
]
},
"single_import_per_statement": {
"group_to_single_imports": false
},
"single_line_after_imports": true,
"single_space_around_construct": {
"constructs_followed_by_a_single_space": [
"abstract",
"as",
"case",
"catch",
"class",
"const_import",
"do",
"else",
"elseif",
"final",
"finally",
"for",
"foreach",
"function",
"function_import",
"if",
"insteadof",
"interface",
"namespace",
"new",
"private",
"protected",
"public",
"static",
"switch",
"trait",
"try",
"use",
"use_lambda",
"while"
],
"constructs_preceded_by_a_single_space": [
"as",
"else",
"elseif",
"use_lambda"
]
},
"single_trait_insert_per_statement": true,
"spaces_inside_parentheses": true,
"statement_indentation": true,
"switch_case_semicolon_to_colon": true,
"switch_case_space": true,
"ternary_operator_spaces": true,
"ternary_to_null_coalescing": true,
"trailing_comma_in_multiline": {
"after_heredoc": true
},
"unary_operator_spaces": {
"only_dec_inc": true
},
"visibility_required": true
}
}
run pint with .\vendor\bin\pint
resources\views\livewire\users\index.blade.php won't get touched.
- 主要语言
- PHP
- 星标
- 423
- 派生
- 36
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
livewire/volt 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 38/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
rap2hpoutre/fast-excel#425 ·
-
bug Medium Priority
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
Перевод устарел
难度 1/5 1-3 小时 新手友好度 78/100