Skip to content

#238: Replace stringly-typed MCP scope and settings file refs#307

Merged
bguidolim merged 1 commit intomainfrom
bruno/238-replace-stringly-typed-scope-refs
Mar 27, 2026
Merged

#238: Replace stringly-typed MCP scope and settings file refs#307
bguidolim merged 1 commit intomainfrom
bruno/238-replace-stringly-typed-scope-refs

Conversation

@bguidolim
Copy link
Copy Markdown
Collaborator

Context

Closes #238. PR #234 introduced Constants.MCPScope.user and PR #305 extracted Constants.FileNames.settingsLocal, but a few call sites were missed. This finishes that cleanup — pure mechanical replacement, no behavioral change.

Changes

  • ConfigurationDiscovery.swift: Replace bare "user" / "local" scope strings with Constants.MCPScope.user / .local
  • ProjectSyncStrategy.swift: Replace four hardcoded "settings.local.json" display strings with scope.settingsPath.lastPathComponent, matching the pattern already used by Configurator

Testing

  • swift build — compiles cleanly
  • swift test — all 913 tests pass
  • swiftformat + swiftlint — zero violations
  • Grepped for remaining bare scope strings — only the doc comment in Component.swift remains (intentionally kept as human-readable documentation)

- Use Constants.MCPScope.user/.local instead of bare "user"/"local" strings in ConfigurationDiscovery
- Use scope.settingsPath.lastPathComponent instead of hardcoded "settings.local.json" in ProjectSyncStrategy display messages
@bguidolim bguidolim enabled auto-merge (squash) March 27, 2026 22:17
@bguidolim bguidolim merged commit 96d551f into main Mar 27, 2026
4 checks passed
@bguidolim bguidolim deleted the bruno/238-replace-stringly-typed-scope-refs branch March 27, 2026 22:20
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.

Replace remaining stringly-typed MCP scope and settings file references

1 participant