Skip to content

Linter error

Linter error #51

Triggered via pull request February 23, 2024 15:13
@pantelissspantelisss
synchronize #27
temp
Status Success
Total duration 26s
Artifacts

pr_workflow.yml

on: pull_request
swiftLint
16s
swiftLint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Lint error: BuildTools/Package.swift#L8
Trailing Comma Violation: Collection literals should not have trailing commas. (trailing_comma)
Lint error: PresentationLayer/Extensions/Common/Functions+Units.swift#L41
Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 12 (cyclomatic_complexity)
Lint error: PresentationLayer/Extensions/Domain Extensions/Common/NetworkErrorResponse+.swift#L102
Switch and Case Statement Alignment Violation: Case statements should be indented within their enclosing switch statement. (switch_case_alignment)
Lint error: PresentationLayer/Extensions/Domain Extensions/Common/NetworkErrorResponse+.swift#L104
Switch and Case Statement Alignment Violation: Case statements should be indented within their enclosing switch statement. (switch_case_alignment)
Lint error: PresentationLayer/Extensions/Domain Extensions/DeviceRewardsOverview+.swift#L207
Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 16 (cyclomatic_complexity)
Lint error: PresentationLayer/Extensions/Domain Extensions/DeviceRewardsOverview+.swift#L207
Function Body Length Violation: Function body should span 40 lines or less excluding comments and whitespace: currently spans 76 lines (function_body_length)
Lint error: PresentationLayer/UI Components/Modifiers/WXMPopover.swift#L26
Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)
Lint error: PresentationLayer/UI Components/Modifiers/WXMPopover.swift#L27
Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)
Lint error: PresentationLayer/UI Components/Base Components/Fail Success /FailSuccessStateObject.swift#L37
Line Length Violation: Line should be 180 characters or less: currently 277 characters (line_length)
Lint error: PresentationLayer/UI Components/Base Components/TabViewWrapper.swift#L8
Orphaned Doc Comment Violation: A doc comment should be attached to a declaration. (orphaned_doc_comment)
swiftLint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.