mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
Fix all whitespace errors
Now nobody's commit should be flagged by Travis unless it actually introduces whitespace errors (which we do want to check for). This doesn't fully sort out indentation everywhere, but does fix all whitespace that Git doesn't like. You can check the whitespace across the entire codebase with: git diff-tree --check "$(git hash-object -t tree /dev/null)" HEAD
This commit is contained in:
parent
b218ccb3ab
commit
9ae1f5504f
@ -24,7 +24,7 @@ install:
|
||||
- luarocks list --outdated --porcelain | awk '{ print $1, $3 }' | xargs --no-run-if-empty -n 2 luarocks install
|
||||
|
||||
script:
|
||||
- git -c core.whitespace=-blank-at-eol,-blank-at-eof,-space-before-tab diff --check $TRAVIS_COMMIT_RANGE
|
||||
- git diff --check $TRAVIS_COMMIT_RANGE
|
||||
- git diff --name-only $TRAVIS_COMMIT_RANGE | grep '\.lua$' | grep -v '^lua/entities/gmod_wire_expression2/core/' | xargs --no-run-if-empty luacheck
|
||||
- luacheck .luacheckrc
|
||||
|
||||
|
@ -73,5 +73,3 @@ void AsyncThread()
|
||||
|
||||
glEnd();
|
||||
}
|
||||
|
||||
|
||||
|
@ -120,4 +120,3 @@ vec2f _a_73,272,440
|
||||
string _s_74,'Y: %f'
|
||||
vec2f _a_76,272,456
|
||||
string _s_77,'Z: %f'
|
||||
|
||||
|
@ -500,5 +500,3 @@ vec4f GL_VROTATE;
|
||||
vec4f GL_VTRANSLATE;
|
||||
vec4f GL_VPERSPECTIVE;
|
||||
vec4f GL_VSCALE,1,1,1,0;
|
||||
|
||||
|
||||
|
@ -154,4 +154,3 @@ db 47,47,47,-1, 66,66,66,-1, 75,75,75,-1, 54,54,54,-1, 66,66,66,-1, 66,66,66,-1;
|
||||
db 64,-1,64,-1, 64,64,64,-1, -1,-1,58,58, 59,59,59,59, 59,59,59,59, 59,59,59,-1;
|
||||
|
||||
db 0; // End string
|
||||
|
||||
|
@ -132,7 +132,7 @@ end
|
||||
|
||||
function ENT:OnRemove()
|
||||
|
||||
for k, _ in pairs( self.clutch_ballsockets ) do
|
||||
for k, v in pairs( self.clutch_ballsockets ) do
|
||||
|
||||
self:RemoveClutch( k )
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
/******************************************************************************\
|
||||
User defined support
|
||||
\******************************************************************************/
|
||||
|
||||
|
@ -186,5 +186,3 @@ end
|
||||
registerCallback("construct", function(self)
|
||||
self.data.effect_burst = wire_expression2_effect_burst_max:GetInt()
|
||||
end)
|
||||
|
||||
|
||||
|
@ -18,5 +18,3 @@ end
|
||||
function TOOL.BuildCPanel(panel)
|
||||
ModelPlug_AddToCPanel(panel, "gate", "wire_datarate", nil, 4)
|
||||
end
|
||||
|
||||
|
||||
|
@ -14,4 +14,3 @@ TOOL.ClientConVar[ "model" ] = "models/jaanus/wiretool/wiretool_gate.mdl"
|
||||
function TOOL.BuildCPanel(panel)
|
||||
WireDermaExts.ModelSelect(panel, "wire_extbus_model", list.Get("Wire_gate_Models"), 5)
|
||||
end
|
||||
|
||||
|
@ -92,4 +92,3 @@ function TOOL.BuildCPanel(panel)
|
||||
panel:CheckBox("#WireWaypointTool_alink","wire_waypoint_alink")
|
||||
panel:CheckBox("#Create Flat to Surface", "wire_waypoint_createflat")
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user