Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archtaqi/php-metrics
PhpMetrics Static analyzer tool for PHP Customize, Installed using Ansible
https://github.com/archtaqi/php-metrics
ansible jenkins php phpcs phpmd phpstan static-code-analysis
Last synced: 21 days ago
JSON representation
PhpMetrics Static analyzer tool for PHP Customize, Installed using Ansible
- Host: GitHub
- URL: https://github.com/archtaqi/php-metrics
- Owner: ArchTaqi
- Created: 2019-02-15T10:31:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T13:22:38.000Z (almost 6 years ago)
- Last Synced: 2024-11-15T18:21:49.632Z (3 months ago)
- Topics: ansible, jenkins, php, phpcs, phpmd, phpstan, static-code-analysis
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHP Metrics
===========Install php analysers like phpmd, phpcs, phpstan, phplint, phpcpd, ext.
### Setup in Your Project
```bash
mkdir -p etc/ansible/common && mkdir -p etc/ansible/requirementscat > etc/ansible/requirements.yml << EOF
- name: common-php-metrics
src: https://github.com/muhammadtaqi/php-metrics.git
scm: git
EOFcat > etc/ansible/metrics.yml << EOF
---
- hosts: localhost
connection: localroles:
- { role: common-php-metrics }
EOFcat > etc/ansible.cfg << EOF
[defaults]
roles_path=ansible/common
EOF
```## Run ansible playbook
```bash
cd ./etc/
ansible-galaxy install -r ansible/requirements.yml -p ansible/common --force
ansible-playbook ansible/metrics.yml --limit=localhost --flush-cache
```