sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Add lint for java, objective-c, cocoa pods code

Open krystofwoldrich opened this issue 3 years ago • 0 comments

Description

Similar to kotlin lint in Dart.

https://github.com/getsentry/sentry-dart/blob/fe217baa64bf65dac702f8ef5acd8a267f02b46c/.github/workflows/flutter.yml#L191-L204

  pod-lint:
    runs-on: macos-latest
    defaults:
      run:
        working-directory: ./flutter
    steps:
      - uses: actions/checkout@v3
      # https://github.com/CocoaPods/CocoaPods/issues/5275#issuecomment-315461879
      - run: pod lib lint ios/sentry_flutter.podspec --configuration=Debug --skip-import-validation --allow-warnings

  swift-lint:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./flutter
    steps:
      - uses: actions/checkout@v3
      - uses: norio-nomura/action-swiftlint@9f4dcd7fd46b4e75d7935cf2f4df406d5cae3684 # [email protected]

  ktlint:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./flutter
    steps:
      - uses: actions/checkout@v3

      - name: ktlint
        uses: ScaCap/action-ktlint@f22fa77f33cbfaf0a1a332aae1f176c8712c8a3c # [email protected]
        with:
          github_token: ${{ secrets.github_token }}
          reporter: github-pr-review
          android: true

krystofwoldrich avatar Oct 10 '22 08:10 krystofwoldrich