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
0 answers

Exclude specific files and directory in ember test coverage (code climate 3.8)

By default coverage includes all files under ember project. As i am unable to coverage adapters/* , serializers/* etc in tests, how can i exclude those files and directories from code climate coverage ?
Manikandan
  • 1,234
  • 11
  • 18
0
votes
2 answers

Eslint Configuration for rule "quotes" is invalid:

Just trying to set up my site with https://codeclimate.com but getting error when it hits my eslint config settings. Getting an error on my quotes rule which is "quotes": [2,"single", { "avoidEscape": true } ] But keep getting…
StevieB
  • 6,263
  • 38
  • 108
  • 193
0
votes
4 answers

Code Climate - Too Complex Error

I'm using code climate on one of my projects, and I'm getting an error for have "too complex" of code. I'm not sure how to make the code it's calling out less complex? Here it is: Method: def apply_json { total_ticket_count:…
Bitwise
  • 8,021
  • 22
  • 70
  • 161
0
votes
1 answer

Explicit variable declaration when using extract()

I have the following snippet: protected function sendEmail($email) { extract($email); $this->transmail->locale($locale) ->timezone($timezone) ->template($template) …
alariva
  • 2,051
  • 1
  • 22
  • 37
0
votes
1 answer

Improving code for similar code found

I passed codeclimate to my code, and I obtained the following: Similar code found in 1 other location This is my code: stradd = 'iterable_item_added' if stradd in ddiff: added = ddiff[stradd] npos_added = parseRoots(added) dics_added =…
FacundoGFlores
  • 7,858
  • 12
  • 64
  • 94
0
votes
2 answers

How to start another build on CodeClimate after the initial build fails?

Here's the first fail build. I forgot to configure file. So I added it again and recommit. Now it won't fire again. Do I have to get a CI (using Travis CI) to first successfully test it first?
Ka Mok
  • 1,937
  • 3
  • 22
  • 47
0
votes
1 answer

How to fix Code Climate test reporter failing in CircleCI

I am trying to add the Code Climate Test Reporter to a Rails app where I am using CircleCI. I have followed the setup instructions along with the error messages I am getting when CircleCI runs the build, however, I am a bit stuck now. My tests all…
analyticsPierce
  • 2,979
  • 9
  • 57
  • 81
0
votes
1 answer

CodeClimate CamelCase issue

I recently tried codeclimate. In the style codeclimate report an error on a parameter that is not camel notation. the function is written like this: function asd ($_par) {} I am aware that it is in the form: function asd ($parameterInCamel)…
XaBerr
  • 350
  • 3
  • 19
0
votes
1 answer

No artifacts found. CircleCI and CodeClimate integration (Node,Mocha,Istanbul)

Istanbul puts everything into coverage folder. In circle.yaml I set the below ENV var as artifact folder. CIRCLE_ARTIFACTS: ~/proj_name/coverage CircleCI doesn't seem to find artifacts. Build says no atrifacts found. Am I missing anything here?
phani
  • 1,134
  • 1
  • 11
  • 24
0
votes
3 answers

How can I monitor the quality of my .NET code?

I am currently developing a Ruby project and I often use code climate to see the quality of my code. The thing is, we will rewrite the code in .NET, so my boss wants to be able to monitor the quality of code by uploading the code into tool just like…
Toolbox
  • 21
  • 8
0
votes
1 answer

Rails 4: Where does .codeclimate.yml go in my public Git project?

I see this at codeclimate.com and I want it to go away. What should I do? I enabled the Code Climate platform and here is where I created my .codeclimate.yml, using the default .yml file Code Climate provides. Code Climate docs say... Add a…
brntsllvn
  • 931
  • 11
  • 18
0
votes
1 answer

using rWBclimate for historical data in R

I am able to get the following code to work: world_dat <- get_ensemble_temp(world,"annualavg",2080,2100) but I would like to change it to historical and start in 1920,1939 (or even earlier). Unfortunately it keeps saying unused arguments …
Jackie
  • 57
  • 1
  • 6
0
votes
0 answers

rails duplication code user_attributes

I have a master admin who can create two different admins [property, content_contributor]. In the master admin's require params I have this class MasterAdmins::ContentContributorsController <…
Anbazhagan p
  • 943
  • 1
  • 14
  • 27
0
votes
1 answer

CodeClimate Coverage error: fatal: Not a git repository - this is a git repository

full output: rspec Run options: include {:focus=>true} All examples were filtered out; ignoring {:focus=>true} .......................... Deprecation Warnings: RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values= is…
NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352
0
votes
3 answers

Rails code quality tools that I can run in development mode without sharing my code

I came across https://codeclimate.com. Super awesome, but I'm working on a project whose code I cannot share with others or Code Climate. Now I would like to be able to improve my code quality and wonder if anyone can suggest tools that do what…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175