Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Square inspection config with UnnecessarySemicolon check #16

Merged
merged 1 commit into from
Sep 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions configs/inspection/Square.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<inspections name="Square">
<inspection_tool class="UnnecessarySemicolon" enabled="true" level="ERROR" enabled_by_default="true" />
</inspections>

10 changes: 8 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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