All Projects β†’ ScaCap β†’ action-ktlint

ScaCap / action-ktlint

Licence: Apache-2.0 license
Run Ktlint with reviewdog

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to action-ktlint

action-brakeman
Run brakeman with reviewdog 🐢
Stars: ✭ 22 (-46.34%)
Mutual labels:  github-actions, reviewdog
action-rubocop
Run rubocop with reviewdog 🐢
Stars: ✭ 83 (+102.44%)
Mutual labels:  github-actions, reviewdog
action-dotenv-linter
GitHub Action to run dotenv-linter ⚑️
Stars: ✭ 14 (-65.85%)
Mutual labels:  github-actions, reviewdog
action-hadolint
Run hadolint with reviewdog 🐢
Stars: ✭ 38 (-7.32%)
Mutual labels:  github-actions, reviewdog
DemoApp
An Android template project for fast development and test.
Stars: ✭ 33 (-19.51%)
Mutual labels:  ktlint, github-actions
from-travis-to-github-actions
πŸ‘¨πŸ»β€πŸ”§ ➑ πŸ€–
Stars: ✭ 49 (+19.51%)
Mutual labels:  github-actions
github-sync
This action helps you to sync your PRs with tasks in Teamwork to streamline team collaboration and your development workflows.
Stars: ✭ 52 (+26.83%)
Mutual labels:  github-actions
sonarqube-action
Integrate SonarQube scanner to GitHub Actions
Stars: ✭ 90 (+119.51%)
Mutual labels:  github-actions
ssh2actions
Connect to GitHub Actions VM via SSH for interactive debugging
Stars: ✭ 62 (+51.22%)
Mutual labels:  github-actions
uestc-temperature
η”΅ε­η§‘ζŠ€ε€§ε­¦ζœ¬η§‘η”Ÿε₯εΊ·ζ‰“ε‘εŠ©ζ‰‹γ€‚
Stars: ✭ 92 (+124.39%)
Mutual labels:  github-actions
httptest
A simple concurrent HTTP testing tool
Stars: ✭ 42 (+2.44%)
Mutual labels:  github-actions
github-actions-runner
No description or website provided.
Stars: ✭ 19 (-53.66%)
Mutual labels:  github-actions
cargo-deny-action
❌ GitHub Action for cargo-deny πŸ¦€
Stars: ✭ 45 (+9.76%)
Mutual labels:  github-actions
workflow-tools
CLI tools for GitHub Actions
Stars: ✭ 29 (-29.27%)
Mutual labels:  github-actions
esp32-internet-ota
ESP32 + GitHub Actions + Husarnet. A boilerplate project for ESP32 allowing in-field firmware update using GitHub Actions workflow.
Stars: ✭ 28 (-31.71%)
Mutual labels:  github-actions
vs-shell
GitHub action to set up the Visual Studio shell environment
Stars: ✭ 36 (-12.2%)
Mutual labels:  github-actions
ssvm-deno-starter
A template project to run Rust functions in Deno through the Second State WebAssembly engine.
Stars: ✭ 50 (+21.95%)
Mutual labels:  github-actions
release-helper
πŸ€– A GitHub Action that help you publish release.
Stars: ✭ 27 (-34.15%)
Mutual labels:  github-actions
godot-ci
Docker image to export Godot Engine games. Templates for Gitlab CI and GitHub Actions to deploy to GitLab Pages/GitHub Pages/Itch.io.
Stars: ✭ 316 (+670.73%)
Mutual labels:  github-actions
jacoco-report
Github action that publishes the JaCoCo report as a comment in the Pull Request
Stars: ✭ 31 (-24.39%)
Mutual labels:  github-actions

GitHub Action: Run ktlint with reviewdog

This action runs ktlint with reviewdog on pull requests to enforce best practices.

Examples

With github-pr-check

By default, with reporter: github-pr-check an annotation is added to the line: Example comment made by the action, with github-pr-check

With github-pr-review

With reporter: github-pr-review a comment is added to the Pull Request Conversation: Example comment made by the action, with github-pr-review

Inputs

github_token

Required. Must be in form of github_token: ${{ secrets.github_token }}.

level

Optional. Report level for reviewdog [info,warning,error]. It's same as -level flag of reviewdog. The default is error.

reporter

Optional. Reporter of reviewdog command [github-pr-check,github-pr-review, github-check]. The default is github-pr-check.

See reviewdog reporters documentation for more details on their functionality.

filter_mode

Optional. Filtering for the reviewdog command [added,diff_context,file,nofilter]. The default is added.

See reviewdog filter mode documentation for more details.

fail_on_error

Optional. Exit code for reviewdog when errors are found [true,false] Default is false.

See reviewdog fail on error documentation for more details.

relative

Optional. Print files relative to the working directory [true/false] The default value is true.

android

Optional. Runs KtLint with Android Kotlin Style Guide [true/false] The default value is false.

baseline

Optional. Runs checks against the baseline file provided.

ktlint_version

Optional. Defines the ktlint version to use. The default value is latest.

Example usage

name: reviewdog
on: [pull_request]
jobs:
  ktlint:
    name: Check Code Quality
    runs-on: ubuntu-latest

    steps:
      - name: Clone repo
        uses: actions/checkout@master
        with:
          fetch-depth: 1
      - name: ktlint
        uses: ScaCap/action-ktlint@master
        with:
          github_token: ${{ secrets.github_token }}
          reporter: github-pr-review # Change reporter
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].