-
Notifications
You must be signed in to change notification settings - Fork 94
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
Lint: Better indentation handling #5767
Comments
If we implement the logic to identify invalid sections e.g. |
We already check whether the number of [scheduler]
allow implicit tasks = false # Eight spaces |
It's doable, but tricky because of Jinja2. E.G. a lot of people will do this:
Rather than this:
|
In the first instance I would suggest that we should test whether In the second instance, we can at least say that a given item should not be less indented than X - e.g. |
#5772 Is probably the best we can do for now? |
Problem
Cylc Lint's indentation handling only compares number of
[
to indentation for sections.Now Lint has access to the Spec it should be able to infer the correct indentation for any non-duplicate section. Even then if sections like 'handlers' should be ok because both workflow and task handlers should have the same indentation.
The text was updated successfully, but these errors were encountered: