MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / default_targets

Function default_targets

scripts/code-verify.py:1847–1868  ·  view source on GitHub ↗

Return the trees the formatter walks when no paths are given. `app/qml` and `app/src` get the full structural rule set; the rest are here so CRLF normalization reaches the wider tree of text/source files that formerly went through `sanitize-commit.sh`'s shell pass. Repo-root text fi

()

Source from the content-addressed store, hash-verified

1845
1846
1847def default_targets() -> list[Path]:
1848 """Return the trees the formatter walks when no paths are given.
1849
1850 `app/qml` and `app/src` get the full structural rule set; the rest are
1851 here so CRLF normalization reaches the wider tree of text/source files
1852 that formerly went through `sanitize-commit.sh`'s shell pass. Repo-root
1853 text files (CMakeLists.txt, *.md, *.yml) are picked up via individual
1854 file paths — `os.walk` from `repo` would also descend `build/`, which
1855 `_SKIP_DIRS` filters but at the cost of stat-ing every entry."""
1856 # scripts/code-verify.py -> <repo>
1857 repo = Path(__file__).resolve().parent.parent
1858 targets: list[Path] = [
1859 repo / "app",
1860 repo / "lib",
1861 repo / "examples",
1862 repo / "scripts",
1863 repo / "doc",
1864 ]
1865 for entry in repo.iterdir():
1866 if entry.is_file() and entry.suffix in _TRACKED_SUFFIXES:
1867 targets.append(entry)
1868 return targets
1869
1870
1871# Kinds the script CAN auto-fix in place. Anything else (multi-line-comment,

Callers 1

mainFunction · 0.70

Calls 2

resolveMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected