Skip to content

Commit 0530922

Browse files
committedMay 22, 2017
LINT fix & check all files with clang-format
Seems the diff mode doesn't work well, PR are detected as working whereas in master it's shown it's problematic (and really problematic). Use same check everywhere
1 parent 39f4a2f commit 0530922

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed
 

‎src/script/lua_api/l_client.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int ModApiClient::l_display_chat_message(lua_State *L)
8888
// send_chat_message(message)
8989
int ModApiClient::l_send_chat_message(lua_State *L)
9090
{
91-
if (!lua_isstring(L,1))
91+
if (!lua_isstring(L, 1))
9292
return 0;
9393
std::string message = luaL_checkstring(L, 1);
9494
getClient(L)->sendChatMessage(utf8_to_wide(message));

‎util/travis/lint.sh

+1-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ function perform_lint() {
99
echo "LINT: Using binary $CLANG_FORMAT"
1010
CLANG_FORMAT_WHITELIST="util/travis/clang-format-whitelist.txt"
1111

12-
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
13-
# Get list of every file modified in this pull request
14-
files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^src/[^.]*[.]\(cpp\|h\)$' | true)"
15-
else
16-
# Check everything for branch pushes
17-
files_to_lint="$(find src/ -name '*.cpp' -or -name '*.h')"
18-
fi
12+
files_to_lint="$(find src/ -name '*.cpp' -or -name '*.h')"
1913

2014
local errorcount=0
2115
local fail=0

0 commit comments

Comments
 (0)
Please sign in to comment.