Skip to content

Commit 8dabbd1

Browse files
committed
Update DOCtor-RST and enable new rules
- Require DOCtor-RST 1.74.0 - Enable NoNonBreakingSpace rule - Enable NoEmptyDirective rule - Enable FilepathAndNamespaceShouldMatch rule (configured for src/ and tests/)
1 parent 840aa55 commit 8dabbd1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.doctor-rst.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ 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+
prefixes: ['src', 'tests']
2426
# extension_xlf_instead_of_xliff: ~
2527
forbidden_directives:
2628
directives:
@@ -43,12 +45,14 @@ rules:
4345
no_composer_req: ~
4446
no_directive_after_shorthand: ~
4547
no_duplicate_use_statements: ~
48+
no_empty_directive: ~
4649
no_empty_literals: ~
4750
no_explicit_use_of_code_block_php: ~
4851
no_footnotes: ~
4952
no_inheritdoc: ~
5053
no_merge_conflict: ~
5154
no_namespace_after_use_statements: ~
55+
no_non_breaking_space: ~
5256
no_php_open_tag_in_code_block_php_directive: ~
5357
no_space_before_self_xml_closing_tag: ~
5458
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.74.0
7676
with:
7777
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache
7878

0 commit comments

Comments
 (0)