Skip to content

Ci/add swift lint and swiftformat #70

Ci/add swift lint and swiftformat

Ci/add swift lint and swiftformat #70

Triggered via pull request April 30, 2024 13:15
Status Failure
Total duration 1m 53s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 14 warnings
swift-lint: FlagsmithClient/Classes/Internal/FlagsmithAnalytics.swift#L22
Identifier Name Violation: Variable name 'EVENTS_KEY' should only contain alphanumeric and other allowed characters (identifier_name)
swift-lint: FlagsmithClient/Tests/ComparableJson.swift#L26
Force Cast Violation: Force casts should be avoided (force_cast)
swift-lint: FlagsmithClient/Tests/APIManagerTests.swift#L22
Identifier Name Violation: Variable name 'e' should be between 3 and 40 characters long (identifier_name)
swift-lint: FlagsmithClient/Tests/APIManagerTests.swift#L47
Identifier Name Violation: Variable name 'e' should be between 3 and 40 characters long (identifier_name)
swift-lint: FlagsmithClient/Tests/APIManagerTests.swift#L76
Identifier Name Violation: Variable name 'e' should be between 3 and 40 characters long (identifier_name)
swift-lint: Example/FlagsmithClient/AppDelegate.swift#L71
Line Length Violation: Line should be 200 characters or less; currently it has 281 characters (line_length)
swift-lint: Example/FlagsmithClient/AppDelegate.swift#L76
Line Length Violation: Line should be 200 characters or less; currently it has 214 characters (line_length)
swift-lint: FlagsmithClient/Classes/Feature.swift#L25
Unneeded Synthesized Initializer Violation: This memberwise initializer would be synthesized automatically - you do not need to define it (unneeded_synthesized_initializer)
swift-lint: FlagsmithClient/Classes/Flag.swift#L24
Line Length Violation: Line should be 120 characters or less; currently it has 133 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L25
Line Length Violation: Line should be 120 characters or less; currently it has 162 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L28
Line Length Violation: Line should be 120 characters or less; currently it has 135 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L29
Line Length Violation: Line should be 120 characters or less; currently it has 164 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L32
Line Length Violation: Line should be 120 characters or less; currently it has 131 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L33
Line Length Violation: Line should be 120 characters or less; currently it has 160 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L36
Line Length Violation: Line should be 120 characters or less; currently it has 137 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L37
Line Length Violation: Line should be 120 characters or less; currently it has 166 characters (line_length)
swift-lint: FlagsmithClient/Classes/Flag.swift#L41
Line Length Violation: Line should be 120 characters or less; currently it has 151 characters (line_length)
ubuntu-build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ubuntu-build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
macos-build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
macos-build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/