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

Indentation for compliant and non-compliant code examples is missing #1871

Closed
schalkms opened this issue Aug 30, 2019 · 0 comments · Fixed by #1876
Closed

Indentation for compliant and non-compliant code examples is missing #1871

schalkms opened this issue Aug 30, 2019 · 0 comments · Fixed by #1876
Assignees
Milestone

Comments

@schalkms
Copy link
Member

For some rules the compliant and non-compliant code examples use tabs instead of spaces to indent lines.
The tab character gets ignored when generating the corresponding .md file with the help of the detekt-generator.

Actual (with tabs)

https://arturbosch.github.io/detekt/style.html#equalsonsignatureline
https://arturbosch.github.io/detekt/style.html#explicititlambdaparameter

Expected (with spaces)

https://arturbosch.github.io/detekt/style.html#compliant-code-5

@schalkms schalkms self-assigned this Aug 30, 2019
3flex pushed a commit that referenced this issue Aug 31, 2019
The parsed [KDocSection] element contains no tabs.
Therefore, the indentation gets removed when generating the Markdown
rule documentation out of the rules KDoc.
This PR fixes #1871.
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this issue Sep 2, 2019
The parsed [KDocSection] element contains no tabs.
Therefore, the indentation gets removed when generating the Markdown
rule documentation out of the rules KDoc.
This PR fixes detekt#1871.
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this issue Sep 2, 2019
The parsed [KDocSection] element contains no tabs.
Therefore, the indentation gets removed when generating the Markdown
rule documentation out of the rules KDoc.
This PR fixes detekt#1871.
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this issue Sep 2, 2019
The parsed [KDocSection] element contains no tabs.
Therefore, the indentation gets removed when generating the Markdown
rule documentation out of the rules KDoc.
This PR fixes detekt#1871.
3flex pushed a commit that referenced this issue Sep 2, 2019
* Add tabs check for KDoc in detekt-generator

This prevents the usage of tabs in KDoc to ensure correct indentation
when generating the Markdown rule documentation.
This relates to the issue described in #1871.

* Only use 1 tab in generator test snippet
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this issue Sep 3, 2019
* Add tabs check for KDoc in detekt-generator

This prevents the usage of tabs in KDoc to ensure correct indentation
when generating the Markdown rule documentation.
This relates to the issue described in detekt#1871.

* Only use 1 tab in generator test snippet
@arturbosch arturbosch added this to the 1.0.2 milestone Sep 6, 2019
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this issue Sep 17, 2019
The parsed [KDocSection] element contains no tabs.
Therefore, the indentation gets removed when generating the Markdown
rule documentation out of the rules KDoc.
This PR fixes detekt#1871.
sowmyav24 pushed a commit to sowmyav24/detekt that referenced this issue Sep 17, 2019
* Add tabs check for KDoc in detekt-generator

This prevents the usage of tabs in KDoc to ensure correct indentation
when generating the Markdown rule documentation.
This relates to the issue described in detekt#1871.

* Only use 1 tab in generator test snippet
@arturbosch arturbosch modified the milestones: 1.0.2, 1.1.0 Sep 17, 2019
smyachenkov pushed a commit to smyachenkov/detekt that referenced this issue Dec 9, 2019
The parsed [KDocSection] element contains no tabs.
Therefore, the indentation gets removed when generating the Markdown
rule documentation out of the rules KDoc.
This PR fixes detekt#1871.
smyachenkov pushed a commit to smyachenkov/detekt that referenced this issue Dec 9, 2019
* Add tabs check for KDoc in detekt-generator

This prevents the usage of tabs in KDoc to ensure correct indentation
when generating the Markdown rule documentation.
This relates to the issue described in detekt#1871.

* Only use 1 tab in generator test snippet
smyachenkov pushed a commit to smyachenkov/detekt that referenced this issue Dec 9, 2019
The parsed [KDocSection] element contains no tabs.
Therefore, the indentation gets removed when generating the Markdown
rule documentation out of the rules KDoc.
This PR fixes detekt#1871.
smyachenkov pushed a commit to smyachenkov/detekt that referenced this issue Dec 9, 2019
* Add tabs check for KDoc in detekt-generator

This prevents the usage of tabs in KDoc to ensure correct indentation
when generating the Markdown rule documentation.
This relates to the issue described in detekt#1871.

* Only use 1 tab in generator test snippet
@lock lock bot locked as resolved and limited conversation to collaborators Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants