Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

### What's done: run benedikt on pull request too #3

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/benedikt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Benedikt

on:
workflow_dispatch:
pull_request:

jobs:
diktat_check:
Expand All @@ -11,7 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: nulls/benedikt@5c2b431b3a7a567d9103b917fcf520f78e2cc899
- uses: saveourtool/benedikt@v2
with:
reporter: test
nulls marked this conversation as resolved.
Show resolved Hide resolved
input-paths: |
examples/**/*.kt
4 changes: 2 additions & 2 deletions examples/gradle-groovy-dsl/src/main/kotlin/Test.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package incorrect

class incorrectname: Exception() {
class incorrectname3: Exception() {

Check failure

Code scanning / ktlint

[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: incorrectname3 (cannot be auto-corrected) Error

[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: incorrectname3 (cannot be auto-corrected)

Check failure

Code scanning / ktlint

[CLASS_NAME_INCORRECT] class/enum/interface name should be in PascalCase and should contain only latin (ASCII) letters or numbers: incorrectname3 Error

[CLASS_NAME_INCORRECT] class/enum/interface name should be in PascalCase and should contain only latin (ASCII) letters or numbers: incorrectname3

Check failure

Code scanning / ktlint

[EXCEPTION_SUFFIX] all exception classes should have "Exception" suffix: incorrectname3 Error

[EXCEPTION_SUFFIX] all exception classes should have "Exception" suffix: incorrectname3

Check failure

Code scanning / ktlint

[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 1 space(s) before and 1 space(s) after, but has 0 space(s) before Error

[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 1 space(s) before and 1 space(s) after, but has 0 space(s) before
fun INCORRECT_FUNCTION() {
throw Exception()
}

// fun myCommentedFunction() {
// }

Expand Down
Loading