From 0cd0bbd47bec9276e6714b40de350bc40bd9d931 Mon Sep 17 00:00:00 2001 From: Grzegorz Rynkowski Date: Fri, 15 May 2015 16:16:38 +0200 Subject: [PATCH 01/44] Add creating codestyles/ if not exist --- install.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index a461c00..5477a0a 100755 --- a/install.sh +++ b/install.sh @@ -3,14 +3,19 @@ echo "Installing Square code style configs..." -for i in $HOME/Library/Preferences/IntelliJIdea*/codestyles \ - $HOME/Library/Preferences/IdeaIC*/codestyles \ - $HOME/Library/Preferences/AndroidStudio*/codestyles \ - $HOME/.IntelliJIdea*/config/codestyles \ - $HOME/.IdeaIC*/config/codestyles \ - $HOME/.AndroidStudio*/config/codestyles +CONFIGS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs" + +for i in $HOME/Library/Preferences/IntelliJIdea* \ + $HOME/Library/Preferences/IdeaIC* \ + $HOME/Library/Preferences/AndroidStudio* \ + $HOME/.IntelliJIdea*/config \ + $HOME/.IdeaIC*/config \ + $HOME/.AndroidStudio*/config do - cp -frv $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs/* $i 2> /dev/null + if [ -d $i ]; then + mkdir -p $i/codestyles + cp -frv "$CONFIGS"/* $i/codestyles + fi done echo "Done." From 1b8b7047d7be722a41fbe9e4211a813807ad1398 Mon Sep 17 00:00:00 2001 From: Grzegorz Rynkowski Date: Tue, 16 Jun 2015 18:01:04 +0200 Subject: [PATCH 02/44] Removed the ridiculous chopping down of binary expressions Instead I propose "Wrap if long". --- configs/SquareAndroid.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/SquareAndroid.xml b/configs/SquareAndroid.xml index f93f30c..bc6a103 100644 --- a/configs/SquareAndroid.xml +++ b/configs/SquareAndroid.xml @@ -184,7 +184,7 @@