Skip to content

GitHub Action for Android Lint

Actions
A tool to enforce Android style and conventions
v5.0.0
Latest
Star (26)

Tags

 (1)

GitHub Action for Android Lint

CI

This Action generates annotations from Android Lint Report XML.

Usage

An example workflow(.github/workflows/android-lint.yml) to executing Android Lint follows:

name: AndroidLint

on:
  pull_request:
    paths:
      - .github/workflows/android-lint.yml
      - '*/src/**'
      - gradle/**
      - '**.gradle'
      - gradle.properties
      - gradlew*

jobs:
  android-lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 1
      - name: set up JDK
        uses: actions/setup-java@v4
        with:
          distribution: jetbrains
          java-version: 21
          cache: gradle
      - run: ./gradlew lint
      - uses: yutailang0119/action-android-lint@v4
        with:
          report-path: build/reports/*.xml # Support glob patterns by https://www.npmjs.com/package/@actions/glob
          ignore-warnings: true # Ignore Lint Warnings
        continue-on-error: false # If annotations contain error of severity, action-android-lint exit 1.

Author

Yutaro Muta

References

License

action-android-lint is available under the MIT license. See the LICENSE file for more info.

GitHub Action for Android Lint is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A tool to enforce Android style and conventions
v5.0.0
Latest

Tags

 (1)

GitHub Action for Android Lint is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.