Skip to content

Commit

Permalink
Keep changelog up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
stian-overasen committed Oct 3, 2024
1 parent 0ca9e54 commit aeb4ed1
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 24 deletions.
63 changes: 42 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,67 @@
# Changelog

## 6.0.0

- Use [WordPress Coding Standards 3.0.0](https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.0.0), [#29](https://github.com/DekodeInteraktiv/coding-standards/pull/29)

## 5.0.0

- Remove inactive Neutron PHP Standard [#26](https://github.com/DekodeInteraktiv/coding-standards/pull/26)
- Keep up with the WPCS develop branch [#27](https://github.com/DekodeInteraktiv/coding-standards/pull/27)

## 4.0.0
* Add support for Composer 2.

- Add support for Composer 2.

## 3.4.0
* Renamed composer package to dekode/coding-standards.

- Renamed composer package to dekode/coding-standards.

## 3.3.0
* Remove exclusion of content/plugins folder. [PR #15](https://github.com/DekodeInteraktiv/coding-standards/pull/15)

- Remove exclusion of content/plugins folder. [PR #15](https://github.com/DekodeInteraktiv/coding-standards/pull/15)

## 3.2.0
* Updated dependencies.

- Updated dependencies.

## 3.1.0
* Exclude `Generic.Arrays.DisallowShortArraySyntax` and `WordPress.PHP.DisallowShortTernary.Found` introduced in [WPCS 2.2.0](https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/2.2.0).

- Exclude `Generic.Arrays.DisallowShortArraySyntax` and `WordPress.PHP.DisallowShortTernary.Found` introduced in [WPCS 2.2.0](https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/2.2.0).

## 1.2.0
* Allow `file_get_contents`
* Remove rule: `PEAR.Functions.FunctionCallSignature.CloseBracketLine`
* Remove rule: `PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket`
* Remove rule: `PEAR.Functions.FunctionCallSignature.MultipleArguments`

- Allow `file_get_contents`
- Remove rule: `PEAR.Functions.FunctionCallSignature.CloseBracketLine`
- Remove rule: `PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket`
- Remove rule: `PEAR.Functions.FunctionCallSignature.MultipleArguments`

## 1.1.0
* Replace `wimg/php-compatibility` with `phpcompatibility/phpcompatibility-wp`. (Cheers @jrfnl! [PR #4](https://github.com/DekodeInteraktiv/coding-standards/pull/4))

- Replace `wimg/php-compatibility` with `phpcompatibility/phpcompatibility-wp`. (Cheers @jrfnl! [PR #4](https://github.com/DekodeInteraktiv/coding-standards/pull/4))

## 1.0.0
* WordPress Coding Standards for PHP_CodeSniffer 1.0
* PHP Compatibility Coding Standard for PHP CodeSniffer 8.2
* Neutron PHP Standard 1.5

- WordPress Coding Standards for PHP_CodeSniffer 1.0
- PHP Compatibility Coding Standard for PHP CodeSniffer 8.2
- Neutron PHP Standard 1.5

## 0.3.1
* Allow slash in hook names

- Allow slash in hook names

## 0.3.0
* Require strict type
* Require type hints
* Removed php7.0 as testVersion. Need to set it in your config

- Require strict type
- Require type hints
- Removed php7.0 as testVersion. Need to set it in your config

## 0.2.0
* Changed composer type to `phpcodesniffer-standard`.
* Added php7.0 as testVersion.
* Exclude folders you don't want to run PHPCS against

- Changed composer type to `phpcodesniffer-standard`.
- Added php7.0 as testVersion.
- Exclude folders you don't want to run PHPCS against

## 0.1.0
* Initial release.

- Initial release.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Dekode Coding Standards

## Installation

Standards can be installed with [Composer](https://getcomposer.org/) dependency manager:

```
$ composer require dekode/coding-standards --dev
```

## Usage

### Basic usage

When the package is installed via Composer you can check your files with the
coding standards via:

Expand All @@ -19,6 +22,7 @@ $ vendor/bin/phpcs --standard="Dekode" <path>
Where `<path>` is at least one file or directory to check, ex `.`.

### Configuration File

To not have to pass all the arguments to the command line, and also make your
own project customizations create a `phpcs.xml.dist` file that contains
something like this:
Expand All @@ -36,11 +40,10 @@ something like this:
<!-- Set required text domain -->
<config name="text_domain" value="my-project" />

<!-- PHP 7.0 and higher. -->
<config name="testVersion" value="7.0-" />
<!-- PHP 8.2 and higher. -->
<config name="testVersion" value="8.2-" />

<!-- Rules -->
<rule ref="Dekode" />
</ruleset>
```

0 comments on commit aeb4ed1

Please sign in to comment.