Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Adding basic linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
fmizzell committed Oct 9, 2018
1 parent d4dfea7 commit ad05fdd
Show file tree
Hide file tree
Showing 6 changed files with 354 additions and 38 deletions.
2 changes: 1 addition & 1 deletion bin/dktl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if [ "$DKTL_MODE" = "DOCKER" ]; then
fi

if [ "$DKTL_MODE" = "HOST" ]; then
if [ "$1" = "drush" ] || [ "$1" = "test:behat" ] || [ "$1" = "test:phpunit" ]; then
if [ "$1" = "drush" ] || [ "$1" = "test:behat" ] || [ "$1" = "test:phpunit" ] || [ "$1" = "test:lint" ] || [ "$1" = "test:lint-fix" ]; then
# For several commands, we want to insert a "--" to pass all arguments as an array.
php $DKTL_DIRECTORY/bin/app.php $1 -- "${@:2}"
else
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"require": {
"consolidation/Robo": "~1",
"pear/archive_tar": "^1.4",
"aws/aws-sdk-php": "^3.67"
"aws/aws-sdk-php": "^3.67",
"dealerdirect/phpcodesniffer-composer-installer": "*",
"drupal/coder": "8.2.12"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit ad05fdd

Please sign in to comment.