Releases: FPtje/GLuaFixer
1.24.1
1.24.0
1.23.0
This release contains no new features in the executable, but it does come with a newly supported platform! Aarch64-linux!
This is what Raspberry Pis and similar embedded systems run.
Note the naming of the two Linux releases:
x86_64-linux
- For most computers that just run Linux. If you're in doubt, choose this oneaarch64-linux
- For embedded Linux systems, such as the Raspberry Pi, or other systems that run Linux on an ARM64 platform.
1.22.0
- Add: When selecting the GitHub output format, also print in the standard output format. #139
- Add:
lint_spaceAfterComma
andlint_spaceBeforeComma
. Disabled by default. #138 - Fix
lint_ignoreFiles
not ignoring*.lua
: #136 - Rename
(lint|prettyprint)_spaceAfter...
to(lint|prettyprint)_spaceBetween...
for brackets, parentheses and braces. Note that the old options still work. #137 - Fix warning message being wrong for spaces before end brackets. It requested the removal of a space after the bracket instead of before. #137
1.21.1
1.21.0
This release comes with some new features:
-
Linting the adding of removing spaces between parentheses, braces and brackets. E.g. it will warn you for
print( 1 )
to turn it intoprint(1)
. Note that this depends on theprettyprint_spaceAfterParens
andprettyprint_spaceEmptyParens
options. If those are set such that you want spaces, then it will actually warn you to turnprint(1)
intoprint( 1 )
.Thanks to @wrefgtzweve in #126 for the idea!
-
@brandonsturgeon made an improvement in the Github formatting in #122, making warnings and error messages appear below the affected code, rather than in between.
-
Thanks also to @brandonsturgeon, GitHub will now show a short title of an issue in GitHub actions. See #124
1.20.1
This release consists of a change in the executable for Linux. This is now a static executable, rather than a dynamic one. This has some benefits:
- Works on more Linux distributions
- No more hassle with fixing interpreter paths
- Faster startup time of the executable
For Windows and OSX the releases remain exactly the same.
1.20.0
This exciting new release brings OSX support! This has been requested several times in the past, so I've given in and added a Semaphore CI job to automatically build it.
I still don't have an OSX device, but the Semaphore job runs the executable, so it should work.
Other changes:
1.19.1
Update 01-03-2022
I have attempted to create an OSX release. Please tell me if it works.
Thanks to @cannon, this release comes with an amazing new feature: automatically removing redundant parameters. There are three new options that control how this works:
prettyprint_removeRedundantParens
: On by default. Whether to remove unnecessary parentheses (e.g.x = (1 + 2)
,if ((1) + (2) == 3) then
)prettyprint_minimizeParens
: Off by default. Removes parentheses which are unnecessary due to operator precedence (e.g.(1 * 2) + 3
). This option also removes redundant parameters, regardless of whetherprettyprint_removeRedundantParens
is enabled.prettyprint_assumeOperatorAssociativity
: On by default. Only takes effect whenprettyprint_minimizeParens
istrue
. It decides whether parameters can be removed when the involved operators are assumed associative. Examples:a * (b * c)
,a and (b and c)
. This assumption is generally true, except for floating point numbers, where removing parentheses can actually change the outcome of the calculation. See Stack Overflow. This option is set totrue
by default, because the expectation is that this will not be problematic even if it affects your code. In a very rare case, this might cause trouble, though. You might want to consider turning this off if you have floating point code that heavily relies on evaluation order. You may also choose to leave this option on and ensure evaluation order by explicitly setting variables.
Note: This was originally supposed to be in release 1.19.0, but it turned out my other device had some unpushed commits. This release replaces 1.19.0.