mirror of https://github.com/tuskyapp/Tusky.git
Browse Source
- Revise linting rules
- Make lint failures opt-in (for the project) instead of opt-out
- Reduce noise
- Add explicit errors for things we would ask somebody to change in a
code review
- Update baseline to only include the new errors
- Remove baseline autoupdate task since:
- We want this to happen very rarely
- The autoupdater also adds warnings
- Remove reviewdog github action (that autoadds lint comments to PRs)
pull/3986/head
5 changed files with 55 additions and 6520 deletions
@ -1,35 +0,0 @@
|
||||
name: reviewdog-suggester |
||||
on: pull_request |
||||
jobs: |
||||
ktlint: |
||||
timeout-minutes: 5 |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@v3 |
||||
|
||||
- uses: actions/setup-java@v3 |
||||
with: |
||||
distribution: 'corretto' |
||||
java-version: '17' |
||||
cache: 'gradle' |
||||
|
||||
- run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties |
||||
|
||||
- uses: gradle/wrapper-validation-action@v1 |
||||
|
||||
- uses: gradle/gradle-build-action@v2 |
||||
with: |
||||
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} |
||||
|
||||
- run: chmod +x ./gradlew |
||||
|
||||
- run: ./gradlew ktlintFormat |
||||
|
||||
- uses: reviewdog/action-suggester@v1 |
||||
with: |
||||
tool_name: ktlintFormat |
||||
|
||||
permissions: |
||||
contents: read |
||||
issues: write |
||||
pull-requests: write |
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue