https://github.com/umutphp/phpmetrics-action
Static analysis tool for PHP
https://github.com/umutphp/phpmetrics-action
Last synced: 10 months ago
JSON representation
Static analysis tool for PHP
- Host: GitHub
- URL: https://github.com/umutphp/phpmetrics-action
- Owner: umutphp
- License: mit
- Created: 2020-03-11T21:59:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T07:54:05.000Z (almost 6 years ago)
- Last Synced: 2025-03-25T18:41:16.125Z (11 months ago)
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PhpMetrics Action
[PhpMetrics](https://github.com/phpmetrics/PhpMetrics) provides metrics about PHP project and classes, with beautiful and readable HTML report.
## Inputs
### `folder`
**Not Required** The path of the folder to scan. Default `"."`.
## Example usage
```yaml
name: PhpMetrics Action
on: [push]
jobs:
phpmetrics-action:
runs-on: ubuntu-latest
name: PhpMetrics Action
steps:
- name: Checkout
uses: actions/checkout@v2
- name: PhpMetrics Scan
uses: umutphp/phpmetrics-action@v1
- name: Upload HTML Report
uses: actions/upload-artifact@v1
with:
name: HTML Report
path: phpmetrics.html
- name: Upload XML Report
uses: actions/upload-artifact@v1
with:
name: HTML Report
path: phpmetrics.xml
- name: Upload Violations Report
uses: actions/upload-artifact@v1
with:
name: HTML Report
path: violations.xml
```