Open aladdin-add opened 7 years ago
How would ordering be determined? For example, does options: ['foo']
come before options: ['foo', 'bar']
?
it aims to put the tests having same options together, but it's fine to add an option to enforce options ordering alphabetically:
// tests for options: []
...
// tests for options: ['bar']
...
// tests for options: ['bar', 'foo']
...
// tests for options: ['foo']
...
Sounds good to me. I don't think it's necessary to make the options alphabetical -- that seems like it could be confusing.
if a rule has a very large number of test cases, it would be fine to reorder them based on
options
.this rule can enforce code like this to improve readability: