From b201d0d53e37ded9af70aa44bab18e264472f971 Mon Sep 17 00:00:00 2001 From: Wesley Kim Date: Fri, 25 Sep 2015 10:17:02 -0700 Subject: [PATCH 01/40] Add Square inspection config with UnnecessarySemicolon check --- configs/{ => codestyles}/Square.xml | 0 configs/{ => codestyles}/SquareAndroid.xml | 0 configs/inspection/Square.xml | 5 +++++ install.sh | 10 ++++++++-- 4 files changed, 13 insertions(+), 2 deletions(-) rename configs/{ => codestyles}/Square.xml (100%) rename configs/{ => codestyles}/SquareAndroid.xml (100%) create mode 100644 configs/inspection/Square.xml diff --git a/configs/Square.xml b/configs/codestyles/Square.xml similarity index 100% rename from configs/Square.xml rename to configs/codestyles/Square.xml diff --git a/configs/SquareAndroid.xml b/configs/codestyles/SquareAndroid.xml similarity index 100% rename from configs/SquareAndroid.xml rename to configs/codestyles/SquareAndroid.xml diff --git a/configs/inspection/Square.xml b/configs/inspection/Square.xml new file mode 100644 index 0000000..a4ebee8 --- /dev/null +++ b/configs/inspection/Square.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/install.sh b/install.sh index 5477a0a..b7617b1 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash # Installs Square's IntelliJ configs into your user configs. -echo "Installing Square code style configs..." +echo "Installing Square IntelliJ configs..." CONFIGS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs" @@ -13,8 +13,14 @@ for i in $HOME/Library/Preferences/IntelliJIdea* \ $HOME/.AndroidStudio*/config do if [ -d $i ]; then + + # Install codestyles mkdir -p $i/codestyles - cp -frv "$CONFIGS"/* $i/codestyles + cp -frv "$CONFIGS/codestyles"/* $i/codestyles + + # Install inspections + mkdir -p $i/inspection + cp -frv "$CONFIGS/inspection"/* $i/inspection fi done From 4044f59f5db6ba251924f8f801c7fda90249e606 Mon Sep 17 00:00:00 2001 From: Wesley Kim Date: Fri, 25 Sep 2015 10:40:31 -0700 Subject: [PATCH 02/40] Attribute right name for Square Inspection profile --- configs/inspection/Square.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/inspection/Square.xml b/configs/inspection/Square.xml index a4ebee8..f06b122 100644 --- a/configs/inspection/Square.xml +++ b/configs/inspection/Square.xml @@ -1,5 +1,6 @@ - + + From a2d3a12a9e1094411d2040cf49f60fe856134771 Mon Sep 17 00:00:00 2001 From: Davis Gallinghouse Date: Wed, 7 Oct 2015 14:59:54 -0400 Subject: [PATCH 03/40] Report switch statement fall-through as an error --- configs/inspection/Square.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/inspection/Square.xml b/configs/inspection/Square.xml index f06b122..361afca 100644 --- a/configs/inspection/Square.xml +++ b/configs/inspection/Square.xml @@ -1,6 +1,7 @@ From 4540a379a8615872162779d977c666963f985b28 Mon Sep 17 00:00:00 2001 From: Eric Denman Date: Thu, 15 Oct 2015 16:23:36 -0700 Subject: [PATCH 04/40] Update to new file format --- configs/codestyles/Square.xml | 269 +++++++++++++++------------ configs/codestyles/SquareAndroid.xml | 143 +++++++------- 2 files changed, 219 insertions(+), 193 deletions(-) diff --git a/configs/codestyles/Square.xml b/configs/codestyles/Square.xml index e08699a..0d5bd27 100644 --- a/configs/codestyles/Square.xml +++ b/configs/codestyles/Square.xml @@ -1,6 +1,6 @@ - - - + + + + + + + + + \ No newline at end of file diff --git a/configs/codestyles/SquareAndroid.xml b/configs/codestyles/SquareAndroid.xml index bc6a103..e882684 100644 --- a/configs/codestyles/SquareAndroid.xml +++ b/configs/codestyles/SquareAndroid.xml @@ -1,4 +1,3 @@ - - - + \ No newline at end of file From 81428ddd5a7e75935ac2672c75732b08c1dc722f Mon Sep 17 00:00:00 2001 From: "Ravikumar.N" Date: Tue, 15 Dec 2015 02:28:03 +0530 Subject: [PATCH 05/40] Added XML arrangement for SquareAndroid style --- configs/codestyles/SquareAndroid.xml | 89 ++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/configs/codestyles/SquareAndroid.xml b/configs/codestyles/SquareAndroid.xml index e882684..2cebced 100644 --- a/configs/codestyles/SquareAndroid.xml +++ b/configs/codestyles/SquareAndroid.xml @@ -69,6 +69,9 @@