Skip to content

Commit

Permalink
[kotlin] Validate kotlin integration of detekt in #27661 (#27807)
Browse files Browse the repository at this point in the history
* Minor kotlin file change to validate we run detekt after #27661

* Fix indent error in detekt yaml

* Add exceptions for existing classes for detekt

* Restyled by whitespace

* Restyled by prettier-yaml

---------

Co-authored-by: Andrei Litvin <andreilitvin@google.com>
Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
3 people authored and pull[bot] committed Jan 18, 2024
1 parent 2f1ce0e commit 1641233
Show file tree
Hide file tree
Showing 3 changed files with 330 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/kotlin-detekt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ on:
- "**/*.kt"
- ".github/workflows/kotlin-detekt.yaml"

jobs:
detekt:
runs-on: ubuntu-latest
jobs:
detekt:
runs-on: ubuntu-latest

steps:
- name: "checkout"
uses: actions/checkout@v2
steps:
- name: "checkout"
uses: actions/checkout@v2

- name: "detekt"
uses: natiginfo/action-detekt-all@1.23.0
with:
args: --parallel --input examples/android/CHIPTest/,examples/android/CHIPTool,examples/java-matter-controller/java,src/controller/java
- name: "detekt"
uses: natiginfo/action-detekt-all@1.23.0
# Detekt seems not to like circular symlinks, so we set up
# explicit paths below
with:
args: --parallel --build-upon-default-config --config kotlin-detect-config.yaml --input examples/android/CHIPTest,examples/android/CHIPTool,examples/java-matter-controller/java,src/controller/java
Loading

0 comments on commit 1641233

Please sign in to comment.