Skip to content

Instantly share code, notes, and snippets.

@daften
Created December 15, 2016 01:41
Show Gist options
  • Save daften/f5351066fde2bf13dd9a9dfe1c47994e to your computer and use it in GitHub Desktop.
Save daften/f5351066fde2bf13dd9a9dfe1c47994e to your computer and use it in GitHub Desktop.
robo-drupal-console git:(feature/codeclimate) ✗ docker run \
--interactive --tty --rm \
--env CODECLIMATE_DEBUG=1 \
--env CODECLIMATE_CODE="/code" \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
codeclimate/codeclimate analyze
Starting analysis
[DEBUG] phpcodesniffer:stable engine config: {"enabled":true,"config":{"standard":"PSR1,PSR2"},"include_paths":[".codeclimate.yml",".editorconfig",".gitignore",".scrutinizer.yml",".travis.yml","build/","composer.json","composer.lock","LICENSE","README.md","RoboFile.php","src/","tests/"]}
[DEBUG] docker run: ["docker", "run", "--name", "cc-engines-phpcodesniffer-stable-aa6cf2ed-2b7d-4b56-ad1c-cd8095621d1c", "--cap-drop", "all", "--label", "com.codeclimate.label=27bdbd10-0fe4-4079-9152-8db1d34043ad", "--memory", "512000000", "--memory-swap", "-1", "--net", "none", "--rm", "--volume", "/code:/code:ro", "--volume", "/tmp/cc/08ccc73e-d8d6-4b83-bf8f-69fdb5818518:/config.json:ro", "--user", "9000:9000", "codeclimate/codeclimate-phpcodesniffer"]
[DEBUG] phpcodesniffer:stable engine output: ERROR: The file "RoboFile.php" does not exist.
Usage: phpcs [-nwlsaepqvi] [-d key[=value]] [--colors] [--no-colors] [--stdin-path=<stdinPath>]
[--report=<report>] [--report-file=<reportFile>] [--report-<report>=<reportFile>] ...
[--report-width=<reportWidth>] [--generator=<generator>] [--tab-width=<tabWidth>]
[--severity=<severity>] [--error-severity=<severity>] [--warning-severity=<severity>]
[--runtime-set key value] [--config-set key value] [--config-delete key] [--config-show]
[--standard=<standard>] [--sniffs=<sniffs>] [--exclude=<sniffs>] [--encoding=<encoding>]
[--extensions=<extensions>] [--ignore=<patterns>] [--bootstrap=<bootstrap>]
[--file-list=<fileList>] <file> ...
Set runtime value (see --config-set)
-n Do not print warnings (shortcut for --warning-severity=0)
-w Print both warnings and errors (this is the default)
-l Local directory only, no recursion
-s Show sniff codes in all reports
-a Run interactively
-e Explain a standard by showing the sniffs it includes
-p Show progress of the run
-q Quiet mode; disables progress and verbose output
-v[v][v] Print verbose output
-i Show a list of installed coding standards
-d Set the [key] php.ini value to [value] or [true] if value is omitted
--help Print this help message
--version Print version information
--colors Use colors in output
--no-colors Do not use colors in output (this is the default)
<file> One or more files and/or directories to check
<fileList> A file containing a list of files and/or directories to check (one per line)
<stdinPath> If processing STDIN, the file path that STDIN will be processed as
<bootstrap> A comma separated list of files to run before processing starts
<encoding> The encoding of the files being checked (default is iso-8859-1)
<extensions> A comma separated list of file extensions to check
(extension filtering only valid when checking a directory)
The type of the file can be specified using: ext/type
e.g., module/php,es/js
<generator> Uses either the "HTML", "Markdown" or "Text" generator
(forces documentation generation instead of checking)
<patterns> A comma separated list of patterns to ignore files and directories
<report> Print either the "full", "xml", "checkstyle", "csv"
"json", "emacs", "source", "summary", "diff", "junit"
"svnblame", "gitblame", "hgblame" or "notifysend" report
(the "full" report is printed by default)
<reportFile> Write the report to the specified file path
<reportWidth> How many columns wide screen reports should be printed
or set to "auto" to use current screen width, where supported
<sniffs> A comma separated list of sniff codes to include or exclude during checking
(all sniffs must be part of the specified standard)
<severity> The minimum severity required to display an error or warning
<standard> The name or path of the coding standard to use
<tabWidth> The number of spaces each tab represents
error: (JSON::ParserError) 757: unexpected token at 'ERROR: The file "RoboFile.php" does not exist.
Usage: phpcs [-nwlsaepqvi] [-d key[=value]] [--colors] [--no-colors] [--stdin-path=<stdinPath>]
[--report=<report>] [--report-file=<reportFile>] [--report-<report>=<reportFile>] ...
[--report-width=<reportWidth>] [--generator=<generator>] [--tab-width=<tabWidth>]
[--severity=<severity>] [--error-severity=<severity>] [--warning-severity=<severity>]
[--runtime-set key value] [--config-set key value] [--config-delete key] [--config-show]
[--standard=<standard>] [--sniffs=<sniffs>] [--exclude=<sniffs>] [--encoding=<encoding>]
[--extensions=<extensions>] [--ignore=<patterns>] [--bootstrap=<bootstrap>]
[--file-list=<fileList>] <file> ...
Set runtime value (see --config-set)
-n Do not print warnings (shortcut for --warning-severity=0)
-w Print both warnings and errors (this is the default)
-l Local directory only, no recursion
-s Show sniff codes in all reports
-a Run interactively
-e Explain a standard by showing the sniffs it includes
-p Show progress of the run
-q Quiet mode; disables progress and verbose output
-v[v][v] Print verbose output
-i Show a list of installed coding standards
-d Set the [key] php.ini value to [value] or [true] if value is omitted
--help Print this help message
--version Print version information
--colors Use colors in output
--no-colors Do not use colors in output (this is the default)
<file> One or more files and/or directories to check
<fileList> A file containing a list of files and/or directories to check (one per line)
<stdinPath> If processing STDIN, the file path that STDIN will be processed as
<bootstrap> A comma separated list of files to run before processing starts
<encoding> The encoding of the files being checked (default is iso-8859-1)
<extensions> A comma separated list of file extensions to check
(extension filtering only valid when checking a directory)
The type of the file can be specified using: ext/type
e.g., module/php,es/js
<generator> Uses either the "HTML", "Markdown" or "Text" generator
(forces documentation generation instead of checking)
<patterns> A comma separated list of patterns to ignore files and directories
<report> Print either the "full", "xml", "checkstyle", "csv"
"json", "emacs", "source", "summary", "diff", "junit"
"svnblame", "gitblame", "hgblame" or "notifysend" report
(the "full" report is printed by default)
<reportFile> Write the report to the specified file path
<reportWidth> How many columns wide screen reports should be printed
or set to "auto" to use current screen width, where supported
<sniffs> A comma separated list of sniff codes to include or exclude during checking
(all sniffs must be part of the specified standard)
<severity> The minimum severity required to display an error or warning
<standard> The name or path of the coding standard to use
<tabWidth> The number of spaces each tab represents
'
[DEBUG] backtrace: /usr/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/common.rb:155:in `parse'
/usr/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/common.rb:155:in `parse'
/usr/src/app/lib/cc/analyzer/issue.rb:50:in `parsed_output'
/usr/src/app/lib/cc/analyzer/issue.rb:21:in `as_json'
/usr/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/json/encoding.rb:33:in `encode'
/usr/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/json/encoding.rb:20:in `encode'
/usr/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/object/json.rb:37:in `to_json'
/usr/src/app/lib/cc/analyzer/engine_output.rb:5:in `to_json'
/usr/src/app/lib/cc/analyzer/engine.rb:46:in `block in run'
/usr/src/app/lib/cc/analyzer/container.rb:120:in `call'
/usr/src/app/lib/cc/analyzer/container.rb:120:in `block (2 levels) in read_stdout'
/usr/src/app/lib/cc/analyzer/container.rb:117:in `each_line'
/usr/src/app/lib/cc/analyzer/container.rb:117:in `block in read_stdout'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment