I am using SwiftLint to clean up my code formatting of the project. I met a File Name Violation warning. I tried many ways but I can't fix it.
Those are what I did:
- Create a class -> LoginPageViewController.
- Got a warning -> Length of class name should be between 3 and 20 characters long.
- Refactor the name of this class as LoginController everywhere.
- Run and got a warning: File Name Violation. Seems like the name still keeps the original one.
- Try to clean build folder, still doesn't work.
- Try to delete the file and recreate a new file with a totally different name, but the same warning with the same name LoginPageViewController is still showing.
The filename has already been changed to LoginController.
Please help me out. How can I fix it?