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
<?php
echo("Hello");
The following is my .codeclimate.yml
version: "2"
checks:
argument-count:
enabled: true
complex-logic:
enabled: true
file-lines:
enabled: true
method-complexity:
enabled: true
method-count:
enabled: true
method-lines:
enabled: true
nested-control-flow:
enabled: true
return-statements:
enabled: true
similar-code:
enabled: true
identical-code:
enabled: true
And I run the codecliate like the following via my terminal
docker run \
--interactive --tty --rm \
--env CODECLIMATE_CODE="$PWD" \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
codeclimate/codeclimate analyze
It shows like Starting analysis
and after waiting for a long time. I got a timeout error.
Is something wrong with my configuration?