Skip to content

feat: implement codecheck api #31

feat: implement codecheck api

feat: implement codecheck api #31

Triggered via pull request October 27, 2023 20:32
Status Success
Total duration 5m 46s
Artifacts 1

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
qualityannotate: src/main/java/org/qualityannotate/api/coderepository/CodeTextExecutor.java#L21
🛑 maintainability: Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S3776&rule_key=java:S3776)
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
qualityannotate: src/main/java/org/qualityannotate/api/coderepository/CodeRepository.java#L9
⚠️ maintainability: Define and throw a dedicated exception instead of using a generic one. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S112&rule_key=java:S112)
qualityannotate: src/main/java/org/qualityannotate/api/coderepository/CodeStructuredExecutor.java#L11
⚠️ maintainability: Define and throw a dedicated exception instead of using a generic one. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S112&rule_key=java:S112)
qualityannotate: src/main/java/org/qualityannotate/api/coderepository/CodeTextExecutor.java#L22
⚠️ maintainability: Define and throw a dedicated exception instead of using a generic one. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S112&rule_key=java:S112)
qualityannotate: src/main/java/org/qualityannotate/api/coderepository/CodeTextExecutor.java#L98
⚠️ maintainability: Remove this unused private "runCodeStructuredApi" method. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S1144&rule_key=java:S1144)
qualityannotate: src/main/java/org/qualityannotate/api/coderepository/CodeTextExecutor.java#L99
⚠️ maintainability: Define and throw a dedicated exception instead of using a generic one. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S112&rule_key=java:S112)
qualityannotate: src/main/java/org/qualityannotate/coderepo/github/GithubCodeRepository.java#L18
⚠️ maintainability: Remove this unused "githubTextsApi" private field. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S1068&rule_key=java:S1068)
qualityannotate: src/main/java/org/qualityannotate/coderepo/github/GithubCodeRepository.java#L31
⚠️ maintainability: This block of commented-out lines of code should be removed. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S125&rule_key=java:S125)
qualityannotate: src/main/java/org/qualityannotate/coderepo/github/client/GithubStructuredApi.java#L46
⚠️ maintainability: This block of commented-out lines of code should be removed. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S125&rule_key=java:S125)
qualityannotate: src/main/java/org/qualityannotate/coderepo/github/client/GithubTextApi.java#L73
⚠️ maintainability: Replace this use of System.out by a logger. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S106&rule_key=java:S106)
qualityannotate: src/main/java/org/qualityannotate/quality/sonarqube/SonarqubeQualityTool.java#L109
⚠️ maintainability: This block of commented-out lines of code should be removed. [details](https://sonarcloud.io/organizations/quyt/rules?open=java:S125&rule_key=java:S125)

Artifacts

Produced during runtime
Name Size
qualityannotate Expired
49 MB