structure/shared-prefixes
Finds sibling files that share a name prefix, such as asset-card, asset-list, and asset-row.
Part of the structure configuration, at the all level. It runs at the commit stage, once per scope. gspot runs this check itself.
Sibling files with one prefix split a single concept by suffix, and a folder of that name groups them.
What to do
Section titled “What to do”Move the files into a folder named after the shared prefix, or allow the set with a reason.
Example
Section titled “Example”Sibling files asset-card.ts, asset-list.ts, and asset-row.ts share a repeated prefix. Move them into asset/ with names card.ts, list.ts, and row.ts, then update imports.
Turn it off
Section titled “Turn it off”Turn it off for some files, with a reason:
gspot ignore structure/shared-prefixes --paths "<glob>" --reason "<why>"