'[SwiftLint][Yaml][CustomRule] How to define a custom rule that applies on enum values

I'm trying to create a custom SwiftLint rule to ensure that all my enum values starts with a capital letter. As I'm really struggling with it and after I've searched a lot on internet without success, I'm asking it here.

Do you know how to implement such rule please ?

Thanks in advance. Jb.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source