SwiftFormat:用于自动格式化 Swift 代码的 Python 脚本

时间:2021-05-31 07:23:04
【文件属性】:
文件名称:SwiftFormat:用于自动格式化 Swift 代码的 Python 脚本
文件大小:569KB
文件格式:ZIP
更新时间:2021-05-31 07:23:04
Python 快速格式化 用于自动格式化 Swift 代码的 Python 脚本,类似于 Clang 格式。 当前状态:将把它重写为 Swift。 用法 自动格式化文件 Usage: --file [FILE] The file to format --output [FILE] The file to write the formatted output to python format.py --file inputfilename.swift --output outputfilename.swift 演示 贡献 非常欢迎所有贡献,对如何前进的建议表示赞赏。 考试形式 在@@@上方放置要格式化的源代码,在运行格式化脚本后应该格式化的正确方式放置。 class test () {{ var str = " teststr " }} @@@ class test () { {
【文件预览】:
SwiftFormat-master
----sourcecodepart.py(665B)
----swiftformat.gif(573KB)
----word.py(3KB)
----formattingrule.py(2KB)
----testCases()
--------closures()
--------indentation()
--------shouldFail()
--------spaces()
----__main__.py(81B)
----SourceLine.py(6KB)
----format.py(8KB)
----enum.py(165B)
----tests.py(6KB)
----README.md(2KB)

网友评论