Add new rule to SwiftLint for enforcing specific ACL on Error
types
#68
Labels
enhancement
Issues that describe new features or improvements to existing features.
To be able log or display the correct type of an error, its ACL must be sufficiently open for the error handling to be able to see the type. Hence any
Error
types declared within the same module of the logging/displaying must have at leastinternal
ACL, while anyError
types declared in a module consumed by the logging/displaying module (i.e. a library) must have at leastpublic
ACL.We should add a new rule to SwiftLint called
minimum_error_acl
for enforcing a minimum ACL forError
types. The rule should have a configuration optionacl
which can be set to any of Swift's ACLs, but defaults topublic
.The text was updated successfully, but these errors were encountered: