fix(gjson): add nolint comment for cfgEncodeSortKeys method
The method is registered to Lua via instance.cfgEncodeSortKeys pattern, which the linter cannot detect. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
c37364b309
commit
c47ab1617f
@ -116,6 +116,8 @@ func (g *GJSON) cfgEncodeKeepBuffer(L *glua.LState) int {
|
||||
// Returns current value when called without arguments.
|
||||
// When enabled, object keys are sorted alphabetically for deterministic output.
|
||||
// When disabled (default), keys are output in arbitrary order for better performance.
|
||||
//
|
||||
//nolint:unused // 方法通过 instance.cfgEncodeSortKeys 方式注册到 Lua,linter 无法检测到使用
|
||||
func (g *GJSON) cfgEncodeSortKeys(L *glua.LState) int {
|
||||
if L.GetTop() == 0 {
|
||||
L.Push(glua.LBool(g.config.encodeSortKeys))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user