Skip to content

[Rule] Templated suite should be aligned #1330

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

Open
bhirsz opened this issue Mar 17, 2025 · 0 comments
Open

[Rule] Templated suite should be aligned #1330

bhirsz opened this issue Mar 17, 2025 · 0 comments
Labels
rule Issue related to creating or changing a rule

Comments

@bhirsz
Copy link
Member

bhirsz commented Mar 17, 2025

From #808

I have decided to disable bad-indent for template suites and develop new rule that checks alignment. It should have two possible modes:

  1. Align by columns (either named or not) - default mode
*** Test Cases ***                  USERNAME            PASSWORD
Invalid User Name                   [Tags]              foo
                                    invalid             ${VALID PASSWORD}
Invalid Password                    [Documentation]     foo
                                    [Tags]              bar
                                    ${VALID USER}       invalid
Invalid User Name and Password      [Tags]              baz
Example      argument=abc
             [Documentation]  Documentation text
Second test  argument=abc
             [Documentation]  Documentation text
  1. Ignore alignment and check for strict 4 indent:
*** Test Cases ***
Example  argument=abc
    [Documentation]  Documentation text
Second test  argument=abc
    [Documentation]  Documentation text
@bhirsz bhirsz added the rule Issue related to creating or changing a rule label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Issue related to creating or changing a rule
Projects
None yet
Development

No branches or pull requests

1 participant