141141 },
142142 "strict" : {
143143 "default" : {
144- "requirePath" : true ,
144+ "requirePath" : false ,
145145 "typeCall" : false
146146 },
147147 "allOf" : [
156156 "ignoreDir" : [],
157157 "ignoreGlobs" : [],
158158 "library" : [],
159+ "moduleMap" : [],
159160 "preloadFileSize" : 0 ,
161+ "reindexDuration" : 5000 ,
160162 "workspaceRoots" : []
161163 },
162164 "allOf" : [
182184 " syntax-error"
183185 ]
184186 },
187+ {
188+ "description" : " Lua syntax error" ,
189+ "type" : " string" ,
190+ "enum" : [
191+ " lua-syntax-error"
192+ ]
193+ },
185194 {
186195 "description" : " Type not found" ,
187196 "type" : " string" ,
210219 " missing-parameter"
211220 ]
212221 },
222+ {
223+ "description" : " Redundant parameter" ,
224+ "type" : " string" ,
225+ "enum" : [
226+ " redundant-parameter"
227+ ]
228+ },
213229 {
214230 "description" : " Inject field fail" ,
215231 "type" : " string" ,
335351 "enum" : [
336352 " await-in-sync"
337353 ]
354+ },
355+ {
356+ "description" : " Doc tag usage error" ,
357+ "type" : " string" ,
358+ "enum" : [
359+ " annotation-usage-error"
360+ ]
361+ },
362+ {
363+ "description" : " Return type mismatch" ,
364+ "type" : " string" ,
365+ "enum" : [
366+ " return-type-mismatch"
367+ ]
368+ },
369+ {
370+ "description" : " Missing return value" ,
371+ "type" : " string" ,
372+ "enum" : [
373+ " missing-return-value"
374+ ]
375+ },
376+ {
377+ "description" : " Redundant return value" ,
378+ "type" : " string" ,
379+ "enum" : [
380+ " redundant-return-value"
381+ ]
382+ },
383+ {
384+ "description" : " Undefined Doc Param" ,
385+ "type" : " string" ,
386+ "enum" : [
387+ " undefined-doc-param"
388+ ]
389+ },
390+ {
391+ "description" : " Duplicate doc field" ,
392+ "type" : " string" ,
393+ "enum" : [
394+ " duplicate-doc-field"
395+ ]
338396 }
339397 ]
340398 },
600658 ]
601659 },
602660 {
603- "description" : " Lua 5.4 " ,
661+ "description" : " Lua Latest " ,
604662 "type" : " string" ,
605663 "enum" : [
606664 " LuaLatest"
706764 "properties" : {
707765 "requirePath" : {
708766 "description" : " Whether to enable strict mode require path." ,
709- "default" : true ,
767+ "default" : false ,
710768 "type" : " boolean"
711769 },
712770 "typeCall" : {
747805 "type" : " string"
748806 }
749807 },
808+ "moduleMap" : {
809+ "description" : " Module map. key is regex, value is new module regex eg: { \" ^(.*)$\" : \" module_$1\" \" ^lib(.*)$\" : \" script$1\" }" ,
810+ "default" : [],
811+ "type" : " array" ,
812+ "items" : {
813+ "$ref" : " #/definitions/EmmyrcWorkspaceModuleMap"
814+ }
815+ },
750816 "preloadFileSize" : {
751817 "default" : 0 ,
752818 "type" : " integer" ,
753819 "format" : " int32"
754820 },
821+ "reindexDuration" : {
822+ "description" : " when save a file, ls will reindex the workspace after reindex_duration milliseconds." ,
823+ "default" : 5000 ,
824+ "type" : " integer" ,
825+ "format" : " uint64" ,
826+ "minimum" : 0.0
827+ },
755828 "workspaceRoots" : {
756829 "description" : " Workspace roots. eg: [\" src\" , \" test\" ]" ,
757830 "default" : [],
761834 }
762835 }
763836 }
837+ },
838+ "EmmyrcWorkspaceModuleMap" : {
839+ "type" : " object" ,
840+ "required" : [
841+ " pattern" ,
842+ " replace"
843+ ],
844+ "properties" : {
845+ "pattern" : {
846+ "type" : " string"
847+ },
848+ "replace" : {
849+ "type" : " string"
850+ }
851+ }
764852 }
765853 }
766854}
0 commit comments