Skip to main content

SKY-R103 · Quality, structure and performance

Skylos gate policy

Low

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 --quality scan but not listed by default. It is listed, and counted toward max_quality, with --all-advice or when the rule is named in [tool.skylos.gate] rules. A diff scan checks it only when the change touches a policy file such as pyproject.toml.
Finding type
advice
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

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

pyproject.toml · TOMLReported on line 5
[project]name = "shop"version = "1.0.0" [tool.skylos]quality_enabled = trueexclude = ["migrations"]
app/pricing.py · Python
"""Price helpers."""  def total(prices):    return sum(prices)

What Skylos leaves alone

pyproject.toml · TOML
[project]name = "shop"version = "1.0.0" [tool.skylos]quality_enabled = trueexclude = ["migrations"] [tool.skylos.gate]max_critical = 0max_security = 0max_quality = 10

app/pricing.py: same as in the flagged example.

Why 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

  1. 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.
  2. Reads pyproject.toml at the project root and looks for a [tool.skylos.gate] table. A gate synced from Skylos Cloud does not count.
  3. 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 no pyproject.toml.

How to fix it

Add a [tool.skylos.gate] table with the limits you want; skylos cicd init can write one for you.

pyproject.toml · TOML · the fix, against the flagged file
[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 = 10

When 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 in pyproject.toml is not read.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.