Questions tagged [code-climate]

Code Climate is an automated code review tool.

Code Climate is an automated code review tool for , , , and .

https://github.com/codeclimate

https://codeclimate.com/

76 questions
1
vote
0 answers

Parsing error: Cannot find module 'babel-plugin-root-import' Require stack: in Code climate

I am getting following error on codeclimate, can anybody help me in this Parsing error: Cannot find module 'babel-plugin-root-import' Require stack: - /usr/local/node_modules/@babel/core/lib/config/files/plugins.js -…
1
vote
1 answer

Can't ignore line-length despite .codeclimate.yaml file

I'm using Python Black to automatically reduce line length to 88 but the pep8 linter enforces a 79 character limit. I want to turn this off My .codeclimate.yaml file starts with: engines: pep8: enabled: true checks: E501: # Line…
David McKee
  • 170
  • 8
1
vote
1 answer

Failed to load codeclimate report, but report exists

in gitlab, I have a pipeline which generate a code climate report, supposed to be displayed in the gitlab widget. The report is successfully generated (I added cat code-quality.json but I have the message «Failed to load codeclimate report». When I…
Asenar
  • 6,732
  • 3
  • 36
  • 49
1
vote
2 answers

How do you get CodeClimate to ignore max-lines and max statements in a file

We have a reducer that has 350 or so lines. Our function limit is 75 (eslint) so we get the too many lines error. We also get too many return statements, but this is a reducer and that is not a problem. How do we ignore these CodeClimate errors in…
user1007983
  • 191
  • 1
  • 8
1
vote
2 answers

How to disable check in codeclimate?

Сan you please guide me on how to reduce the full test coverage threshold in the config file in the repository? I had 33% full coverage in some project, my edits reduced it to 0.2, and I would like to say to codeclimate that this is acceptable I…
fpawel
  • 309
  • 1
  • 3
  • 14
1
vote
0 answers

How do I upload code coverage data from Heroku-CI to Code Climate?

I'm trying to upload code coverage data from Heroku-CI to Code Climate and I'm running into a problem. The Code Climate uploader seems to expect the project to be a git repository and somehow Heroku-CI removed the .git folder. When it runs, I get…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
1
vote
2 answers

Rails Cognitive Complexity of 6 (exceeds 5 allowed)

I've got an app which is connected to CodeClimate and it shows me an error Method upstream_transactions has a Cognitive Complexity of 6 (exceeds 5 allowed) with marked below code: def upstream_transactions(bank_account:, external_account:,…
mr_muscle
  • 2,536
  • 18
  • 61
1
vote
2 answers

How can I use a custom Code Climate configuration in GitLab CE?

I have trouble setting up the following environment. I’d like to quickly check the code quality of a few SASS files in my local GitLab repository. This is the contents of the .gitlab-ci.yml file: include: - template:…
1
vote
0 answers

Gitlab CI & Code Climate JSON: Visualize results?

After setting up Gitlab CI with its Code Climate integration, the CI pipeline generates a code quality report in the form of a JSON file. Now I wonder: is there some kind of tool to visualize the report therein? Having to work with the raw JSON data…
Marcus Ilgner
  • 6,935
  • 2
  • 30
  • 44
1
vote
1 answer

Unable to change ExcessiveMethodLength on phpmd via codeclimate

Warnings like this keep popping up in Code Climate for my project: File YummySearchComponent.php has 360 lines of code (exceeds 250 allowed). Consider refactoring. Method getYummyHelperData has 43 lines of code (exceeds 25 allowed). Consider…
cnizzardini
  • 1,196
  • 1
  • 13
  • 29
1
vote
3 answers

How to refactor this kind of code to fix codeclimate duplication report?

I use react & flux to develop my frontend web app: So I define the constants like this: /js/constants/AppConstants.js const KeyMirror = require('keymirror'); module.exports = { PayloadSources: KeyMirror({ SERVER_ACTION: null, VIEW_ACTION:…
Hieu Pham
  • 6,577
  • 2
  • 30
  • 50
1
vote
0 answers

codeclimate javascript duplications in object keys

I am trying to make CodeClimate happy but it detects duplication inside in object: https://codeclimate.com/github/FNNDSC/vjs/src/helpers/helpers.lut.js static presetLuts() { return { 'default': [[0, 0, 0, 0], [1, 1, 1, 1]], …
Nicolas
  • 2,191
  • 3
  • 29
  • 49
1
vote
1 answer

Travis CI Can't Find Karma Generated lcov.info File

I'm trying to get CodeClimate's code coverage to work on my GitHub Repo. Travis CI doesn't find the lcov.info file that is generated by Karma after testing. I tried using a glob like this answer but even codeclimate-test-reporter < **/*lcov.info…
1
vote
2 answers

Why won't Travis CI run the CodeClimate script for my Node app?

I have followed the instructions to add CodeClimate to my .travis.yml file: language: node_js script: - gulp - npm test after_script: - codeclimate < coverage/**/lcov.info addons: code_climate: repo_token: [ my token ] Everything in my…
Seth
  • 6,514
  • 5
  • 49
  • 58
0
votes
0 answers

how to use xmllint in the codeclimate

Currently i'm creating ci/cd for my gitlab, using gitlab runner and code_quality. https://docs.gitlab.com/ee/ci/testing/code_quality.html so inside the gitlab runner, we running in docker:stable and code_quality using codeclimate/codeclimate…
Vii
  • 1