nocomplain "-" is missing #67

Merged
Christoph merged 3 commits from 58-nocomplain-is-missing into main 2026-10-10 16:18:53 +00:00
Owner

Closes #58

Closes #58
Previously the "unset" option was registered as "nocomplain" (no leading hyphen), which was inconsistent with other OptionSpec entries and could cause option-matching to fail. This commit changes that entry to "-nocomplain" so the option is recognized with its expected dash.

Also reformatted two multiline generator expressions that build DynamicCompletionRule entries into single-line comprehensions; this is a whitespace-only tidy and does not change behavior.

Fixes #58
feat(formatter): keep leading comments in proc bodies unindented
Some checks failed
Tests / node (pull_request) Successful in 24s
Tests / python (pull_request) Failing after 35s
14cdfc9bfe
Preserve comment lines that occur before the first real command inside a proc
body at the proc's own indentation level instead of indenting them with the
body. NxFormatter now tracks proc body objects (by id) when formatting
commands and adjusts format_script (only when should_indent is True) to
leave those leading header comments unindented. Adds unit test
test_leading_proc_comments_are_not_indented to cover nested and namespaced cases.

Fixes #58
test(completion): expect '-nocomplain' label for unset completions
All checks were successful
Tests / python (pull_request) Successful in 45s
Tests / node (pull_request) Successful in 26s
934bfe0848
Adjust test expectation to match completion item labels that include the leading
hyphen for the unset option. Previously the test asserted {"nocomplain"}; it
now asserts {"-nocomplain"} so the test reflects the actual completion output.

Also tidy up import ordering in the test file for clarity.

Fixes #58
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Christoph/nx_post_support!67
No description provided.