Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indentation rule false positive #1563

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

alamirault
Copy link
Collaborator

No description provided.

@alamirault alamirault marked this pull request as draft November 13, 2023 18:29
@@ -136,6 +137,10 @@ public function check(Lines $lines, int $number, string $filename): ViolationInt
$minus = 3;
}

if ((new PhpHelper())->isPartOfTable($lines, $number)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are broken, because sections https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#sections are considered as table in RstParser

Do you have an idea ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I believe this is the precise issue I encountered when I previously attempted to address this situation.

Lets not invest too much time then

@OskarStark OskarStark added the bug Something isn't working label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants