-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
i.o.novikov
committed
Mar 30, 2022
1 parent
9d434c7
commit 16ab8eb
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
warning_threshold: 1 | ||
|
||
excluded: | ||
- Pods | ||
- /**/Generated | ||
|
||
disabled_rules: | ||
# У линий не должно пыть просбелов справа от текста | ||
- trailing_whitespace | ||
- class_delegate_protocol | ||
# Делегаты должны быть weak, чтобы избежать цикла сильных ссылок | ||
- weak_delegate | ||
# Сложность тела функции должна быть ограничена | ||
- cyclomatic_complexity | ||
# Функции не должны быть слишком длинными | ||
- function_body_length | ||
# Файлы не должны быть слишком длинными | ||
#- file_length | ||
# ToDo remove below and fix violations! | ||
- missing_docs | ||
- legacy_random | ||
- unused_closure_parameter | ||
- colon | ||
- force_try | ||
- force_cast | ||
- overridden_super_call | ||
- vertical_whitespace | ||
- leading_whitespace | ||
- line_length | ||
- operator_usage_whitespace | ||
- trailing_comma | ||
- trailing_newline | ||
opt_in_rules: | ||
# Некоторые переопределяемые методы всегда должны вызывать super | ||
- overridden_super_call | ||
# Некоторые методы не должны вызывать super | ||
- prohibited_super_call | ||
# Избегаем непосредственного вызова .init() | ||
- explicit_init | ||
# Операторы должны быть окружены одиночным пробелом | ||
- operator_usage_whitespace | ||
# Публичные методы/классы/.. должны быть документированы | ||
- missing_docs | ||
|
||
|
||
large_tuple: 4 | ||
|
||
line_length: 150 | ||
|
||
function_parameter_count: | ||
warning: 10 | ||
error: 15 | ||
|
||
file_length: | ||
warning: 500 | ||
|
||
type_body_length: | ||
warning: 400 | ||
error: 450 | ||
|
||
nesting: | ||
type_level: | ||
warning: 3 | ||
statement_level: | ||
warning: 5 | ||
|
||
identifier_name: | ||
min_length: 1 | ||
max_length: 65 | ||
|
||
type_name: | ||
min_length: 3 | ||
max_length: 65 |