-
Notifications
You must be signed in to change notification settings - Fork 326
Comparing changes
Open a pull request
base repository: mpeterv/luacheck
base: 0.15.1
head repository: mpeterv/luacheck
compare: master
Commits on Jun 26, 2016
-
CLI spec: use correct Lua interpreter
When running CLI tests, use the same interpreter that was used to run busted instead of always using `lua`.
Configuration menu - View commit details
-
Copy full SHA for 305f037 - Browse repository at this point
Copy the full SHA 305f037View commit details
Commits on Jun 29, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 0da4bca - Browse repository at this point
Copy the full SHA 0da4bcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef65082 - Browse repository at this point
Copy the full SHA ef65082View commit details
Commits on Jul 2, 2016
-
Configuration menu - View commit details
-
Copy full SHA for d85df51 - Browse repository at this point
Copy the full SHA d85df51View commit details -
Configuration menu - View commit details
-
Copy full SHA for be2d2f9 - Browse repository at this point
Copy the full SHA be2d2f9View commit details -
Recognize mutation with a long key chain
Previously `x.y = 1` was considered a mutation but `x.y.z = 2` was a simple access. Recursively handle indexes in lhs of assignments so that such long key chains are recognized as mutations, too.
Configuration menu - View commit details
-
Copy full SHA for 002728c - Browse repository at this point
Copy the full SHA 002728cView commit details
Commits on Jul 3, 2016
-
Configuration menu - View commit details
-
Copy full SHA for a987770 - Browse repository at this point
Copy the full SHA a987770View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fcc7c1 - Browse repository at this point
Copy the full SHA 9fcc7c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e31a156 - Browse repository at this point
Copy the full SHA e31a156View commit details
Commits on Jul 5, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 402c6ab - Browse repository at this point
Copy the full SHA 402c6abView commit details
Commits on Aug 20, 2016
-
Configuration menu - View commit details
-
Copy full SHA for dd2b9b9 - Browse repository at this point
Copy the full SHA dd2b9b9View commit details -
Rewrite fs.find_file test to pass on Windows
Todo: fix underlying issue with fs.split_base that caused original version not working ("/" and "\" should be valid anchors on Windows).
Configuration menu - View commit details
-
Copy full SHA for 3b40a04 - Browse repository at this point
Copy the full SHA 3b40a04View commit details
Commits on Aug 21, 2016
-
Configuration menu - View commit details
-
Copy full SHA for bdaced7 - Browse repository at this point
Copy the full SHA bdaced7View commit details -
Normalize directory separator in some expected outputs
Fixes some more tests on Windows.
Configuration menu - View commit details
-
Copy full SHA for c060754 - Browse repository at this point
Copy the full SHA c060754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55b31bf - Browse repository at this point
Copy the full SHA 55b31bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e305521 - Browse repository at this point
Copy the full SHA e305521View commit details -
Caches are read and written in binary mode (no \r even on Windows). However, depending on git settings cache samples may use it anyway. Fixes remaining tests for Windows.
Configuration menu - View commit details
-
Copy full SHA for 4aeb7bd - Browse repository at this point
Copy the full SHA 4aeb7bdView commit details
Commits on Sep 16, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 479dcf1 - Browse repository at this point
Copy the full SHA 479dcf1View commit details
Commits on Sep 27, 2016
-
Configuration menu - View commit details
-
Copy full SHA for a271960 - Browse repository at this point
Copy the full SHA a271960View commit details
Commits on Sep 28, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 49c3ec2 - Browse repository at this point
Copy the full SHA 49c3ec2View commit details -
Fix false positive for "variable is mutated but never accessed"
When value or variable is assigned a result of an operation such as "and" or "or", it is externally accessible and mutations of it may have an effect even if it is not directly accessed. Same if value node tag is Paren (e.g. `local t = (f())`). Ref #72.
Configuration menu - View commit details
-
Copy full SHA for 1e62378 - Browse repository at this point
Copy the full SHA 1e62378View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48fd788 - Browse repository at this point
Copy the full SHA 48fd788View commit details
Commits on Oct 25, 2016
-
A warning and an inline option boundary event can share location when a function declaration is unreachable code (a push event is generated for each closure start). Previously event comparator assumed that only two warnings or two inline option events can share location, resulting in an error when this assumption is violated. The fix is to compare events of different types by set priority before falling back to code comparison for warning. Also remove a hack that partially worked around this issue by adding `code` field to some inline option events. Ref #74.
Configuration menu - View commit details
-
Copy full SHA for 15890fa - Browse repository at this point
Copy the full SHA 15890faView commit details
Commits on Oct 26, 2016
-
Configuration menu - View commit details
-
Copy full SHA for a651b7d - Browse repository at this point
Copy the full SHA a651b7dView commit details
Commits on Oct 27, 2016
-
luacheck supports all LuaJIT versions, not only 2.0.
Configuration menu - View commit details
-
Copy full SHA for 1f6b915 - Browse repository at this point
Copy the full SHA 1f6b915View commit details -
Configuration menu - View commit details
-
Copy full SHA for bce761c - Browse repository at this point
Copy the full SHA bce761cView commit details
Commits on Nov 8, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 6377d12 - Browse repository at this point
Copy the full SHA 6377d12View commit details
Commits on Nov 14, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 9c2cdda - Browse repository at this point
Copy the full SHA 9c2cddaView commit details -
Merge pull request #80 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
Configuration menu - View commit details
-
Copy full SHA for dc905f4 - Browse repository at this point
Copy the full SHA dc905f4View commit details
Commits on Nov 15, 2016
-
Configuration menu - View commit details
-
Copy full SHA for d608a29 - Browse repository at this point
Copy the full SHA d608a29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25c1c2e - Browse repository at this point
Copy the full SHA 25c1c2eView commit details -
Fix whitespace issues within LuaCheck itself
Otherwise LuaCheck would now FAIL its self-test. :D Note: spec/lexer_spec.lua contains a trailing space that is to be kept. Add an "inline" option so that LuaCheck won't complain there.
Configuration menu - View commit details
-
Copy full SHA for 1b294ad - Browse repository at this point
Copy the full SHA 1b294adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b1067a - Browse repository at this point
Copy the full SHA 4b1067aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dd3b2c - Browse repository at this point
Copy the full SHA 6dd3b2cView commit details -
Add example file demonstrating whitespace issues
While at it, fix samples file count for cli_spec.lua accordingly.
Configuration menu - View commit details
-
Copy full SHA for 2fa5c4c - Browse repository at this point
Copy the full SHA 2fa5c4cView commit details -
Extend spec/cli_spec.lua to analyse spec/samples/bad_whitespace.lua
This explicitly checks for the expected warnings, and improves code coverage during the "busted -c" run.
Configuration menu - View commit details
-
Copy full SHA for 6172b5f - Browse repository at this point
Copy the full SHA 6172b5fView commit details -
Merge pull request #81 from n1tehawk/check_whitespace
Enable LuaCheck to report common whitespace issues
Configuration menu - View commit details
-
Copy full SHA for 0c6cdc7 - Browse repository at this point
Copy the full SHA 0c6cdc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3484ba - Browse repository at this point
Copy the full SHA e3484baView commit details -
Move an inline option in lexer_spec.lua
Ignore only one assertion, not the whole block of them.
Configuration menu - View commit details
-
Copy full SHA for b327a7d - Browse repository at this point
Copy the full SHA b327a7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32823de - Browse repository at this point
Copy the full SHA 32823deView commit details
Commits on Nov 17, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 9baaebd - Browse repository at this point
Copy the full SHA 9baaebdView commit details
Commits on Nov 18, 2016
-
Whitespace: split into lines using new utils function
Add a new function `utils.split_lines` that splits source into lines using "\n", "\r", "\r\n" and "\n\r" as line endings, for consistency with lexer. Initially it was planned to bring lexer in sync with whitespace module instead (using only "\n" and "\r\n" as line ending), however, this affects not only line numbers in warnings but also parsing string literals, potentially changing their values. Keeping in sync with Lua compiler is more important in this case.
Configuration menu - View commit details
-
Copy full SHA for 3a8d724 - Browse repository at this point
Copy the full SHA 3a8d724View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1af819f - Browse repository at this point
Copy the full SHA 1af819fView commit details -
Do not assume that all messages use exactly `warning.name` `warning.prev_line` in substitutions. Instead, implement a simple replacement for string.format that substitutes table fields by name and supports highlighting/quoting.
Configuration menu - View commit details
-
Copy full SHA for e6f91a9 - Browse repository at this point
Copy the full SHA e6f91a9View commit details -
Don't assign name field to warnings that can't be filtered by it
Instead, use `field` for unused field/index warnings and use `label` for unused label warnings. Adjust message templates. Simplify condition under which a warning can't be filtered by name to `not warning.name`.
Configuration menu - View commit details
-
Copy full SHA for 3f0fa5e - Browse repository at this point
Copy the full SHA 3f0fa5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1aa3239 - Browse repository at this point
Copy the full SHA 1aa3239View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ea652a - Browse repository at this point
Copy the full SHA 1ea652aView commit details -
Release descriptions on GitHub don't seem to be a part of the repo. Migrate them into a file.
Configuration menu - View commit details
-
Copy full SHA for d9683c1 - Browse repository at this point
Copy the full SHA d9683c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51d3b72 - Browse repository at this point
Copy the full SHA 51d3b72View commit details
Commits on Nov 19, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 9cd95a3 - Browse repository at this point
Copy the full SHA 9cd95a3View commit details
There are no files selected for viewing