加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.swiftlint.yml 978 Bytes
一键复制 编辑 原始数据 按行查看 历史
Denis Obukhov 提交于 2020-05-29 12:43 . Refactor Grid layout
disabled_rules: # rule identifiers to exclude from running
- control_statement
- trailing_whitespace
- nesting
- type_name
opt_in_rules: # some rules are only opt-in
- empty_count
# Find all the available rules by running:
# swiftlint rules
whitelist_rules:
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- init.swift
force_cast: warning
force_try:
severity: warning # explicitly
identifier_name:
min_length: # only min_length
error: 2 # only error
excluded: # excluded via string array
- id
- URL
- vc
- vm
line_length:
- 230
- 500
type_body_length:
- 300 # warning
- 400 # error
file_length:
- 500 # warning
- 800 # error
large_tuple:
- 3 # warning
- 4 # error
function_parameter_count:
- 6 # warning
- 8 # error
cyclomatic_complexity:
warning: 13
function_body_length:
warning: 60
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化