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
3
votes
1 answer

How can I get the CodeClimate CLI to emit more detail?

I'm using the CodeClimate CLI to perform analysis of a codebase I've inherited, and, while it certainly works, its output is quite limited. For example, when it says 23-30: Similar code found in 4 other locations (mass = 27) [duplication] It would…
Dave Sag
  • 13,266
  • 14
  • 86
  • 134
3
votes
1 answer

What is the proper way to get the karma test coverage path into Travis CI?

I'm using karma to run unit tests and generate coverage reports. That all works fine but I want to publish the lcov.info file to Code Climate from Travis CI. I've done it before and it works great, but the url from that test runner was static. The…
SavoryBytes
  • 35,571
  • 4
  • 52
  • 61
2
votes
0 answers

GitLab Code-Quality to run only on changed files in Merge Request

Do we have any option in GitLab code_quality to run only changed files in source repository? Right now, code_quality is analysing the entire project, and the artefacts it produces are enormous. We want to gradually make them better. Here is my…
code_buddy
  • 21
  • 1
2
votes
1 answer

Generate Code Climate reports from CMake / clang warnings

We have a large CMake-based C++ project in Gitlab, using Gitlab CI, and it would be really nice to be able to see compiler warnings/errors in the Gitlab UI. To get that to work, it seems Gitlab requires the report to be generated in the codeclimate…
aij
  • 5,903
  • 3
  • 37
  • 41
2
votes
0 answers

Project relative paths in cypress code coverage

I'm using Cypress for client e2e testing and @cypress/code-coverage for reports. I have a monorepo, client and server folders. Each one generates its own coverage report (lcov.info). I am using CodeClimate for keeping track o total coverage. It…
SeekanDestroy
  • 511
  • 1
  • 5
  • 12
2
votes
1 answer

Jest JS Test Coverage Data Not Posting to Code Climate from Codeship

I have a Node.js based project in which I am using Jest for .js unit-testing. I have the collectCoverage config setting set to true and can see the test coverage table in my local development runs and when the build is run in Codeship. However, I…
HMartch
  • 728
  • 3
  • 12
2
votes
1 answer

How to install phpcodesniffer engine to work with CodeClimate CLI?

I'm just trying to use codeclimate cli to analyze my code locally. I'm using Mac OS X 10.10.3 and, as recommended here, I'm using boot2docker. Everything good so far. I run codeclimate init to generate .codeclimate.yml file and tweaked it. It looks…
jhmilan
  • 508
  • 3
  • 12
2
votes
1 answer

CodeClimate coverage analysis is wrong on Travis CI

I am having a problem with codeclimate-test-reporter and Travis CI on my new project. The coverage analysis on Travis CI is completely different from what it is locally. Specifically, the LOC locally is 56 (which is accurate), but it's listed as…
Lee
  • 686
  • 1
  • 10
  • 23
2
votes
1 answer

Integrating codeclimate with travis-ci, travis keeps failing to load codeclimate-test-reporter

Here's the public repo in question: https://travis-ci.org/agerwick/raw-sinatra-boilerplate I integrated codeclimate's test reporter gem as advised here: http://docs.travis-ci.com/user/code-climate/ The error I keep getting is:…
1
vote
1 answer

GitLab code climate not recognizing .rubocop.yml config

I am attempting to enable code quality reports for merge requests for a Ruby on Rails application managed in GitLab. In my .gitlab-ci.yml file I have added the code quality template. .gitlab-ci.yml: include: - template: Jobs/SAST.gitlab-ci.yml -…
David Baucum
  • 2,162
  • 24
  • 25
1
vote
0 answers

Cannot enable code quality and code climate in gitlab

I have a CI/CD pipeline setup for my gitlab project. It runs multiple stages. I want to setup a code quality analysis, from what I understood of the gitlab documentation, the config should be very straightforward : Gitlab - Code Quality. So what I…
fnx_qt
  • 61
  • 2
  • 9
1
vote
1 answer

how to change the unit of time variable in NetCdf files using python

I want the unit of time to be "hours since" like other which have unit is "day since"
sonal
  • 11
  • 1
1
vote
0 answers

Xarray: Saving UKCP18 NetCDF4 file with 2D lat/lon coordinates as TIFF

I'm working with UKCP18 climate data (2.2km), which uses an unfamiliar georeferencing (see link https://www.metoffice.gov.uk/pub/data/weather/uk/ukcp18/science-reports/UKCP-Convection-permitting-model-projections-report.pdf at Section 2.3 for…
1
vote
1 answer

Template file is not a valid location in Gitlab CI/CD

I've modified my Gitlab CI/CD current process to add a stage about the code quality using codeclimate. I've tried to follow Gitlab doc as possible as I can, nevertheless I got an error about the configuration template. .codeclimate.yml is not a…
KubiRoazhon
  • 1,759
  • 3
  • 22
  • 48
1
vote
1 answer

CodeClimate Not reading configuration

In my react project the code quality checker CodeClimate, using advanced configuration just stop some silly code quality factors/thresholds like 50 line of code, : Function `AutocompleteCombobox` has 50 lines of code (exceeds 25 allowed). Consider…
Tawfeeq Amro
  • 605
  • 7
  • 15