From 01c393b38ab37b154b1c8db9ff2b7566c78d1b95 Mon Sep 17 00:00:00 2001 From: Andrew Howden Date: Fri, 19 May 2017 09:45:27 +0200 Subject: [PATCH] AD-HOC style (*): Added lint configuration Recently, there have been a number of changes in the project. Largely, this has been refactoring related, and no actual code changes have taken place. However, it stands to reason that code changes might be introduced in future. This commit adds some configuration to assist in sanity checking these changes to ensure they adhere to known standards, commonly in use across all sitewards projects. : --- .arclint | 14 ++++++++++++++ CHANGELOG.md | 1 + phpcs.xml | 29 +++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 .arclint create mode 100644 phpcs.xml diff --git a/.arclint b/.arclint new file mode 100644 index 0000000..b380f64 --- /dev/null +++ b/.arclint @@ -0,0 +1,14 @@ +{ + "linters": { + "php": { + "type": "php", + "include": "(\\.(php|phtml)$)" + }, + "phpcs": { + "type": "phpcs", + "bin": "phpcs", + "include": "(\\.(php|phtml)$)", + "phpcs.standard": "phpcs.xml" + } + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md index da3ad0a..e8506c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Changed - Removed orphaned files from the previous deletion of Netzarbeiter/Customer-Activation, hard coded in the repo. @jhoelzl +- (Dev): Added lints ### Notes diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..9f25d0b --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,29 @@ + + + Sitewards coding standards. + + + + + + + *app/code* + *SitewardsStandard* + + + + *app/code* + *SitewardsStandard* + + + + *app/code* + *SitewardsStandard* + + + + + + + +