Skip to content

Support Lucafile.yml as a default spec file name#38

Merged
albertodebortoli merged 1 commit intomainfrom
support-lucafile-yml-default
Mar 13, 2026
Merged

Support Lucafile.yml as a default spec file name#38
albertodebortoli merged 1 commit intomainfrom
support-lucafile-yml-default

Conversation

@albertodebortoli
Copy link
Member

Support Lucafile.yml as a default spec file name

Description

  • Adds Lucafile.yml as a first-class default spec file name, tried after Lucafile but before prefix-discovery.
  • Users who name their spec file Lucafile.yml get proper YAML syntax highlighting and editor tooling without any extra flags.
  • No behaviour change for existing Lucafile users — the plain name still takes precedence.

Type of Change

  • Feature

How Has This Been Tested?

  • Added / updated unit tests
    • findSpecFiles_ymlExtension_returnsIt — only Lucafile.yml present → returned
    • findSpecFiles_ymlAndVariants_returnsAllSortedLucafile, Lucafile.yml, Lucafile-dev all returned sorted
  • Manually tested locally (describe)
    • swift build — no errors or warnings
    • swift test — all tests pass

Checklist

  • Swift code builds locally (swift build)
  • Tests pass locally (swift test)
  • Code style / formatting respected
  • Documentation updated (README / comments)
  • Version / tag alignment considered (if release related)

CI Considerations

  • Affects build time notably
  • Requires new secrets / env vars
  • Alters release process

Breaking Changes?

  • No

Additional Notes

SpecFinder.findSpecFiles already matched Lucafile.yml via hasPrefix("Lucafile"), so no logic change was needed there — only the exact-match short-circuit in specPath() and the updated doc comments.

Treat `Lucafile.yml` as a first-class default alongside `Lucafile`.
`specPath()` now checks for `Lucafile.yml` before falling back to
prefix-discovery, so users get better editor tooling/syntax highlighting
without any extra flags.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@albertodebortoli albertodebortoli added the feature New feature label Mar 13, 2026
@albertodebortoli albertodebortoli added this to the 0.9.0 milestone Mar 13, 2026
@albertodebortoli albertodebortoli merged commit ae23080 into main Mar 13, 2026
2 checks passed
@albertodebortoli albertodebortoli deleted the support-lucafile-yml-default branch March 13, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants