Skip to content

Commit

Permalink
ci(api): format code, checking linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Oct 30, 2024
1 parent 36343a1 commit c1b80f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-on-pr-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.4.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
- name: run ktlint
- name: Lint using ktlint
run: |
ktlint --reporter=checkstyle,output=build/ktlint-report.xml "api/**/*.kt"
continue-on-error: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.rolldebee.rolldebee.controller

import com.rolldebee.rolldebee.core.Comparison

Check failure on line 3 in api/src/main/kotlin/com/rolldebee/rolldebee/controller/ComparisonController.kt

View workflow job for this annotation

GitHub Actions / lint

Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end -- no autocorrection due to comments in the import list
//import com.rolldebee.rolldebee.factory.ComparerFactory
//import com.rolldebee.rolldebee.factory.IntrospectionBuilderFactory
//import com.rolldebee.rolldebee.factory.ObjectGraphBuilderFactory
//import com.rolldebee.rolldebee.factory.ObjectRouteBuilderFactory
// import com.rolldebee.rolldebee.factory.ComparerFactory
// import com.rolldebee.rolldebee.factory.IntrospectionBuilderFactory
// import com.rolldebee.rolldebee.factory.ObjectGraphBuilderFactory
// import com.rolldebee.rolldebee.factory.ObjectRouteBuilderFactory
import com.rolldebee.rolldebee.factory.*

Check failure on line 8 in api/src/main/kotlin/com/rolldebee/rolldebee/controller/ComparisonController.kt

View workflow job for this annotation

GitHub Actions / lint

Wildcard import
import com.rolldebee.rolldebee.repository.ConnectionRepository
import jakarta.validation.constraints.NotBlank
Expand Down

0 comments on commit c1b80f6

Please sign in to comment.