structure/file-folder-clashes
Finds a file and a folder with one stem in the same place, such as turn.ts beside turn/.
Part of the structure configuration, at the all level. It runs at the commit stage, once per scope. gspot runs this check itself.
An import of ./turn names both, and a reader cannot tell which one loads.
What to do
Section titled “What to do”Rename the file or the folder so their stems differ.
Example
Section titled “Example”A report.ts beside a report/ folder reports a clash. Rename one after its job, and update each reference.
Turn it off
Section titled “Turn it off”Turn it off for some files, with a reason:
gspot ignore structure/file-folder-clashes --paths "<glob>" --reason "<why>"