mpeterv / luacheck

A tool for linting and static analysis of Lua code.
MIT License
1.91k stars 318 forks source link

Add busted's `match` global to `builtin_standards` #200

Closed treffynnon closed 6 months ago

treffynnon commented 4 years ago

The busted project has the concept of matchers than are documented over at https://olivinelabs.com/busted/#matchers and can be used in assertions with the match keyword.

For example:

assert.spy(s).was_called_with(match.is_string())
codecov-io commented 4 years ago

Codecov Report

Merging #200 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #200   +/-   ##
=======================================
  Coverage   97.38%   97.38%           
=======================================
  Files          52       52           
  Lines        5512     5512           
=======================================
  Hits         5368     5368           
  Misses        144      144
Impacted Files Coverage Δ
src/luacheck/builtin_standards/init.lua 99.61% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7360cfb...f2baceb. Read the comment docs.

alerque commented 2 years ago

@treffynnon If you are still around would you mind opening this branch as a PR against this repository (the new canonical home, see #198). I would be happy to checkout and merge this contribution over there.