如何安装 phpcodesniffer 引擎以使用 CodeClimate CLI?
How to install phpcodesniffer engine to work with CodeClimate CLI?
我只是想使用 codeclimate cli to analyze my code locally. I'm using Mac OS X 10.10.3 and, as recommended here, I'm using boot2docker。
到目前为止一切都很好。我 运行 codeclimate init
生成 .codeclimate.yml 文件并对其进行了调整。它看起来像这样:
---
engines:
phpcodesniffer:
enabled: true
coffeelint:
enabled: true
eslint:
enabled: true
csslint:
enabled: true
ratings:
paths:
- "**.php"
- "**.coffee"
- "**.js"
- "**.jsx"
- "**.css"
exclude_paths:
- node_modules/**/*
- vendor/**/*
- etc/**/*
- .vagrant/**/*
之后我 运行 codeclimate engines:install
这是我的输出:
Pulling docker images.
WARNING: unknown engine name: phpcodesniffer
...
最后,codeclimate engines:list
输出:
Available engines:
- bundler-audit: Patch-level verification for Bundler
- coffeelint: A style checker for CoffeeScript
- csslint: Automated linting of Cascading Stylesheets
- eslint: A JavaScript/JSX linting utility
- gofmt: gofmt
- golint: golint
- govet: govet
- rubocop: A Ruby static code analyzer, based on the community Ruby style guide.
- rubymotion: Rubymotion-specific rubocop checks
- watson: A young Ember Doctor to help you fix your code.
我做错了什么?我该如何安装这个引擎?
非常感谢
我们 (Code Climate) 最近刚刚发布了 phpcodesniffer
引擎,您当地的 Code Climate CLI 版本可能需要更新才能了解它。
我刚刚更新了我们的文档以解释如何 运行 更新:http://docs.codeclimate.com/article/301-code-climate-cli-troubleshooting#unknown_engine
我只是想使用 codeclimate cli to analyze my code locally. I'm using Mac OS X 10.10.3 and, as recommended here, I'm using boot2docker。
到目前为止一切都很好。我 运行 codeclimate init
生成 .codeclimate.yml 文件并对其进行了调整。它看起来像这样:
---
engines:
phpcodesniffer:
enabled: true
coffeelint:
enabled: true
eslint:
enabled: true
csslint:
enabled: true
ratings:
paths:
- "**.php"
- "**.coffee"
- "**.js"
- "**.jsx"
- "**.css"
exclude_paths:
- node_modules/**/*
- vendor/**/*
- etc/**/*
- .vagrant/**/*
之后我 运行 codeclimate engines:install
这是我的输出:
Pulling docker images.
WARNING: unknown engine name: phpcodesniffer
...
最后,codeclimate engines:list
输出:
Available engines:
- bundler-audit: Patch-level verification for Bundler
- coffeelint: A style checker for CoffeeScript
- csslint: Automated linting of Cascading Stylesheets
- eslint: A JavaScript/JSX linting utility
- gofmt: gofmt
- golint: golint
- govet: govet
- rubocop: A Ruby static code analyzer, based on the community Ruby style guide.
- rubymotion: Rubymotion-specific rubocop checks
- watson: A young Ember Doctor to help you fix your code.
我做错了什么?我该如何安装这个引擎?
非常感谢
我们 (Code Climate) 最近刚刚发布了 phpcodesniffer
引擎,您当地的 Code Climate CLI 版本可能需要更新才能了解它。
我刚刚更新了我们的文档以解释如何 运行 更新:http://docs.codeclimate.com/article/301-code-climate-cli-troubleshooting#unknown_engine