cookbook 'phpcs', '~> 1.4.1'
phpcs (14) Versions 1.4.1 Follow3
Installs/Configures phpcs
cookbook 'phpcs', '~> 1.4.1', :supermarket
knife supermarket install phpcs
knife supermarket download phpcs
phpcs cookbook
Description
This cookbook provides an easy way to install phpcs, PHP Code Sniffer.
More information?
https://github.com/squizlabs/PHP_CodeSniffer
Requirements
Cookbooks:
- php
- composer
- git
Platforms:
- Ubuntu
- Debian
- RHEL
- CentOS
- Fedora
- Scientific
- Amazon
Attributes
default.rb:
-
node['phpcs']['install_method']
- Installation method, "pear" or "composer", defaults to "pear" -
node['phpcs']['version']
- The phpcs version that will be installed, defaults to "latest"
composer.rb:
-
node['phpcs']['prefix']
- The composer.json bin-dir, defaults to "/usr/bin" (composer install method only)
coding_standard.rb:
-
node['phpcs']['coding_standards']
- Hash of optional additional coding standard(s), eg. "Symfony2" => { "repository" => "git://github.com/opensky/Symfony2-coding-standard.git", "reference" => "master" }
Usage
1) include recipe[phpcs]
in a run list
2) change the attributes
--- OR ---
override the attribute on a higher level
References
License and Authors
Author: David Joos development@davidjoos.com
Copyright: 2016, David Joos
Author: David Joos david.joos@escapestudios.com
Author: Escape Studios Development dev@escapestudios.com
Copyright: 2013-2015, Escape Studios
Unless otherwise noted, all files are released under the MIT license,
possible exceptions will contain licensing information in them.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Collaborator Number Metric
1.4.1 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.4.1 failed this metric
FC066: Ensure chef_version is set in metadata: phpcs/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpcs/providers/coding_standard.rb:38
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.4.1 passed this metric
Testing File Metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.4.1 failed this metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.4.1 failed this metric
FC066: Ensure chef_version is set in metadata: phpcs/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpcs/providers/coding_standard.rb:38
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.4.1 passed this metric
Testing File Metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.4.1 failed this metric
FC085: Resource using new_resource.updated_by_last_action to converge resource: phpcs/providers/coding_standard.rb:38
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.4.1 passed this metric
Testing File Metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.4.1 failed this metric
1.4.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number