Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

The Blind Spot Was the Rule I Wrote to Avoid False Positives

Описание и применение

Линтер конфигураций пропустил синтаксическую ошибку из‑за правила, исключающего проверку поля tools. После обновления правила и исправления конфигурации линтер теперь корректно выявляет недокументированные паттерны.

Задача

A linter for a configuration format silently missed a syntax error because a rule to avoid false positives incorrectly excluded checking the tools field.

Результат

The linter now correctly identifies undocumented syntax errors, reducing silent failures and improving configuration reliability.

Рабочий процесс

  • Run linter on all configuration files
  • Identify files with no reported issues
  • Manually inspect files for hidden errors
  • Find tools: * in four files
  • Update linter rule to warn on undocumented patterns
  • Remove tools: * and omit field instead
  • Add test fixtures for valid and invalid patterns
  • Run full test suite to confirm zero findings

Доказательства

tools: * is not a documented pattern. Omit tools to inherit every tool available to subagents.

Источник

The linter passed
product/kit No problems (5 files checked) product/oss No problems (4 files checked)

  • Дата записи: 2026-09-21T11:00:28.604Z