Skip to content

Commit b201d0d

Browse files
author
Wesley Kim
committed
Add Square inspection config with UnnecessarySemicolon check
1 parent 20de22a commit b201d0d

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎configs/inspection/Square.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<inspections name="Square">
3+
<inspection_tool class="UnnecessarySemicolon" enabled="true" level="ERROR" enabled_by_default="true" />
4+
</inspections>
5+

‎install.sh‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Installs Square's IntelliJ configs into your user configs.
33

4-
echo "Installing Square code style configs..."
4+
echo "Installing Square IntelliJ configs..."
55

66
CONFIGS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs"
77

@@ -13,8 +13,14 @@ for i in $HOME/Library/Preferences/IntelliJIdea* \
1313
$HOME/.AndroidStudio*/config
1414
do
1515
if [ -d $i ]; then
16+
17+
# Install codestyles
1618
mkdir -p $i/codestyles
17-
cp -frv "$CONFIGS"/* $i/codestyles
19+
cp -frv "$CONFIGS/codestyles"/* $i/codestyles
20+
21+
# Install inspections
22+
mkdir -p $i/inspection
23+
cp -frv "$CONFIGS/inspection"/* $i/inspection
1824
fi
1925
done
2026

0 commit comments

Comments
 (0)