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
Prevent any whitespace characters in file names. Xcode allows you to name files with spaces, but it causes issues (or annoyances) when trying to get a path to those files since you have to escape the space.
Why should this rule be added? Share links to existing discussion about what
the community thinks about this.
While there is a lot of disagreement on weather file names should be camelCase(Xcode default), kabab-case, or snake_case. There is a general consensus that there should not be spaces in file names. Apple, Google, Smithsonian
Provide several examples of what would and wouldn't trigger violations.
Should the rule be configurable, if so what parameters should be configurable?
You would want to be able to exclude specific files, and I could see a use exclude certain suffixes as well. For example there may be files named F�ile+Test Extension.swift.
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.
Because Apple doesn't specifically call out no spaces in file names, it should be opt-in.
The text was updated successfully, but these errors were encountered:
New Issue Checklist
New rule request
Prevent any whitespace characters in file names. Xcode allows you to name files with spaces, but it causes issues (or annoyances) when trying to get a path to those files since you have to escape the space.
the community thinks about this.
While there is a lot of disagreement on weather file names should be camelCase(Xcode default), kabab-case, or snake_case. There is a general consensus that there should not be spaces in file names. Apple, Google, Smithsonian
Does not trigger
Does trigger
You would want to be able to exclude specific files, and I could see a use exclude certain suffixes as well. For example there may be files named
F�ile+Test Extension.swift
.See README.md for guidelines on when to mark a rule as opt-in.
Because Apple doesn't specifically call out no spaces in file names, it should be opt-in.
The text was updated successfully, but these errors were encountered: