Skip to content

Commit

Permalink
Fix lint issues (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Oct 11, 2022
1 parent 1c6eb5b commit 633cf2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: norio-nomura/action-swiftlint@9f4dcd7fd46b4e75d7935cf2f4df406d5cae3684 # pin@3.2.1
with:
args: --strict

ktlint:
runs-on: ubuntu-latest
Expand All @@ -202,6 +204,7 @@ jobs:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
android: true
fail_on_error: true

detekt:
runs-on: ubuntu-latest
Expand All @@ -210,4 +213,4 @@ jobs:
# To recreate baseline run: detekt -i flutter/android,flutter/example/android -b flutter/config/detekt-bl.xml -cb
- uses: natiginfo/action-detekt-all@e01de6ff0eef7c24131e8a133bf598cfac6ceeab # pin@1.21.0
with:
args: -i flutter/android,flutter/example/android --baseline flutter/config/detekt-bl.xml
args: -i flutter/android,flutter/example/android --baseline flutter/config/detekt-bl.xml --jvm-target 1.8 --build-upon-default-config --all-rules
4 changes: 2 additions & 2 deletions flutter/ios/Classes/SentryFlutterPluginApple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {
}
}

// swiftlint:disable:next cyclomatic_complexity
private func loadContexts(result: @escaping FlutterResult) {
SentrySDK.configureScope { scope in
let serializedScope = scope.serialize()
Expand Down Expand Up @@ -173,7 +172,8 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin {

// Not reading the name from PrivateSentrySDKOnly.getSdkName because
// this is added as a package and packages should follow the sentry-release-registry format
infos["package"] = ["version": PrivateSentrySDKOnly.getSdkVersionString(), "sdk_name": "cocoapods:sentry-cocoa"]
infos["package"] = ["version": PrivateSentrySDKOnly.getSdkVersionString(),
"sdk_name": "cocoapods:sentry-cocoa"]

result(infos)
}
Expand Down

0 comments on commit 633cf2e

Please sign in to comment.