New rule: EnsureCodeBlockIndentation #2028
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow symfony/symfony-docs#21033 (comment)
What do you think of the following report ? Is it correct ?
(I will fix phpstan later)
root@7a113d89c4db:/app# php bin/doctor-rst analyse yolo --short --no-cache Analyze *.rst(.inc) files in: /app/yolo Used config file: /app/yolo/.doctor-rst.yaml service_container/import.rst ✘ 161: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: yaml 238: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: yaml configuration/secrets.rst ✘ 263: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal 272: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal setup/upgrade_major.rst ✘ 327: Please indent code block with multiple of 4 spaces, or zero. Actually 7 space(s) -> .. code-block:: terminal 349: Please indent code block with multiple of 4 spaces, or zero. Actually 7 space(s) -> .. code-block:: terminal setup/flex.rst ✘ 41: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal 49: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal 57: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: diff 73: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal 85: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal translation.rst ✘ 1050: Please indent code block with multiple of 4 spaces, or zero. Actually 7 space(s) -> .. code-block:: yaml 1058: Please indent code block with multiple of 4 spaces, or zero. Actually 7 space(s) -> .. code-block:: xml 1078: Please indent code block with multiple of 4 spaces, or zero. Actually 7 space(s) -> .. code-block:: php contributing/code/standards.rst ✘ 183: Please indent code block with multiple of 4 spaces, or zero. Actually 2 space(s) -> .. code-block:: diff 193: Please indent code block with multiple of 4 spaces, or zero. Actually 2 space(s) -> .. code-block:: diff contributing/documentation/standards.rst ✘ 141: Please indent code block with multiple of 4 spaces, or zero. Actually 2 space(s) -> .. code-block:: text contributing/community/reviews.rst ✘ 170: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal 178: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: terminal security.rst ✘ 1173: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: json 1185: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: json deployment/proxies.rst ✘ 149: Please indent code block with multiple of 4 spaces, or zero. Actually 3 space(s) -> .. code-block:: yaml reference/formats/yaml.rst ✘ 322: Please indent code block with multiple of 4 spaces, or zero. Actually 2 space(s) -> .. code-block:: yaml 331: Please indent code block with multiple of 4 spaces, or zero. Actually 2 space(s) -> .. code-block:: yaml 339: Please indent code block with multiple of 4 spaces, or zero. Actually 2 space(s) -> .. code-block:: yaml 350: Please indent code block with multiple of 4 spaces, or zero. Actually 2 space(s) -> .. code-block:: yaml frontend/encore/vuejs.rst ✘ 203: Please indent code block with multiple of 4 spaces, or zero. Actually 1 space(s) -> .. code-block:: twig frontend/create_ux_bundle.rst ✘ 78: Please indent code block with multiple of 4 spaces, or zero. Actually 7 space(s) -> .. code-block:: json 98: Please indent code block with multiple of 4 spaces, or zero. Actually 7 space(s) -> .. code-block:: javascript [WARNING] Found "13" invalid files! ```