Skip to content

Commit fe68614

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\, tests/ -> App\Tests\) and ignore config/ and example.com/ paths
1 parent 840aa55 commit fe68614

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.doctor-rst.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ 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+
'tests/': 'App\Tests\'
28+
ignored_paths:
29+
- '/^config\//'
30+
- '/^example\.com\//'
2431
# extension_xlf_instead_of_xliff: ~
2532
forbidden_directives:
2633
directives:
@@ -43,12 +50,14 @@ rules:
4350
no_composer_req: ~
4451
no_directive_after_shorthand: ~
4552
no_duplicate_use_statements: ~
53+
no_empty_directive: ~
4654
no_empty_literals: ~
4755
no_explicit_use_of_code_block_php: ~
4856
no_footnotes: ~
4957
no_inheritdoc: ~
5058
no_merge_conflict: ~
5159
no_namespace_after_use_statements: ~
60+
no_non_breaking_space: ~
5261
no_php_open_tag_in_code_block_php_directive: ~
5362
no_space_before_self_xml_closing_tag: ~
5463
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)