native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: stop swiftlint trailing-comma fixups conflicting with swift-format

The previous setup let `swiftlint --fix` enforce `trailing_comma:
mandatory_comma: true`, but swift-format 602 actively strips trailing
commas in multi-line collection literals whose last element is a
multi-line function call. The two tools end up oscillating, and any
`make check` would surface a flood of unrelated reformatting in
files that hadn't been touched.

- Disable swiftlint's `trailing_comma` rule and remove the
`mandatory_comma` block so swift-format is the sole authority on
trailing-comma placement.
- Drop `swiftlint --fix` from the `lint` Makefile target; lint
remains a pure check, formatting belongs to swift-format.

onevcat 193b3d1c 0a0a5569

+4 -4
+4 -3
.swiftlint.yml
··· 10 10 - file_length 11 11 - closure_parameter_position 12 12 - type_body_length 13 + # swift-format owns trailing comma policy in this project. Letting 14 + # swiftlint --fix add commas that swift-format then strips creates a 15 + # check ↔ format ping-pong, so swiftlint stays out of trailing commas. 16 + - trailing_comma 13 17 14 18 opt_in_rules: 15 19 - accessibility_label_for_image ··· 20 24 ignore_multiline_function_signatures: true 21 25 ignore_multiline_statement_conditions: true 22 26 ignore_multiline_type_headers: true 23 - 24 - trailing_comma: 25 - mandatory_comma: true 26 27 27 28 cyclomatic_complexity: 28 29 warning: 15
-1
Makefile
··· 307 307 swift-format -p --in-place --recursive --configuration ./.swift-format.json supacode supacodeTests 308 308 309 309 lint: # Lint code with swiftlint 310 - mise exec -- swiftlint --fix --quiet 311 310 mise exec -- swiftlint lint --quiet --config .swiftlint.yml 312 311 313 312 check: format lint # Format and lint