diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-12-04 14:32:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 14:32:39 -0800 |
commit | c3836e40a2bffbc1d4e06531145b7825788dd818 (patch) | |
tree | 895e994179074983789a5f893b96dc75d39f6e6b /test/benchmark/bench_regexp_spec.lua | |
parent | 45fe4d11add933df76a2ea4bf52ce8904f4a778b (diff) | |
download | rneovim-c3836e40a2bffbc1d4e06531145b7825788dd818.tar.gz rneovim-c3836e40a2bffbc1d4e06531145b7825788dd818.tar.bz2 rneovim-c3836e40a2bffbc1d4e06531145b7825788dd818.zip |
build: enable lintlua for test/unit/ dir #26396
Problem:
Not all Lua code is checked by stylua. Automating code-style is an
important mechanism for reducing time spent on accidental
(non-essential) complexity.
Solution:
- Enable lintlua for `test/unit/` directory.
- TODO: only `test/functional/` remains unchecked.
previous: 45fe4d11add933df76a2ea4bf52ce8904f4a778b
previous: 517f0cc634b985057da5b95cf4ad659ee456a77e
Diffstat (limited to 'test/benchmark/bench_regexp_spec.lua')
-rw-r--r-- | test/benchmark/bench_regexp_spec.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/benchmark/bench_regexp_spec.lua b/test/benchmark/bench_regexp_spec.lua index 6128549f0f..4a7c50557b 100644 --- a/test/benchmark/bench_regexp_spec.lua +++ b/test/benchmark/bench_regexp_spec.lua @@ -10,8 +10,7 @@ local result_file = 'benchmark.out' local sample_file = 'test/old/testdir/samples/re.freeze.txt' -- Vim script code that does both the work and the benchmarking of that work. -local measure_cmd = - [[call Measure(%d, ']] .. sample_file .. [[', '\s\+\%%#\@<!$', '+5')]] +local measure_cmd = [[call Measure(%d, ']] .. sample_file .. [[', '\s\+\%%#\@<!$', '+5')]] local measure_script = [[ func Measure(re, file, pattern, arg) let sstart = reltime() |