diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c819763 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +# Path-based git attributes +# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html + +# Ignore everything. +/* export-ignore + +# Export white-listed production code only. +/Itineris -export-ignore +/composer.json -export-ignore +/LICENSE -export-ignore +/README.md -export-ignore diff --git a/.github_changelog_generator b/.github_changelog_generator new file mode 100644 index 0000000..05cea14 --- /dev/null +++ b/.github_changelog_generator @@ -0,0 +1,2 @@ +unreleased=true +future-release=0.1.0 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d68aff1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +### Build ### +/release/ + +### Composer ### +/composer.lock +/vendor/ + +### PhpStorm ### +/.idea/ + +### i18n ### +/languages/ diff --git a/Itineris/ruleset.xml b/Itineris/ruleset.xml new file mode 100644 index 0000000..c9ffd77 --- /dev/null +++ b/Itineris/ruleset.xml @@ -0,0 +1,47 @@ + + + Itineris WordPress Coding Standards + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9bd0e0d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Itineris Limited + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..4640904 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# TODO diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..9d3baa1 --- /dev/null +++ b/composer.json @@ -0,0 +1,60 @@ +{ + "name": "itinerisltd/itineris-wp-coding-standards", + "type": "phpcodesniffer-standard", + "description": "PHP_CodeSniffer rules for Itineris WordPress projects", + "keywords": [ + "phpcs", + "standards", + "wordpress", + "itineris" + ], + "homepage": "https://itinerisltd.github.io/itineris-wp-coding-standards/", + "license": "MIT", + "authors": [ + { + "name": "Itineris Limited", + "email": "hello@itineris.co.uk", + "homepage": "https://itineris.co.uk/", + "role": "Company" + }, + { + "name": "Tang Rufus", + "email": "tangrufus@gmail.com", + "homepage": "https://typist.tech/", + "role": "Developer" + } + ], + "require": { + "php": "^7.1", + "automattic/vipwpcs": "^0.3.0", + "wp-coding-standards/wpcs": "^1.1" + }, + "require-dev": { + "roave/security-advisories": "dev-master" + }, + "config": { + "preferred-install": { + "*": "dist" + }, + "sort-packages": true + }, + "extra": { + "branch-alias": { + "dev-master": "0.1.x-dev" + } + }, + "prefer-stable": true, + "scripts": { + "pretag": [ + "composer update", + "composer normalize", + "doctoc README.md", + "github_changelog_generator --no-verbose" + ] + }, + "support": { + "email": "hello@itineris.co.uk", + "issues": "https://github.com/ItinerisLtd/itineris-wp-coding-standards/issues", + "source": "https://github.com/ItinerisLtd/itineris-wp-coding-standards" + } +}