apple / swift-openapi-urlsession

URLSession transport for Swift OpenAPI Generator.
https://swiftpackageindex.com/apple/swift-openapi-urlsession/documentation
Apache License 2.0
159 stars 31 forks source link

Add a soundness --fix flag #19

Closed czechboy0 closed 1 year ago

czechboy0 commented 1 year ago

Motivation

When running ./scripts/soundness.sh produces swift-format warnings, we ask adopters to manually copy/paste a call to swift format to fix the warnings up. This is tedious and unnecessary.

Modifications

Add a --fix option on the soundness.sh script to actually apply the fixes as well, avoiding the need to copy/paste long commands.

Result

Easier fixing up of formatting warnings.

Test Plan

Manually tested the workflow locally.