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 <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored and pull[bot] committed Jun 19, 2024
1 parent 3c70e46 commit 3f7f345
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/[email protected]
with:
args: --parallel --input examples/android/CHIPTest/,examples/android/CHIPTool,examples/java-matter-controller/java,src/controller/java
- name: "detekt"
uses: natiginfo/[email protected]
# 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 3f7f345

Please sign in to comment.