mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add function_body_length swiftlint rule with default values in an attempt to fix false positives on the CI (DangerSwift)
This commit is contained in:
committed by
Stefan Ceriu
parent
9f8c7cc5a9
commit
f2f8872729
+6
-5
@@ -1,17 +1,14 @@
|
|||||||
# # rule identifiers to exclude from running
|
|
||||||
disabled_rules:
|
disabled_rules:
|
||||||
- trailing_whitespace
|
- trailing_whitespace
|
||||||
- unused_setter_value
|
- unused_setter_value
|
||||||
- redundant_discardable_let
|
- redundant_discardable_let
|
||||||
- identifier_name
|
- identifier_name
|
||||||
|
|
||||||
# some rules are only opt-in
|
|
||||||
opt_in_rules:
|
opt_in_rules:
|
||||||
- force_unwrapping
|
- force_unwrapping
|
||||||
- private_action
|
- private_action
|
||||||
- explicit_init
|
- explicit_init
|
||||||
|
|
||||||
# paths to include during linting. `--path` is ignored if present.
|
|
||||||
included:
|
included:
|
||||||
- ElementX
|
- ElementX
|
||||||
- UnitTests
|
- UnitTests
|
||||||
@@ -29,8 +26,8 @@ file_length:
|
|||||||
error: 1000
|
error: 1000
|
||||||
|
|
||||||
type_name:
|
type_name:
|
||||||
min_length: 3 # only warning
|
min_length: 3
|
||||||
max_length: # warning and error
|
max_length:
|
||||||
warning: 150
|
warning: 150
|
||||||
error: 1000
|
error: 1000
|
||||||
|
|
||||||
@@ -38,6 +35,10 @@ type_body_length:
|
|||||||
warning: 700
|
warning: 700
|
||||||
error: 1000
|
error: 1000
|
||||||
|
|
||||||
|
function_body_length:
|
||||||
|
warning: 50
|
||||||
|
error: 100
|
||||||
|
|
||||||
custom_rules:
|
custom_rules:
|
||||||
print_deprecation:
|
print_deprecation:
|
||||||
regex: "\\b(print)\\b"
|
regex: "\\b(print)\\b"
|
||||||
|
|||||||
Reference in New Issue
Block a user