Disable version check when Code Quality image runs
We should disable the version check that happens when the Code Quality image runs. It can result in messages such as:
WARNING: A new version (v0.87.1) is available. Upgrade instructions are available at: https://github.com/codeclimate/codeclimate#packages
In general, the warning is not helpful for customers as there is nothing they can or need to do.
We have also heard reports that this causes the analyzer to fail when running in an offline environment with an error message of:
DEBUG -- : Failed to open TCP connection to versions.codeclimate.com:443 (getaddrinfo: Name does not resolve) (SocketError)
Potential solutions include:
- Specify a --no-check-version arg as mentioned here.
- Use of a global config file that must be mounted inside the code climate image. My understanding is that the app looks for a ~/.config/codeclimate/config.yml and check_version key with the file which should be set to false in order to skip the version check.