summaryrefslogtreecommitdiffstats
path: root/src/CheckBasicStyle.lua
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-09-17 14:32:01 +0200
committerworktycho <work.tycho@gmail.com>2015-09-17 14:32:01 +0200
commit2598f3158f0f47c5e082851032bf4a1a3b8d88e5 (patch)
tree4b984cbc73628fac3a3e0ed3aff55a65dfaf82f7 /src/CheckBasicStyle.lua
parentMerge pull request #2457 from cuberite/log (diff)
parentAdded CircleCI for stylechecking. (diff)
downloadcuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar
cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.gz
cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.bz2
cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.lz
cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.xz
cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.zst
cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.zip
Diffstat (limited to 'src/CheckBasicStyle.lua')
-rwxr-xr-xsrc/CheckBasicStyle.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua
index 9521534a8..f9f8f6b4d 100755
--- a/src/CheckBasicStyle.lua
+++ b/src/CheckBasicStyle.lua
@@ -412,6 +412,12 @@ end
-- Process the files in the list:
for _, fnam in ipairs(ToProcess) do
+
+ -- Remove the optional "./" prefix:
+ if (fnam:sub(1, 2) == "./") then
+ fnam = fnam:sub(3)
+ end
+
ProcessItem(fnam)
end