From 4b4259c6992ec4734719ec8720bee87e5c4b3126 Mon Sep 17 00:00:00 2001 From: Rissa Jackson <57572484+rissajackson@users.noreply.github.com> Date: Tue, 10 Aug 2021 16:12:39 -0500 Subject: [PATCH] Remove php_cs.cache which is not part of CodeSniffer --- README.md | 2 +- bin/actions/init | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index 7fddee2..0efd2a3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ composer require tightenco/duster --dev You must run `./vendor/bin/duster init` after installing, or you won't have a local copy of the PHPCS config file, and Duster won't work. -The `init` command will also add `.php_cs.cache` to your `.gitignore` and, optionally, add a GitHub action to run Duster's linters. +The `init` command will also optionally add a GitHub action to run Duster's linters. ## Usage diff --git a/bin/actions/init b/bin/actions/init index fae80fe..8b6ccbe 100755 --- a/bin/actions/init +++ b/bin/actions/init @@ -1,14 +1,5 @@ #!/usr/bin/env bash -printf "\nAdding .php_cs.cache to .gitignore...\n" - -if grep -q ".php_cs.cache" .gitignore; then - printf "\nAlready set.\n" -else - echo ".php_cs.cache" >> .gitignore - printf "\nAdded.\n" -fi - printf "\nPublishing PHPCS config...\n\n" phpcs_filename=".phpcs.xml.dist"