Skip to content

Commit

Permalink
Fixed trailing whitespace not affected by whitespacestyle config
Browse files Browse the repository at this point in the history
  • Loading branch information
FPtje committed Nov 27, 2015
1 parent 9a79be8 commit 0aa4051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GLuaFixer/AG/LexLint.ag
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sem Token
loc.inconsistent = luaUsed @loc.whitespaceUsed && cUsed @loc.whitespaceUsed
loc.indentation = if @loc.inconsistent then mempty else @loc.whitespaceUsed

+customWarnings = if not (isInfixOf " \n" @space) && not (isInfixOf "\t\n" @space) then id else
+customWarnings = if not (lint_whitespaceStyle @lhs.config) || (not (isInfixOf " \n" @space) && not (isInfixOf "\t\n" @space)) then id else
(:) $ mTokenWarning (locateTrailingWhitespace @lhs.nextTokenPos @space) "Trailing whitespace"

+warnings = if not @loc.inconsistent then id else
Expand Down

0 comments on commit 0aa4051

Please sign in to comment.