Skip to content

Instantly share code, notes, and snippets.

@SilentImp
Created February 23, 2021 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SilentImp/1cd859ad8bfe818fd986a3889abbf4cc to your computer and use it in GitHub Desktop.
Save SilentImp/1cd859ad8bfe818fd986a3889abbf4cc to your computer and use it in GitHub Desktop.
Processed 0 javascript with GitLab Code Quality
plugins:
duplication:
enabled: true
structure:
enabled: true
nodesecurity:
enabled: true
requiresafe:
enabled: true
tslint:
enabled: true
stages:
- test
include:
- template: Code-Quality.gitlab-ci.yml
code_quality:
stage: test
before_script:
- apk add bash git curl
- ls
variables:
GIT_STRATEGY: fetch
KUBERNETES_CPU_REQUEST: 2000m
KUBERNETES_CPU_LIMIT: 2000m
KUBERNETES_MEMORY_REQUEST: 5Gi
KUBERNETES_MEMORY_LIMIT: 5Gi
REPORT_STDOUT: "true"
CODECLIMATE_DEBUG: "1"
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.22"
artifacts:
expire_in: 1 year
paths: [gl-code-quality-report.json]
reports:
codequality: gl-code-quality-report.json
code_quality_html:
extends: code_quality
before_script:
- apk add bash git curl
- ls
variables:
GIT_STRATEGY: fetch
KUBERNETES_CPU_REQUEST: 2000m
KUBERNETES_CPU_LIMIT: 2000m
KUBERNETES_MEMORY_REQUEST: 5Gi
KUBERNETES_MEMORY_LIMIT: 5Gi
REPORT_STDOUT: "true"
CODECLIMATE_DEBUG: "1"
REPORT_FORMAT: html
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.22"
artifacts:
expire_in: 1 year
paths: [gl-code-quality-report.html]
reports:
codequality: gl-code-quality-report.html
Running with gitlab-runner 13.9.0 (2ebc4dc4)
on gitlab-kubernetes-runner-standard 3SmoSWJz
feature flags: FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY:false, FF_GITLAB_REGISTRY_HELPER_IMAGE:true
Preparing the "kubernetes" executor
00:00
"CPURequest" overwritten with "2000m"
"CPULimit" overwritten with "2000m"
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image docker:19.03.12 ...
Using attach strategy to execute scripts...
Preparing environment
00:11
Waiting for pod gitlab/runner-3smoswjz-project-310-concurrent-0t8vg6 to be running, status is Pending
Running on runner-3smoswjz-project-310-concurrent-0t8vg6 via gitlab-runner-standard-99b5ccb57-d6jzn...
Getting source from Git repository
00:01
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/instapro/instapro-client-codeclimate-poc/.git/
Created fresh repository.
Checking out f77ae622 as stdout...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:23
$ apk add bash git curl
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/8) Installing readline (8.0.4-r0)
(2/8) Installing bash (5.0.17-r0)
Executing bash-5.0.17-r0.post-install
(3/8) Installing nghttp2-libs (1.41.0-r0)
(4/8) Installing libcurl (7.69.1-r3)
(5/8) Installing curl (7.69.1-r3)
(6/8) Installing expat (2.2.9-r1)
(7/8) Installing pcre2 (10.35-r0)
(8/8) Installing git (2.26.2-r0)
Executing busybox-1.31.1-r16.trigger
OK: 28 MiB in 28 packages
$ git clone -v --depth=1 --branch=master https://gitlab-ci-token:${GITLAB_TOKEN}@gitlab.werkspot.com/instapro/bash-library.git $COMMON_SCRIPTS_DIR
Cloning into './.gitlab/assets/bash-library'...
POST git-upload-pack (331 bytes)
POST git-upload-pack (172 bytes)
$ export SOURCE_CODE=$PWD
$ if ! docker info &>/dev/null; then # collapsed multi-line command
$ function propagate_env_vars() { # collapsed multi-line command
$ docker pull --quiet "$CODE_QUALITY_IMAGE"
registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.22
$ docker run \ # collapsed multi-line command
I, [2021-02-23T18:13:54.073545 #1] INFO -- : starting engine structure
D, [2021-02-23T18:13:54.076982 #1] DEBUG -- : /config.json content: {"enabled"=>true, "channel"=>"stable", "include_paths"=>[".csslintrc", "coffeelint.json", ".rubocop.yml", ".eslintrc.yml", ".eslintignore", ".codeclimate.yml"], "debug"=>"1"}
D, [2021-02-23T18:13:54.087751 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-structure-stable-da6fdcbc-c6c3-4996-aa35-babcc8d8d45c", "--cap-drop", "all", "--label", "com.codeclimate.label=88ee89df-1299-42fb-a0d9-8d7af12cb406", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/builds/instapro/instapro-client-codeclimate-poc:/code:ro", "--volume", "/tmp/cc/464b071a-40ac-4d63-b03f-34f68698c7fb:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-structure"]
D, [2021-02-23T18:13:54.423452 #1] DEBUG -- : engine stderr: 11
D, [2021-02-23T18:13:54.423581 #1] DEBUG -- : engine stderr: Parser process id: 11
D, [2021-02-23T18:13:54.423629 #1] DEBUG -- : engine stderr: codeclimate-parser socket not present
D, [2021-02-23T18:13:54.423659 #1] DEBUG -- : engine stderr: waiting 1s...
I, [2021-02-23T18:13:56.095182 #1] INFO -- : finished engine structure
I, [2021-02-23T18:13:56.095307 #1] INFO -- : starting engine duplication
D, [2021-02-23T18:13:56.095463 #1] DEBUG -- : /config.json content: {"enabled"=>true, "config"=>{"languages"=>["ruby", "javascript", "python", "php"]}, "channel"=>"stable", "include_paths"=>[".csslintrc", "coffeelint.json", ".rubocop.yml", ".eslintrc.yml", ".eslintignore", ".codeclimate.yml"], "debug"=>"1"}
D, [2021-02-23T18:13:56.095947 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-duplication-stable-c59ac5ef-1f6d-4206-b78c-1b85a4da2cb2", "--cap-drop", "all", "--label", "com.codeclimate.label=a6db09c2-3f53-452a-bee5-91433502fba1", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/builds/instapro/instapro-client-codeclimate-poc:/code:ro", "--volume", "/tmp/cc/835e6f01-00fd-4da6-b639-035b3ca603ee:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-duplication"]
D, [2021-02-23T18:13:56.371287 #1] DEBUG -- : engine stderr: 11
D, [2021-02-23T18:13:56.371413 #1] DEBUG -- : engine stderr: Parser process id: 11
D, [2021-02-23T18:13:56.371463 #1] DEBUG -- : engine stderr: codeclimate-parser socket not present
D, [2021-02-23T18:13:56.371511 #1] DEBUG -- : engine stderr: waiting 1s...
D, [2021-02-23T18:13:58.089805 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.089431 #1] DEBUG -- : Processing 0 ruby files concurrency=2
D, [2021-02-23T18:13:58.089927 #1] DEBUG -- : engine stderr: /home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.0.0/lib/concurrent/atomic/mutex_atomic_fixnum.rb:80: warning: constant ::Fixnum is deprecated
D, [2021-02-23T18:13:58.109805 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.109389 #1] DEBUG -- : Processed 0 ruby files
D, [2021-02-23T18:13:58.109898 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.109574 #1] DEBUG -- : Reported 0 violations...
D, [2021-02-23T18:13:58.109993 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.109802 #1] DEBUG -- : Processing 0 javascript files concurrency=2
D, [2021-02-23T18:13:58.110495 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.110227 #1] DEBUG -- : Processed 0 javascript files
D, [2021-02-23T18:13:58.110811 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.110587 #1] DEBUG -- : Reported 0 violations...
D, [2021-02-23T18:13:58.111258 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.110734 #1] DEBUG -- : Processing 0 python files concurrency=2
D, [2021-02-23T18:13:58.111658 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.111344 #1] DEBUG -- : Processed 0 python files
D, [2021-02-23T18:13:58.111751 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.111519 #1] DEBUG -- : Reported 0 violations...
D, [2021-02-23T18:13:58.111998 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.111771 #1] DEBUG -- : Processing 0 php files concurrency=2
D, [2021-02-23T18:13:58.112371 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.112167 #1] DEBUG -- : Processed 0 php files
D, [2021-02-23T18:13:58.112567 #1] DEBUG -- : engine stderr: D, [2021-02-23T18:13:58.112317 #1] DEBUG -- : Reported 0 violations...
I, [2021-02-23T18:13:58.240887 #1] INFO -- : finished engine duplication
I, [2021-02-23T18:13:58.241193 #1] INFO -- : starting engine csslint
D, [2021-02-23T18:13:58.241298 #1] DEBUG -- : /config.json content: {"enabled"=>true, "channel"=>"stable", "include_paths"=>[".csslintrc", "coffeelint.json", ".rubocop.yml", ".eslintrc.yml", ".eslintignore", ".codeclimate.yml"], "debug"=>"1"}
D, [2021-02-23T18:13:58.241702 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-csslint-stable-820fec20-6780-4a74-bfe2-50ad998dd43b", "--cap-drop", "all", "--label", "com.codeclimate.label=512c23d9-6f48-4459-bea8-59d33dfeaa34", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/builds/instapro/instapro-client-codeclimate-poc:/code:ro", "--volume", "/tmp/cc/4f971ed0-e704-4b8d-b9cc-2e91afd24969:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-csslint"]
I, [2021-02-23T18:13:58.754359 #1] INFO -- : finished engine csslint
I, [2021-02-23T18:13:58.754481 #1] INFO -- : starting engine coffeelint
D, [2021-02-23T18:13:58.754593 #1] DEBUG -- : /config.json content: {"enabled"=>true, "channel"=>"stable", "include_paths"=>[".csslintrc", "coffeelint.json", ".rubocop.yml", ".eslintrc.yml", ".eslintignore", ".codeclimate.yml"], "debug"=>"1"}
D, [2021-02-23T18:13:58.755094 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-coffeelint-stable-3fcc2152-aa14-479c-baae-dcef3a5b6e49", "--cap-drop", "all", "--label", "com.codeclimate.label=e11cdec8-4de4-4821-b884-794e5eb54d23", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/builds/instapro/instapro-client-codeclimate-poc:/code:ro", "--volume", "/tmp/cc/2834a3a4-4e4a-4a62-9ade-ac347f01e06c:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-coffeelint"]
I, [2021-02-23T18:13:59.213152 #1] INFO -- : finished engine coffeelint
I, [2021-02-23T18:13:59.213268 #1] INFO -- : starting engine eslint
D, [2021-02-23T18:13:59.213396 #1] DEBUG -- : /config.json content: {"enabled"=>true, "channel"=>"stable", "include_paths"=>[".csslintrc", "coffeelint.json", ".rubocop.yml", ".eslintrc.yml", ".eslintignore", ".codeclimate.yml"], "debug"=>"1"}
D, [2021-02-23T18:13:59.213857 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-eslint-stable-1d350779-b632-4fc6-ab23-eb27e7347a80", "--cap-drop", "all", "--label", "com.codeclimate.label=1a1d35b8-c8a3-4537-8c82-1737ce474062", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/builds/instapro/instapro-client-codeclimate-poc:/code:ro", "--volume", "/tmp/cc/e03b09d2-5584-4542-8bc2-8f4d23661496:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-eslint"]
D, [2021-02-23T18:14:00.061857 #1] DEBUG -- : engine stderr: ESLint is running with the default parser.
D, [2021-02-23T18:14:00.063851 #1] DEBUG -- : engine stderr:
I, [2021-02-23T18:14:00.190671 #1] INFO -- : finished engine eslint
I, [2021-02-23T18:14:00.190793 #1] INFO -- : starting engine fixme
D, [2021-02-23T18:14:00.190953 #1] DEBUG -- : /config.json content: {"enabled"=>true, "channel"=>"stable", "include_paths"=>[".csslintrc", "coffeelint.json", ".rubocop.yml", ".eslintrc.yml", ".eslintignore", ".codeclimate.yml"], "debug"=>"1"}
D, [2021-02-23T18:14:00.191676 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-fixme-stable-827b81d7-2968-46ef-b75f-2b59021997af", "--cap-drop", "all", "--label", "com.codeclimate.label=04543a28-5dbe-4c90-99fc-435a53db95a3", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/builds/instapro/instapro-client-codeclimate-poc:/code:ro", "--volume", "/tmp/cc/ed745960-2f61-4fd2-9dbd-d08a846c5e8a:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-fixme"]
I, [2021-02-23T18:14:00.725890 #1] INFO -- : finished engine fixme
I, [2021-02-23T18:14:00.726012 #1] INFO -- : starting engine rubocop
D, [2021-02-23T18:14:00.726164 #1] DEBUG -- : /config.json content: {"enabled"=>true, "channel"=>"stable", "include_paths"=>[".csslintrc", "coffeelint.json", ".rubocop.yml", ".eslintrc.yml", ".eslintignore", ".codeclimate.yml"], "debug"=>"1"}
D, [2021-02-23T18:14:00.727794 #1] DEBUG -- : docker run: ["docker", "run", "--name", "cc-engines-rubocop-stable-cecec86b-5c8d-4942-9aef-7701ea1846a6", "--cap-drop", "all", "--label", "com.codeclimate.label=71a706cf-d62d-4ad6-8261-45230ea031b4", "--log-driver", "none", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/builds/instapro/instapro-client-codeclimate-poc:/code:ro", "--volume", "/tmp/cc/03dcb786-8b62-4560-bd50-cb1f26cd33c2:/config.json:ro", "--user", "9000:9000", "--memory", "1024000000", "codeclimate/codeclimate-rubocop"]
D, [2021-02-23T18:14:01.235359 #1] DEBUG -- : engine stderr: NOTE: Gem.gunzip is deprecated; use Gem::Util.gunzip instead. It will be removed on or after 2018-12-01.
D, [2021-02-23T18:14:01.235485 #1] DEBUG -- : engine stderr: Gem.gunzip called from /usr/local/bundle/gems/unicode-display_width-1.3.0/lib/unicode/display_width/index.rb:5.
D, [2021-02-23T18:14:02.872181 #1] DEBUG -- : engine stderr: The `Lint/InvalidCharacterLiteral` cop has been removed since it was never being actually triggered.
D, [2021-02-23T18:14:02.872278 #1] DEBUG -- : engine stderr: (obsolete configuration found in .rubocop.yml, please update it)
D, [2021-02-23T18:14:02.873002 #1] DEBUG -- : engine stderr: Warning: unrecognized cop Lint/InvalidCharacterLiteral found in .rubocop.yml
D, [2021-02-23T18:14:02.873738 #1] DEBUG -- : engine stderr: Warning: unrecognized cop Layout/SpaceInsideBrackets found in .rubocop.yml
I, [2021-02-23T18:14:03.010959 #1] INFO -- : finished engine rubocop
[]
Uploading artifacts for successful job
00:01
Uploading artifacts...
WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload
Cleaning up file based variables
00:00
Job succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment