Skip to content

feat(analyzers): validate TypeSelector string arguments (AFT0006-AFT0008)#139

Merged
VPDPersonal merged 2 commits into
mainfrom
feat/asp-56-validate-typeselector-string-arguments
Jul 7, 2026
Merged

feat(analyzers): validate TypeSelector string arguments (AFT0006-AFT0008)#139
VPDPersonal merged 2 commits into
mainfrom
feat/asp-56-validate-typeselector-string-arguments

Conversation

@VPDPersonal

Copy link
Copy Markdown
Owner

Summary

  • AFT0006/AFT0007 (error), AFT0008 (warning): compile-time validation of [TypeSelector("...")] string arguments — an identifier string must name a readable instance member (Type/Type[]/string/string[]), any other string must be a plausible assembly-qualified type name
  • 🔧 bump the analyzers submodule to the AFT0006-AFT0008 branch and redeploy Aspid.FastTools.Analyzers.dll into the package
  • 📝 QA-checklist items for the three rules in EN and RU

Notes for review

  • The drawer already resolves [TypeSelector] string arguments member-first (TypeSelectorPropertyDrawer.GetTypesFromAttribute); today a typo silently drops the constraint — these rules surface it at compile time instead.
  • Merge order: the analyzers submodule PR first, then re-point the gitlink here if its merge commit differs.

Linked issues

Closes ASP-56

🇷🇺 Описание на русском

Кратко

  • AFT0006/AFT0007 (error), AFT0008 (warning): compile-time валидация строковых аргументов [TypeSelector("...")] — строка-идентификатор обязана называть читаемый instance-член (Type/Type[]/string/string[]), любая другая строка — правдоподобное assembly-qualified имя типа
  • 🔧 сабмодуль анализаторов поднят до ветки AFT0006-AFT0008, Aspid.FastTools.Analyzers.dll переразвёрнута в пакет
  • 📝 пункты QA-чеклиста для трёх правил на EN и RU

Замечания для ревью

  • Drawer уже резолвит строковые аргументы [TypeSelector] member-first (TypeSelectorPropertyDrawer.GetTypesFromAttribute); сегодня опечатка молча снимает ограничение — правила выносят это на этап компиляции.
  • Порядок мержа: сначала PR в сабмодуле анализаторов, затем при необходимости перенаправить gitlink здесь.

…008)

- bump analyzers submodule to the AFT0006-AFT0008 branch and redeploy the analyzer DLL into the package
- AFT0006/AFT0007 (error): identifier strings must name a readable instance member; AFT0008 (warning): malformed assembly-qualified names
- add QA-checklist items for the three rules in EN and RU

Co-Authored-By: Claude <noreply@anthropic.com>
@VPDPersonal VPDPersonal added type: feature New feature or capability status: work-in-progress Draft / not ready for review dependencies Dependency or submodule update labels Jul 7, 2026
Co-Authored-By: Claude <noreply@anthropic.com>
@VPDPersonal VPDPersonal marked this pull request as ready for review July 7, 2026 12:04
@VPDPersonal VPDPersonal added status: needs-review Ready for review and removed status: work-in-progress Draft / not ready for review labels Jul 7, 2026
@VPDPersonal VPDPersonal merged commit 44a1d90 into main Jul 7, 2026
5 checks passed
@VPDPersonal VPDPersonal deleted the feat/asp-56-validate-typeselector-string-arguments branch July 7, 2026 12:39
@github-actions github-actions Bot removed the status: needs-review Ready for review label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency or submodule update type: feature New feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant