SKY-R103 · Quality, structure and performance
Skylos gate policy
The Skylos quality gate (skylos . --gate) fails a build when findings exceed the limits in [tool.skylos.gate]. SKY-R103 reports a project whose pyproject.toml has no [tool.skylos.gate] table, whatever languages it contains.
- Languages
- Python, TypeScript, JavaScript, Java, Go
- Quality gate
- counted toward the gate limits (full and diff scans). Advice that is measured on every
--qualityscan but not listed by default. It is listed, and counted towardmax_quality, with--all-adviceor when the rule is named in[tool.skylos.gate] rules. A diff scan checks it only when the change touches a policy file such aspyproject.toml. - Finding type
- advice
Why it matters
Without written limits, the gate falls back to its defaults, and what blocks a merge depends on the Skylos version rather than on a decision the team made and can review in the repository.
What Skylos flags
[project]name = "shop"version = "1.0.0" [tool.skylos]quality_enabled = trueexclude = ["migrations"]"""Price helpers.""" def total(prices): return sum(prices)What Skylos leaves alone
[project]name = "shop"version = "1.0.0" [tool.skylos]quality_enabled = trueexclude = ["migrations"] [tool.skylos.gate]max_critical = 0max_security = 0max_quality = 10Why Skylos leaves it alone
The same Skylos settings, plus a [tool.skylos.gate] table that states the limits the team agreed on.
How Skylos decides
- Runs with
--quality, once per scanned project, for every language. A diff scan runs it only when a policy file is among the changed files. - Reads
pyproject.tomlat the project root and looks for a[tool.skylos.gate]table. A gate synced from Skylos Cloud does not count. - When the table is missing, reports LOW on the
[tool.skylos]line, on line 1 when there is no such line, or on the project folder when there is nopyproject.toml.
How to fix it
Add a [tool.skylos.gate] table with the limits you want; skylos cicd init can write one for you.
[project]name = "shop"version = "1.0.0" [tool.skylos]quality_enabled = trueexclude = ["migrations"]Added: Added: [tool.skylos.gate]Added: max_critical = 0Added: max_security = 0Added: max_quality = 10When it can be wrong
- A project that does not use the Skylos gate, or keeps its gate in Skylos Cloud, is still reported.
- A project without
pyproject.toml, such as a pure Go or JavaScript repository, is always reported, on the project folder.
Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.
How to silence it
ignore = ["SKY-R103"]under[tool.skylos]turns the check off. An inline marker inpyproject.tomlis not read.