Skip to content

Architecture rules, tests and CI - #9

Merged
mackoj merged 2 commits into
mainfrom
chore/architecture-rules
Nov 14, 2026
Merged

mackoj merged 2 commits into
mainfrom
chore/architecture-rules

Conversation

@mackoj

@mackoj mackoj commented Nov 14, 2026

Copy link
Copy Markdown
Owner

What

  • Pure core. The plugin's decisions move to Plugins/SchemeGeneratorPlugin/Core/ (no I/O, no PackagePlugin): SchemePlan (which schemes to create, overwrite, remove), XcschemeTemplate.render, ProductNamesHash, PluginArguments, SchemeNaming, plus the existing configuration types. SchemeGenerator.swift keeps all disk access and diagnostics.
  • Tests. A plugin target cannot be imported, so a new SchemeGeneratorTests test target compiles the same files through the symlink Tests/SchemeGeneratorTests/Core -> Plugins/SchemeGeneratorPlugin/Core. Test targets of a dependency are never built, so users are unaffected; tools-version stays 5.7.
  • Architecture rules (Architecture/, swift-llm-check, .llm-check.yaml, generated docs/architecture-rules.md): core is pure, core imports only Foundation/CryptoKit, fatal errors go through the Diagnostics-emitting helper, Swift Testing only, no disabled tests. Detector tests included.
  • CI (.github/workflows/ci.yml, macOS 15): build, test, run the plugin end to end on a sample package (scripts/smoke-test.sh), architecture rules; actionlint.
  • CODING_STANDARDS.md, AGENTS.md, CLAUDE.md.

Behaviour

Unchanged, except:

  • A trailing --confFile with no value no longer crashes with an index out of range; it keeps the current file name.
  • Schemes are written and listed in sorted order rather than Set order.

Kept as-is (noted for later): an excluded scheme that is also a product is regenerated, since exclusion only removes it from the "already exists" set.

The plugin target cannot be imported, so Tests/SchemeGeneratorTests/Core is a
symlink to Plugins/SchemeGeneratorPlugin/Core. A trailing --confFile no longer
crashes the plugin with an index out of range.
@mackoj
mackoj merged commit 4b43184 into main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant