Skip to content

Releases: FPtje/GLuaFixer

1.16.1

12 Jul 20:35
Compare
Choose a tag to compare

Fixed warnings for surface library
Fixed parsing whitespace in labels
Added option to add space in labels when pretty printing

1.16.0

21 Jun 09:50
Compare
Choose a tag to compare

Some cool features this time around

Pretty printer:

  • Remember separators in tables when pretty printing (e.g. {foo, bar; baz} will keep the ; after bar instead of resetting to ,). See #82
  • Add newlines after table fields with semicolons. See #82
  • Add a ; after statements when omitting it would cause the syntax to be ambiguous with the next statement. See #82 (comment)

Parser/linter:

  • Throw syntax error when there are multiple field separators in a row (e.g. {foo,,}).
  • Warn for self.Owner being deprecated. See #79

General

  • Add --test argument to glualint, this tries to parse a file with the two available parsers, tries to pretty print it, then re-parse the result. This can be used to find debug problems in the parser and pretty printer of glualint. Most people will not use this option.

1.15.0

01 Jun 12:45
Compare
Choose a tag to compare

Better pretty printing of tables with nested tables.
See #77

1.14.0

07 Mar 09:56
Compare
Choose a tag to compare

New feature:

Option to ignore files when linting
See #76

1.13.0

28 Dec 19:58
Compare
Choose a tag to compare

New feature:

Option for the pretty printer to reject invalid code
See #74
The option is called
prettyprint_rejectInvalidCode

See the README

1.12.0

04 Nov 20:44
Compare
Choose a tag to compare

New feature: option to dump AST.

Usage:

glualint --dump-ast somefile.lua

When given multiple files or a directory, all ASTs will be dumped.

Little effort was put into making the format understandable. The json generation is almost entirely automatic. It follows the data definition in src/AG/AST.ag, meaning you'll first get a list of top level comments, then recursively a Block, which is a list of statements and either AReturn <something> or NoReturn.

1.11.2

20 Jul 09:27
Compare
Choose a tag to compare

glualint now searches for glualint.json files from the current working directory when reading from stdin. This is necessary to get continuous linting to work in Sublime text. See FPtje/linter-glualint#15

1.11.1

16 Feb 17:54
Compare
Choose a tag to compare

Fixed wrong reported location in shadow warning

See #60

1.11.0

27 Jan 10:52
Compare
Choose a tag to compare

Have glualint exit with status 1 when there are either warnings or errors

1.10.0

12 Jan 12:16
Compare
Choose a tag to compare

Shadow warnings now tell you where the variable was originally defined. This will help understanding why the warning is thrown.