Skip to content

Use SwiftLint#23

Merged
ebariaux merged 42 commits intomainfrom
enhancement/swift-lint
Apr 8, 2026
Merged

Use SwiftLint#23
ebariaux merged 42 commits intomainfrom
enhancement/swift-lint

Conversation

@ebariaux
Copy link
Copy Markdown
Contributor

@ebariaux ebariaux commented Apr 1, 2026

Added SwiftLint to the build, both locally in Xcode and in the CI/CD pipeline.
Fixed most of the issues that SwiftLint did indicate but some warnings are still present and should be addressed in specific GH issues as this will require some more refactoring / code changes or are potentially already covered by other planned tasks.

Also tests sometimes fail in this action, this is a known issue, see #19

ebariaux added 30 commits March 31, 2026 16:21
#24)

* Fix tests under SwiftPM (also when opening Xcode using Package.swift file)

* Simplified if structure
@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread ORLib/ConfigManager.swift
}

public func setDomain(domain: String) async throws -> ConfigManagerState {
public func setDomain(domain: String) async throws -> ConfigManagerState {

Check warning

Code scanning / SwiftLint

Function should have complexity 10 or less; currently complexity is 18 Warning

Function should have complexity 10 or less; currently complexity is 18
Comment thread ORLib/ConfigManager.swift
}

public func setDomain(domain: String) async throws -> ConfigManagerState {
public func setDomain(domain: String) async throws -> ConfigManagerState {

Check warning

Code scanning / SwiftLint

Function body should span 50 lines or less excluding comments and whitespace: currently spans 72 lines Warning

Function body should span 50 lines or less excluding comments and whitespace: currently spans 72 lines
Comment thread ORLib/UI/ORViewController.swift Fixed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

@ebariaux ebariaux marked this pull request as ready for review April 7, 2026 06:37
@ebariaux ebariaux requested a review from Miggets7 April 7, 2026 06:37
Miggets7
Miggets7 previously approved these changes Apr 8, 2026
Copy link
Copy Markdown

@Miggets7 Miggets7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Should help us out with formatting!

@ebariaux ebariaux dismissed Miggets7’s stale review April 8, 2026 08:07

The merge-base changed after approval.

@Miggets7
Copy link
Copy Markdown

Miggets7 commented Apr 8, 2026

closes #20

@MartinaeyNL MartinaeyNL linked an issue Apr 8, 2026 that may be closed by this pull request
@MartinaeyNL MartinaeyNL added the Enhancement Improvement of an existing feature label Apr 8, 2026
@ebariaux ebariaux merged commit c6df4b4 into main Apr 8, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use swift-lint

4 participants