From 466c0f11b2d19bbcd3a87ebc6d94b6dd1009670d Mon Sep 17 00:00:00 2001 From: Chuck Greb Date: Fri, 15 Dec 2017 09:41:30 -0500 Subject: [PATCH 1/6] Square -> Button --- README.md | 4 +++- configs/codestyles/{Square.xml => Button.xml} | 4 ++-- configs/codestyles/{SquareAndroid.xml => ButtonAndroid.xml} | 4 ++-- configs/inspection/{Square.xml => Button.xml} | 0 install.sh | 6 +++--- 5 files changed, 10 insertions(+), 8 deletions(-) rename configs/codestyles/{Square.xml => Button.xml} (99%) rename configs/codestyles/{SquareAndroid.xml => ButtonAndroid.xml} (99%) rename configs/inspection/{Square.xml => Button.xml} (100%) diff --git a/README.md b/README.md index 9ad7c0e..1919494 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ Java Code Styles ================ -IntelliJ IDEA code style settings for Square's Java and Android projects. +IntelliJ IDEA code style settings for Button's Java and Android projects. + +Based on original [Square code style](https://github.com/button/java-code-styles) project. Installation diff --git a/configs/codestyles/Square.xml b/configs/codestyles/Button.xml similarity index 99% rename from configs/codestyles/Square.xml rename to configs/codestyles/Button.xml index d07d02a..75e5787 100644 --- a/configs/codestyles/Square.xml +++ b/configs/codestyles/Button.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file + diff --git a/configs/codestyles/SquareAndroid.xml b/configs/codestyles/ButtonAndroid.xml similarity index 99% rename from configs/codestyles/SquareAndroid.xml rename to configs/codestyles/ButtonAndroid.xml index d4ce731..78b8c2a 100644 --- a/configs/codestyles/SquareAndroid.xml +++ b/configs/codestyles/ButtonAndroid.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file + diff --git a/configs/inspection/Square.xml b/configs/inspection/Button.xml similarity index 100% rename from configs/inspection/Square.xml rename to configs/inspection/Button.xml diff --git a/install.sh b/install.sh index a03a9a1..53b5c38 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash -# Installs Square's IntelliJ configs into your user configs. +# Installs Button's IntelliJ configs into your user configs. -echo "Installing Square IntelliJ configs..." +echo "Installing Button IntelliJ configs..." CONFIGS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs" @@ -30,4 +30,4 @@ done echo "Done." echo "" -echo "Restart IntelliJ and/or AndroidStudio, go to preferences, and apply 'Square' or 'SquareAndroid'." +echo "Restart IntelliJ and/or AndroidStudio, go to preferences, and apply 'Button' or 'ButtonAndroid'." From a0716d226cbcba518e654d0fac130b976d530424 Mon Sep 17 00:00:00 2001 From: Chuck Greb Date: Fri, 15 Dec 2017 10:12:46 -0500 Subject: [PATCH 2/6] Java indent 2 -> 4 spaces --- configs/codestyles/Button.xml | 12 ++++++------ configs/codestyles/ButtonAndroid.xml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/configs/codestyles/Button.xml b/configs/codestyles/Button.xml index 75e5787..d00db97 100644 --- a/configs/codestyles/Button.xml +++ b/configs/codestyles/Button.xml @@ -3,9 +3,9 @@