chore: add swiftlint

Signed-off-by: Alan Brault <alan.brault@visus.io>
This commit is contained in:
2026-08-08 09:25:40 -04:00
parent 0aa242b694
commit 59cb2737a1
5 changed files with 162 additions and 19 deletions
+90
View File
@@ -0,0 +1,90 @@
included:
- Tempestas
- Packages/TempestasDomain/Sources
- Packages/TempestasDomain/Tests
- Packages/TempestasInfrastructure/Sources
- Packages/TempestasInfrastructure/Tests
- Packages/TempestasPresentation/Sources
- Packages/TempestasPresentation/Tests
- TempestasTests
- TempestasUITests
excluded:
- "**/.build"
- "**/.swiftpm"
- "**/DerivedData"
opt_in_rules:
- array_init
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- convenience_type
- discouraged_optional_boolean
- empty_count
- empty_string
- enum_case_associated_values_count
- explicit_init
- fatal_error_message
- first_where
- force_unwrapping
- identical_operands
- implicit_return
- joined_default_parameter
- last_where
- literal_expression_end_indentation
- modifier_order
- multiline_arguments
- multiline_parameters
- operator_usage_whitespace
- overridden_super_call
- pattern_matching_keywords
- prefer_self_type_over_type_of_self
- redundant_nil_coalescing
- redundant_type_annotation
- sorted_first_last
- sorted_imports
- static_operator
- strict_fileprivate
- toggle_bool
- trailing_closure
- unneeded_parentheses_in_closure_argument
- unused_import
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- yoda_condition
line_length:
warning: 120
error: 160
ignores_comments: true
ignores_urls: true
type_body_length:
warning: 300
error: 400
file_length:
warning: 400
error: 600
ignore_comment_only_lines: true
function_body_length:
warning: 50
error: 80
cyclomatic_complexity:
warning: 12
error: 20
identifier_name:
min_length: 2
excluded:
- id
- x
- y
reporter: "xcode"