闽公网安备 35020302035485号

func updateUserProfile() {
guard let user = currentUser else { return }
// 这行末尾有空格,但看不出来
}
表面上看起来正常,实际上很多行末尾都有空格,导致:3.代码 Review 得时候看起来不专业
{
"hooks": {
"PostToolUse": [
{
"matcher": "^(Edit|MultiEdit|Write)$",
"hooks": [
{
"type": "command",
"command": "swiftlint --config .swiftlint.yml --fix"
}
]
}
]
}
}
配置说明:command: 运行 SwiftLint 自动修复