feat: initialized swiftlint and fixed warnings and errors

This commit is contained in:
Serhiy Mytrovtsiy
2021-05-22 14:58:20 +02:00
parent e768a42e12
commit 0c7f5699ed
59 changed files with 657 additions and 563 deletions

44
.swiftlint.yml Normal file
View File

@@ -0,0 +1,44 @@
disabled_rules:
- force_cast # todo
- type_name # todo
- cyclomatic_complexity # todo
- trailing_whitespace
- opening_brace
- implicit_getter
- redundant_optional_initialization
opt_in_rules:
- control_statement
- empty_count
- trailing_newline
- colon
- comma
identifier_name:
min_length: 1
excluded:
- AppUpdateIntervals
- TemperatureUnits
- SpeedBase
- SensorsWidgetMode
- SpeedPictogram
- BatteryAdditionals
- ShortLong
- ReaderUpdateIntervals
- NumbersOfProcesses
- NetworkReaders
- SensorsList
line_length: 200
function_body_length:
- 60
- 80
type_body_length:
- 300
- 400
file_length:
- 500
- 800