-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tab detection script to travis
Enforces space intead of tabs for whitespace
- Loading branch information
Graham Tremper
committed
Aug 20, 2014
1 parent
959a4e7
commit 4eea1a4
Showing
4 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
# Enforce spaces instead of tabs | ||
# | ||
|
||
ENFORCED_FILES="autowiring examples src CMakeLists.txt" | ||
|
||
# Go to root directory | ||
|
||
if grep -qr "\t" $ENFORCED_FILES | ||
then | ||
echo "The Autowiring project prohibits tabs for spacing." | ||
echo "Tabs found in the following files:" | ||
grep -rn "\t" $ENFORCED_FILES | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ AutoNetServer::AutoNetServer(): | |
CoreThread("AutoNetServer") | ||
{ | ||
} | ||
|
||
//lol tabs | ||
AutoNetServer::~AutoNetServer(){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
#include <thread> | ||
#define NOMINMAX | ||
#endif | ||
|
||
#ifndef _MSC_VER | ||
#include <stdlib.h> | ||
#endif | ||
|