ClaretCache icon indicating copy to clipboard operation
ClaretCache copied to clipboard

Style guide for Swift repo [CN]Swift项目代码规范、规约选型

Open ChenYilong opened this issue 5 years ago • 1 comments

Swift 规范

暂未选型,欢迎提供优秀的基于 Swift5.0 代码选型规范。

git 规范

  • PR流程默认往 develop 分支提交代码,master受保护。(正式版本发布前 PR 提交流程没什么大的感知,只是develop 变为默认分支。)

ChenYilong avatar Jul 17 '19 11:07 ChenYilong

来自 @NZ-Plexure- harry:

swift style guide 我建议参考airbnb的git repo + Swift 5.1的新特性 Airbnb's Swift Style Guide. swiftlint可以用pods装个binary,然后写个run script call这个binary 去 run lint的命令,这样xcode的log可以打出来warnings; 参考 hyperoslo/Cache

ChenYilong avatar Jul 23 '19 03:07 ChenYilong