Skip to content

Commit fdb42fa

Browse files
committed
foxed problems
1 parent 22c80f0 commit fdb42fa

File tree

9 files changed

+18
-8
lines changed

9 files changed

+18
-8
lines changed

.github/workflows/codeclimate.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ jobs:
2222
distribution: 'temurin'
2323
java-version: '17'
2424

25-
- name: Install CodeClimate Test Reporter
26-
run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter
25+
- name: Run Checkstyle and report to Code Climate
26+
run: ./gradlew checkstyleMain checkstyleTest
2727

28-
- name: Run Checkstyle and report to CodeClimate
29-
env:
30-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
28+
- name: Upload Checkstyle report
3129
run: |
32-
./gradlew checkstyleMain checkstyleTest
33-
./cc-test-reporter format-coverage build/reports/checkstyle/main.xml --input-type checkstyle
34-
./cc-test-reporter upload-coverage
30+
cc-test-reporter format-coverage app/build/reports/checkstyle/main.xml -t checkstyle
31+
cc-test-reporter upload-coverage
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
68 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.

app/src/main/java/hexlet/code/Differ.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,16 @@ public static List<Map<String, Object>> calculateDiff(Map<String, Object> fileIn
6161
return diff;
6262
}
6363
}
64+
65+
66+
67+
// - name: Install CodeClimate Test Reporter
68+
//run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter
69+
//
70+
// - name: Run Checkstyle and report to CodeClimate
71+
//env:
72+
//CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
73+
//run: |
74+
// ./gradlew checkstyleMain checkstyleTest
75+
// ./cc-test-reporter format-coverage build/reports/checkstyle/main.xml --input-type checkstyle
76+
// ./cc-test-reporter upload-coverage

0 commit comments

Comments
 (0)