-
Notifications
You must be signed in to change notification settings - Fork 20
/
.swiftlint.yml
15 lines (12 loc) · 1.17 KB
/
.swiftlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Rules: https://realm.github.io/SwiftLint/rule-directory.html
# Config file learn more: https://github.com/realm/SwiftLint#configuration
disabled_rules:
- line_length # The swiftformat tool formats the swift code for us to not have super long lines. This rule after swiftformat has become more of an annoyance then a value where most errors are error message strings being too long.
- unused_optional_binding # `let _ =` can be easier to read sometimes then `!= nil` which is what this rule is trying to catch.
- nesting # It can be easier to read code when a class has many nested classes inside of it (example: JSON Codable structs for deserializing JSON).
- identifier_name # Variable names that are short in length can sometimes make code hard to read which this rule tries to catch. However, sometimes variable names that are 2 characters long are OK. We can catch bad variable naming in pull requests.
excluded: # paths or files to ignore during linting. Takes precedence over `included`.
- .build
- Package.swift
- Apps/*/Pods
reporter: "emoji" # reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging)