## Lesson — Use the --recurse-submodules flag with git ls-files

**Tags:** architecture, curated
**Pattern:** \bgit\s+ls-files\b(?!.*\b--recurse-submodules\b)
**Engine:** regex
**Scope:** **/*.sh, **/*.bash, **/*.js, **/*.ts, **/*.yml, **/*.yaml
**Severity:** error

Use the --recurse-submodules flag with git ls-files.
