Skip to content

Commit 7cae098

Browse files
committed
Update DOCtor-RST and enable new rules
- Require DOCtor-RST 1.75.2 - Enable NoNonBreakingSpace rule - Enable NoEmptyDirective rule - Enable FilepathAndNamespaceShouldMatch rule with namespace mapping (src/ -> App\, Acme\, Acme\HelloBundle\ or Acme\SocialBundle\, tests/ -> App\Tests\, apps/api/tests/ -> Api\Tests\) and ignore config/ and example.com/ paths
1 parent 7468171 commit 7cae098

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.doctor-rst.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rules:
2323
extend_abstract_controller: ~
2424
filepath_and_namespace_should_match:
2525
namespace_mapping:
26-
'src/': ['App\', 'Acme\']
26+
'src/': ['App\', 'Acme\', 'Acme\HelloBundle\', 'Acme\SocialBundle\']
2727
'tests/': 'App\Tests\'
2828
'apps/api/tests/': 'Api\Tests\'
2929
ignored_paths:

.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.75.1
75+
uses: docker://oskarstark/doctor-rst:1.75.2
7676
with:
7777
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache
7878

templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ quick access to complex PHP variables. Consider the following template:
156156

157157
.. code-block:: html+twig
158158

159-
<p>{{ user.name }} added this comment on {{ comment.publishedAt|date }}</p>
159+
<p>{{ user.name }} added this comment on {{ comment.publishedAt|date }}</p>
160160

161161
The ``user.name`` notation means that you want to display some information
162162
(``name``) stored in a variable (``user``). Is ``user`` an array or an object?

0 commit comments

Comments
 (0)