Skip to content

Commit

Permalink
use busted replace luaunit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Dec 17, 2023
1 parent 31c9a00 commit 79f6aaf
Show file tree
Hide file tree
Showing 9 changed files with 502 additions and 419 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Compiled Lua sources
luac.out
var
lib

# luarocks build files
*.src.rock
Expand Down
13 changes: 13 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
std = "luajit"
codes = true
max_line_length = 120
max_comment_line_length = false

self = false


-- special files {{{
files["spec/*_spec.lua"].std = "+busted"
-- special files }}}

-- vim: set ft=lua ts=2 sw=2 et
56 changes: 56 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"diagnostics": {
"enable": true,
"globals": [
"describe",
"pending",
"it",
"before_each",
"after_each",
"setup",
"teardown",
"finally"
],
"disable": [
"close-non-object"
],
"groupFileStatus": {
"ambiguity": "Any",
"await": "Any",
"duplicate": "Any",
"global": "Any",
"luadoc": "Any",
"redefined": "Any",
"strict": "Any",
"type-check": "Any",
"unbalanced": "Any",
"unused": "Any"
},
"ignoreFiles": [
"/.luacheckrc"
]
},
"runtime": {
"version": "LuaJIT"
},
"format.enable": true,
"workspace": {
"libraryApply": ["busted"],
"checkThirdParty": true,
"maxPreload": 2000,
"preloadFileSize": 1000,
"typeFormat": {
"config": {
"format_line": "false"
}
},
"type": {
"castNumberToInteger": false
},
"doc": {
"privateName": [
"_*"
]
}
}
}
3 changes: 1 addition & 2 deletions profile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ local ffi = require'ffi'

if (ffi.os == 'OSX') then
traits = {
runtimePath = os.getenv('HOME') ..
'/Library/Input Methods/Squirrel.app/Contents/Frameworks/librime.1.dylib',
runtimePath = 'lib/librime.1.dylib',
dataPath = os.getenv('HOME') ..
'/Library/Input Methods/Squirrel.app/Contents/SharedSupport',
userPath = 'var/rime',
Expand Down
Loading

0 comments on commit 79f6aaf

Please sign in to comment.