You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why should this rule be added? Share links to existing discussion about what the community thinks about this.
Similar to the modified_order rule, it would be useful to be able to enforce the order of built-in protocols in a conformance. And also enforce that built-in protocols come first.
Provide several examples of what would and wouldn't trigger violations.
Would trigger:
structFoo:RawRepresentable,Hashable{}
structFoo:CustomProtocol,Hashable{}
Would not trigger:
structFoo:Hashable,RawRepresentable{}
structFoo:Hashable,CustomProtocol{}
Should the rule be configurable, if so what parameters should be configurable?
No
Should the rule be opt-in or enabled by default? Why?
See README.md for guidelines on when to mark a rule as opt-in.
Enabled by default
The text was updated successfully, but these errors were encountered:
New Issue Checklist
New rule request
Similar to the
modified_order
rule, it would be useful to be able to enforce the order of built-in protocols in a conformance. And also enforce that built-in protocols come first.Would trigger:
Would not trigger:
No
Enabled by default
The text was updated successfully, but these errors were encountered: