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
61
votes
2 answers

Filtering render functions from CodeClimate method-lines check

We're adding CodeClimate to a project and running into a lot of method-lines errors for the render functions in our React components, example:- Function render has 78 lines of code (exceeds 40 allowed). Consider refactoring. We would like to…
Robert
  • 774
  • 4
  • 12
19
votes
3 answers

fix `Missing frozen string literal comment` issue

I created a new migration, it looks like this one: class AddCommentsToUsers < ActiveRecord::Migration def change add_column :users, :comments, :text end end Now with Code Climate I am warned of an issue: Missing frozen string literal…
John Smith
  • 6,105
  • 16
  • 58
  • 109
11
votes
0 answers

How to overwrite Code Climate test coverage report to the same commit

I am using cc-test-reporter to upload the test coverage result to Code Climate from CircleCI But running the same build fails with the message: Error: response from https://api.codeclimate.com/v1/test_reports. HTTP 409: A test report for commit…
Colin Wang
  • 6,778
  • 5
  • 26
  • 42
8
votes
0 answers

How to configure code climate to ignore lines of code with log statements

Is it possible to configure code climate, so it does not count lines only logging? I like the idea of having a threshold per function, lets say 25 lines, but adding verbose logging should not create a code climate issue in my opinion.
DauleDK
  • 3,313
  • 11
  • 55
  • 98
8
votes
2 answers

How do I integrate travis ci with codeclimate test coverage in Python?

I'm trying to make my Travis CI send test coverage data to Code Climate service, but documentation on Code Climate and Travis CI do not describe in detail how to do this using Python. Still its supported feature according Code Climate and Travis…
7
votes
2 answers

How to setup code climate test coverage for jenkins CI

I am using code climate for code quality and test coverage. I have added the gem and code in spec_helper.rb to start the coverage. In the next step code as per the documentation: When you run your tests on CI, set the CODECLIMATE_REPO_TOKEN…
Ajeet Khan
  • 8,582
  • 8
  • 42
  • 65
5
votes
2 answers

Gitlab and Code-Climate - what does it really cover? nothing?

I setup code quality step, following this gitlab doc (very poor doc): https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html Now the code quality step runs and I get the report (perfect). But, it seems that it doesn"t check…
Tyvain
  • 2,640
  • 6
  • 36
  • 70
5
votes
1 answer

Can i use my own plugin or extend in stylelint engine with CodeClimate

In my stylelintrc.js module.exports = { "extends": [ "stylelint-config-standard", "stylelint-config-css-modules", ], "plugins": [ "stylelint-performance-animation", ], ... In codeclimat.yaml i turn on stylelint engine and take…
Konstantin
  • 73
  • 6
5
votes
2 answers

Tox running command based on env variable

My current workflow is github PRs and Builds tested on Travis CI, with tox testing pytest and reporting coverage to codeclimate. travis.yml os: - linux sudo: false language: python python: - "3.3" - "3.4" - "3.5" - "pypy3" - "pypy3.3-5.2-alpha1" -…
iScrE4m
  • 882
  • 1
  • 12
  • 31
4
votes
1 answer

Is it possible to skip codeclimate analysis for changes to certain files

Codeclimate analysis runs for every pull request that is raised. However, I would like it to skip the analysis when changes are done to files under the excluded folders. Is it possible to configure such behaviour? The aim is to reduce the time…
SamD
  • 120
  • 1
  • 10
4
votes
3 answers

Codeclimate test coverage formatter for Golang

Nowhere in Codeclimate docs written how to specify coverage formatter. But when I'm trying to send coverage to Codeclimate: ./cc-test-reporter before-build ./cc-test-reporter after-build It is failing: Error: could not find any viable formatter.…
I159
  • 29,741
  • 31
  • 97
  • 132
4
votes
2 answers

CodeClimate::TestReporter::InvalidPayload

I'm facing with the following problem, trying to execute code climate reporter on .travis.yml: Code Climate encountered an exception: CodeClimate::TestReporter::InvalidPayload No source files were found in the test report payload Is there anybody…
3
votes
1 answer

Running Codeclimate locally

I try to install Codeclimate via docker by reading the Codeclimate readme docs. In order to test Codeclimate locally. I made a new folder and put hello.php and .codeclimate.yml. The following is my hello.php
Set Kyar Wa Lar
  • 4,488
  • 4
  • 30
  • 57
3
votes
1 answer

codeclimate - eslint errors on ember app

Looking for some clarity around a few of these codeclimate ESLINT issues. They are lacking documentation on http://eslint.org/docs/rules/. I'm hesitant on just "excluding" or removing them from the .eslintrc as I'm sure they have worth, I just can't…
3
votes
0 answers

Ember: how to get coverage on the actual code, not the transpiled code

I'm trying to set up CI on existing projects, some use CoffeeScript, some use ES6 syntax. But I can't find a way to get a proper code coverage on the actual code. All I have is the coverage on the transpiled code and it seems I can't even post that…
1
2 3 4 5 6