Skip to content

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.

Rename the file or the folder so their stems differ.

A report.ts beside a report/ folder reports a clash. Rename one after its job, and update each reference.

Turn it off for some files, with a reason:

gspot ignore structure/file-folder-clashes --paths "<glob>" --reason "<why>"