From c1ea4762b01bfce0f4b937deac04282a1b8d01d3 Mon Sep 17 00:00:00 2001 From: Simon Zambrovski Date: Fri, 23 Aug 2024 15:20:35 +0200 Subject: [PATCH] updating codecov and codacy --- .codacy.yml | 11 +++++++++++ .github/workflows/development.yml | 2 +- .github/workflows/master.yml | 2 +- detect.yml | 26 ++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .codacy.yml create mode 100644 detect.yml diff --git a/.codacy.yml b/.codacy.yml new file mode 100644 index 0000000..9924808 --- /dev/null +++ b/.codacy.yml @@ -0,0 +1,11 @@ +--- +engines: + duplications: + exclude_paths: + - "**/src/test/kotlin/**" + +exclude_paths: + - "README.md" + - ".github/**" + - "docs/**" + - '**/packages.md' diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index a79b0d1..fad25db 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -38,7 +38,7 @@ jobs: - name: Upload coverage to Codecov if: github.event_name == 'push' && github.actor != 'dependabot[bot]' - uses: codecov/codecov-action@v1.0.2 + uses: codecov/codecov-action@v3 with: token: ${{secrets.CODECOV_TOKEN}} diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 1020876..030b074 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -47,7 +47,7 @@ jobs: OSS_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - name: Upload coverage information - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/detect.yml b/detect.yml new file mode 100644 index 0000000..f08679d --- /dev/null +++ b/detect.yml @@ -0,0 +1,26 @@ +# +# see https://github.com/arturbosch/detekt/blob/master/detekt-cli/src/main/resources/default-detekt-config.yml +# +comments: + active: true + excludes: "example/**,**/test/**,**/example/**,**/*Test.kt,*/src/test/kotlin/**/*.kt,**/*Stages.kt,**/*ITest.kt" + CommentOverPrivateFunction: + active: false + CommentOverPrivateProperty: + active: false + EndOfSentenceFormat: + active: false + endOfSentenceFormat: ([.?!][ \t\n\r\f<])|([.?!:]$) + UndocumentedPublicClass: + active: true + searchInNestedClass: true + searchInInnerClass: true + searchInInnerObject: true + searchInInnerInterface: true + UndocumentedPublicFunction: + active: true + +performance: + active: true + SpreadOperator: + active: false