Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf committed Sep 18, 2023
1 parent 9ade71e commit 579e40f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 32 deletions.
35 changes: 35 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contributing

[![PHPCS](https://github.com/cssllc/mu-plugins/actions/workflows/phpcs.yml/badge.svg)](https://github.com/cssllc/mu-plugins/actions/workflows/phpcs.yml)
[![PHPStan](https://github.com/cssllc/mu-plugins/actions/workflows/phpstan.yml/badge.svg)](https://github.com/cssllc/mu-plugins/actions/workflows/phpstan.yml)

## Checks

There are two checks run on pull requests:

1. PHPCS
1. PHPStan

PHPCS and PHPStan are managed via Composer.

### Setup

To setup the checks locally, run the install command with the root of the WordPress install (directory with `composer.json`):

```
composer install
```

### Run

#### PHPCS

```
vendor/bin/phpcs
```

#### PHPStan

```
vendor/bin/phpstan --memory-limit=-1
```
36 changes: 4 additions & 32 deletions .github/readme.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,7 @@
# Contributing
# MU-Plugins

[![PHPCS](https://github.com/cssllc/mu-plugins/actions/workflows/phpcs.yml/badge.svg)](https://github.com/cssllc/mu-plugins/actions/workflows/phpcs.yml)
[![PHPStan](https://github.com/cssllc/mu-plugins/actions/workflows/phpstan.yml/badge.svg)](https://github.com/cssllc/mu-plugins/actions/workflows/phpstan.yml)
Collection of WordPress mu-plugins to enhance and customize a WordPress install.

## Checks
## Contributing

There are two checks run on pull requests:

1. PHPCS
1. PHPStan

PHPCS and PHPStan are managed via Composer.

### Setup

To setup the checks locally, run the install command with the root of the WordPress install (directory with `composer.json`):

```
composer install
```

### Run

#### PHPCS

```
vendor/bin/phpcs
```

#### PHPStan

```
vendor/bin/phpstan --memory-limit=-1
```
Please read the [Contributing doc](contributing.md).

0 comments on commit 579e40f

Please sign in to comment.