We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to propose a rule for checking style for lists. We have some files where we mix the two forms:
foo: ["a","b","c"] bar: - 1 - 2 - 3
Having options to only allow either, or consistent would be great!
(To some extent also dicts, where we sometimes get baz: { qux: true }, but this seems less common)
baz: { qux: true }
The text was updated successfully, but these errors were encountered:
Hey, this is a good idea.
This could be done by adding some options to braces and brackets, for example:
brackets: forbid: true
Drawback: we cannot force the flow style (the one with brackets) and forbid the block style (the multi-line one).
Another option would be to add 2 other rules:
mappings-style: type: block | flow | whatever sequences-style: type: block | flow | whatever
Sorry, something went wrong.
How difficult would it be to implement this?
No branches or pull requests
I'd like to propose a rule for checking style for lists. We have some files where we mix the two forms:
Having options to only allow either, or consistent would be great!
(To some extent also dicts, where we sometimes get
baz: { qux: true }
, but this seems less common)The text was updated successfully, but these errors were encountered: