IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
948 stars 42 forks source link

Replace Commandant with swift-argument-parser #177

Closed KS1019 closed 2 years ago

KS1019 commented 2 years ago

This PR removes Commandant in favor of swift-argument-parser.

Some points I would like reviews on

phimage commented 2 years ago

This introduces breaking changes to the CLI interface because of some default flags ArgumentParser provides (ex: --version instead of version).

for --version yes its a feature of swift-argument parser we could support a subcommand version to keep compatibility but maybe not

if any other change, maybe we could just document it in doc or release

Commandant is not automatically removed from Package.resolved. I am not sure if I should do it by myself.

Sometimes I remove it and see what has been modified to have a clear situation


There is some SwiftLint issues like white space etc... https://github.com/IBDecodable/IBLinter/runs/5092948542?check_suite_focus=true

Build issue but maybe to swift version change and old Xcode https://github.com/IBDecodable/IBLinter/runs/5092948870?check_suite_focus=true (maybe a self.reporter could help, I do not read full code)

KS1019 commented 2 years ago

Some updates:

kateinoigakukun commented 2 years ago

Please feel free to remove 5.1 job from ci. It's too old and not worth supporting it 😅