Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Chore: toolchain fix
Browse files Browse the repository at this point in the history
  • Loading branch information
omz13 committed Jan 9, 2019
1 parent 881d547 commit d822e10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ endif
ifndef PHPCBF
$(error "php code beautifier and fixer (squizlabs/php_codesniffer phpcbf) is not available; try make install_tools")
endif
@# check coding standards available
$(if $(shell $(PHPCS) -i | grep omz13-k3p; if [ $$? -eq 1 ] ; then exit 1 ; fi), , $(error cs omz13-k3p not available; try composer install --dev))
$(if $(shell $(PHPCS) -i | grep PHPCompatibility; if [ $$? -eq 1 ] ; then exit 1 ; fi), , $(error cs PHPCompatibility not available; composer install --dev))
$(if $(shell $(PHPCS) -i | grep SlevomatCodingStandard; if [ $$? -eq 1 ] ; then exit 1 ; fi), , $(error cs slevomat not available; try composer install --dev))
# @# check coding standards available
# $(if $(shell $(PHPCS) -i | grep omz13-k3p; if [ $$? -eq 1 ] ; then exit 1 ; fi), , $(error cs omz13-k3p not available; try composer install --dev))
# $(if $(shell $(PHPCS) -i | grep PHPCompatibility; if [ $$? -eq 1 ] ; then exit 1 ; fi), , $(error cs PHPCompatibility not available; composer install --dev))
# $(if $(shell $(PHPCS) -i | grep SlevomatCodingStandard; if [ $$? -eq 1 ] ; then exit 1 ; fi), , $(error cs slevomat not available; try composer install --dev))

ifndef PHPMESS
$(error "php mess tool (phpmd/phpmd) is not available; try composer install --dev")
Expand Down
7 changes: 3 additions & 4 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0"?>
<ruleset name="kirby3-plugin">

<!-- look here -->
<!-- where to look for rules -->
<config name="installed_paths" value="../../omz13/omz13-coding-standard/lib,../../phpcompatibility/php-compatibility,../../slevomat/coding-standard"/>
<!-- what files to process -->
<file>src</file>

<!-- check using this meta-cs -->
<rule ref="omz13-k3p"/>

</ruleset>

0 comments on commit d822e10

Please sign in to comment.