Beam/.swiftlint.yml
Stefan Ceriu abe2080ee2
Extract room screen action handling into separate component (#2045)
* Extract room screen action handling into separate component

* Fix tracing configuration unit tests

* Move the custom reactionsCollapsedBinding to the TimelineReactionsView

* Move voice message playback handling from the timelineController to the room view model

* Reorder methods

* Remove the need for a media player provider in the timeline controller

* Move room attachments opening to the view model, remove the need for a media provider in the timeline controller

* Rename RoomScreenActionsHandler -> RoomScreenInteractionHandler

* Move message sending retry and cancellation to the timeline controller.

* Move audio playback, attachment loading and  user tapping handling into the InteractionHandler

* Fix unit tests

* Switch back swiftlint file_length rule error to 1000 lines
2023-11-08 18:31:39 +02:00

69 lines
1.2 KiB
YAML
Executable File

disabled_rules:
- trailing_whitespace
- unused_setter_value
- redundant_discardable_let
- identifier_name
opt_in_rules:
- force_unwrapping
- private_action
- explicit_init
- shorthand_optional_binding
included:
- ElementX
- UnitTests
- UITests
- Tools/Scripts/Templates
excluded:
- IntegrationTests
- ElementX/Sources/Generated
line_length:
warning: 250
error: 1000
file_length:
warning: 1000
error: 1000
type_name:
min_length: 3
max_length:
warning: 150
error: 1000
type_body_length:
warning: 1000
error: 1000
function_body_length:
warning: 100
error: 100
cyclomatic_complexity:
ignores_case_statements: true
nesting:
type_level:
warning: 5
custom_rules:
print_deprecation:
regex: "\\b(print)\\b"
match_kinds: identifier
message: "MXLog should be used instead of print()"
severity: error
print_ln_deprecation:
regex: "\\b(println)\\b"
match_kinds: identifier
message: "MXLog should be used instead of println()"
severity: error
os_log_deprecation:
regex: "\\b(os_log)\\b"
match_kinds: identifier
message: "MXLog should be used instead of os_log()"
severity: error