rootstrap/ios-base

View on GitHub
.swiftlint.yml

Summary

Maintainability
Test Coverage
disabled_rules: # rule identifiers to exclude from running
- todo
- trailing_whitespace
- type_name # deactivated because swift3 need lowercase enums
opt_in_rules: # some rules are only opt-in
- array_init
- empty_count
- contains_over_first_not_nil
- explicit_init
- fatal_error_message
- first_where
- force_unwrapping
- implicit_return
- joined_default_parameter
- literal_expression_end_indentation
- operator_usage_whitespace
- overridden_super_call
- yoda_condition
# 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
- R.generated.swift
force_cast: error
force_try:
severity: warning # explicitly
line_length:
warning: 90
error: 100
type_body_length:
warning: 300
error: 400
file_length:
warning: 500
error: 850
function_parameter_count:
warning: 6
error: 8
cyclomatic_complexity:
ignores_case_statements: true
warning: 5
error: 7
function_body_length:
warning: 25
error: 32
identifier_name:
excluded: ["id"]
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)