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

Gitlab code quality E0401: unable to import

I am using gitlab code quality with Code-Quality.gitlab-ci.yml in my configuration (it relies on Code Climate), and I have import errors on the code quality report as shown below: I also have the libraries (pandas here) in requirements.txt at the…
Adrien Pacifico
  • 1,649
  • 1
  • 15
  • 33
0
votes
1 answer

Is there a way to make codeclimate ignore unmodified lines in PRs?

We've just turned on CodeClimate for our PRs, and have a ton of refactoring to do, but it's making our PR's fail for lines of code that weren't touched. i.e. if I modify anywhere in a file, it will analyze every line in said file. Is there a way to…
s89_
  • 1,533
  • 3
  • 25
  • 40
0
votes
1 answer

Need a more "DRY" solution for my CircleCI tests

Currently I have a working circleci yaml file but it runs a separate test script for each app. It's not "DRY" and I think a better solution would be to run the test script from the root and loop over each app...but I can't figure out how to do that.…
Sofia Cole
  • 45
  • 6
0
votes
1 answer

gocov does not upload the complete test-coverage result into codeclimate

Based on this question on StackOverflow, I added test coverage into my Gitlab CI/CD YAML file, and I expect the result gets uploaded into codeclimate. - go get github.com/axw/gocov/gocov - export CC_TEST_REPORTER_ID=My_REPO_ID - curl -L…
Mazdak
  • 771
  • 2
  • 11
  • 24
0
votes
1 answer

Why Code climate complexity issue in python

I have written this code and code climate shows: Function _filter_empty_entities has a Cognitive Complexity of 7 (exceeds 5 allowed) def _filter_empty_entities(payload): attrs = list(iter_entity_attrs(payload)) Flag = False for j in…
damini chopra
  • 133
  • 2
  • 12
0
votes
1 answer

Receiving odd error while downloading PRISM climate data. How to download a list of dates?

Trying to get mean temperature for a certain date over the last 5 years. Keep running into this same error. Any suggestions would be greatly appreciated! get_prism_dailys(type="tmean", dates = as.Date("2018-06-01", "2017-06-01", "2016-06-01",…
m1994
  • 13
  • 4
0
votes
1 answer

Integrate jacoco code coverage reports from Azure devops to Code climate

We are using Azure devops to run our build and jacoco to do code coverage in azure build agent. We want to integrate code coverage reports to code climate. Has anyone tried it ? I tried searching for proper documentation or steps and it seems to be…
SunilS
  • 2,030
  • 5
  • 34
  • 62
0
votes
1 answer

Code Climate test reporter configuration in codeclimate.yml

The Code Climate advanced configuration documentation covers all configuration except test reporters. Can the Code Climate test reporters be configured using codeclimate.yml or codeclimate.json so that configuration can be placed under version…
Randall
  • 725
  • 9
  • 27
0
votes
1 answer

codeclimate validate-config Error

Am new to code climate and am facing this error when i run my github project on codeclimate. codeclimate validate-config ERROR: Unable to parse: (): found unexpected end of stream while scanning a quoted scalar at line 23 column 5 Below…
Lutaaya Huzaifah Idris
  • 3,596
  • 8
  • 38
  • 77
0
votes
0 answers

How to configure code climate to count the lines of code in a Haskell project

Code climate counts the lines of code in our project, but it seems to ignore Haskell files (only Java files are counted). Is there a way to configure code climate to change this behavior?
Damian Nadales
  • 4,907
  • 1
  • 21
  • 34
0
votes
1 answer

Updating .codeclimate.yml to use Python 3 as well as other languages

I currently have a .codeclimate.yml which starts as follows: --- engines: duplication: enabled: true config: languages: - ruby - javascript - python - php That is, CodeClimate is configured to work for…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
0
votes
1 answer

CodeClimate and Travis configuration ignoring commands

I'm trying to setup Travis and CodeClimate integration but after setting test coverage configuration, my build started to fail. My .travis.yml file contains something like language: ruby rvm: - 2.5.0 branches: only: - master services: -…
0
votes
0 answers

How do I grep file contents to see if it ends in a newline?

I'm using CodeClimate's grep engine and I would like a pattern to verify that our code files end with a blank line. I've seen a lot of posts explaining how to count and find blank lines, but I want to specific check EOF.
Josh
  • 338
  • 3
  • 14
0
votes
1 answer

why would Codeclimate be unable to show gpa?

What are the possible reasons a code climate gap badge would show up as a question mark/unknown? The other badges are working however, I can see number of issues, and % LoC Covered badges. Here's my .codeclimate.yml file engines: rubocop: …
american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80
0
votes
1 answer

Run eslint integration only if there are changed js files

I use code-climate integration in GitHub for a project and one of the engines in code climate is eslint. As of now, whenever a pull request is raised, eslint engine runs and checks for any issues and this is consuming a lot of time. The engines runs…
Akshay
  • 790
  • 2
  • 8
  • 22