Skip to content

Commit c8c18f1

Browse files
committed
Merge pull request square#16 from square/wesley-add-inspections
Add Square inspection config with UnnecessarySemicolon check
2 parents 20de22a + b201d0d commit c8c18f1

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed
File renamed without changes.
File renamed without changes.

configs/inspection/Square.xml

+5
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

+8-2
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)