Skip to content

Commit 9869e92

Browse files
committed
Update DOCtor-RST and enable new rules
- Require DOCtor-RST 1.75.0 - Enable NoNonBreakingSpace rule - Enable NoEmptyDirective rule - Enable FilepathAndNamespaceShouldMatch rule with namespace mapping (src/ -> App\) and ignore config/ paths
1 parent 840aa55 commit 9869e92

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.doctor-rst.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ rules:
2121
ensure_order_of_code_blocks_in_configuration_block: ~
2222
ensure_php_reference_syntax: ~
2323
extend_abstract_controller: ~
24+
filepath_and_namespace_should_match:
25+
namespace_mapping:
26+
'src/': 'App\'
27+
ignored_paths:
28+
- '/^config\//'
2429
# extension_xlf_instead_of_xliff: ~
2530
forbidden_directives:
2631
directives:
@@ -43,12 +48,14 @@ rules:
4348
no_composer_req: ~
4449
no_directive_after_shorthand: ~
4550
no_duplicate_use_statements: ~
51+
no_empty_directive: ~
4652
no_empty_literals: ~
4753
no_explicit_use_of_code_block_php: ~
4854
no_footnotes: ~
4955
no_inheritdoc: ~
5056
no_merge_conflict: ~
5157
no_namespace_after_use_statements: ~
58+
no_non_breaking_space: ~
5259
no_php_open_tag_in_code_block_php_directive: ~
5360
no_space_before_self_xml_closing_tag: ~
5461
no_typographic_quotes: ~

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }}
7373

7474
- name: "Run DOCtor-RST"
75-
uses: docker://oskarstark/doctor-rst:1.73.0
75+
uses: docker://oskarstark/doctor-rst:1.75.0
7676
with:
7777
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache
7878

0 commit comments

Comments
 (0)