Skip to content

Devel#9

Open
trin94 wants to merge 8 commits intomainfrom
devel
Open

Devel#9
trin94 wants to merge 8 commits intomainfrom
devel

Conversation

@trin94
Copy link
Copy Markdown
Owner

@trin94 trin94 commented Apr 24, 2026

No description provided.

trin94 and others added 8 commits April 24, 2026 14:31
Adds an unimplemented Format([]byte) ([]byte, error) stub and a
64-subtest suite across 12 groups pinning down the behavior contract:
classification, sorting, preamble, line endings, blank lines,
comments, whitespace, passthrough, deduplication, errors, edge cases,
and a kitchen-sink integration case. Idempotence is checked on every
passing case. Tests default to Qt 6 style (no version) with a few
cases kept versioned to cover both styles.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
qml.Format now takes Options{LibraryPrefixes, ModulePrefixes};
prefixes let callers promote bare names to library or demote dotted
names to module, with precedence ahead of the default heuristics.
Adds contract tests for the override behavior and for 12 validation
rules (empty, leading dot, Qt/qt start, "pragma", overlaps within
and across lists). Prefixes are trimmed before validation and use.
Stub still returns "not implemented".

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Updates the CLI and internal-API design docs to reflect the Options
struct added in the previous commit: new --library-prefix and
--module-prefix flags with precedence, trim, and validation rules
(empty, leading dot, Qt/qt start, "pragma", within-list and cross-
list overlaps). INTERNAL_API.md now threads qml.Options through the
fs helper signatures and shows it in the per-mode composition table.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.

Feature: Allow Configuration of Library and Module Import Patterns Feature: Import Deduplication

1 participant