Skip to content

fix: shadowing upvalue argument #1790

fix: shadowing upvalue argument

fix: shadowing upvalue argument #1790

Triggered via push June 2, 2024 10:22
Status Failure
Total duration 2m 43s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

100 errors
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:51:10: unused global variable 'AddSharedAccount'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:113:15: unused variable 'label'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:127:19: value assigned to variable 'money' is unused
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:131:32: accessing undefined variable 'NULL'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:8:27: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:15:30: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:24:27: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:31:27: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:44:34: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:65:16: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:68:28: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:32:15: unused variable 'label'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:43:19: shadowing definition of variable 'items' on line 22
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:66:19: shadowing definition of variable 'items' on line 22
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:95:10: unused global variable 'AddSharedInventory'
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:16:23: value assigned to variable 'ped' is overwritten on line 19 before use
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:24:17: loop is executed at most once
lua.server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:616:14: accessing undefined variable 'Sleep'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:40:16: unused function 'firstToUpper'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:34: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:84: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:107: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:142:18: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:177:10: unused global variable 'getCamDirection'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:178:76: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:8: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:196:27: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:9: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:202:19: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:10: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:203:24: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:11: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:210:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:12: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:214:10: unused global variable 'startAnimAction'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:13: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:216:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:14: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:220:10: unused global variable 'CheckQuantity'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:15: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:297:31: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:16: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:312:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:17: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:317:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:18: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:342:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:19: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:347:37: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:20: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:390:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:21: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:395:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:22: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:411:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:23: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:416:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:24: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:429:5: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:25: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:433:46: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:26: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:526:6: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:27: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:530:47: accessing undefined variable 'societyMoney2'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:28: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:715:18: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:29: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:749:27: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:30: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:780:38: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:31: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:789:43: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/other.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/other.lua:150:34: variable 'endCoords' is never accessed
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:51:10: unused global variable 'AddSharedAccount'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:113:15: unused variable 'label'
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:127:19: value assigned to variable 'money' is unused
lua.server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua:131:32: accessing undefined variable 'NULL'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:8:27: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:15:30: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:24:27: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:31:27: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:44:34: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:65:16: accessing undefined variable 'item'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua:68:28: shadowing upvalue argument 'name' on line 1
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:32:15: unused variable 'label'
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:43:19: shadowing definition of variable 'items' on line 22
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:66:19: shadowing definition of variable 'items' on line 22
lua.server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_addoninventory/server/main.lua:95:10: unused global variable 'AddSharedInventory'
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:16:23: value assigned to variable 'ped' is overwritten on line 19 before use
lua.server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_hunting/client/main.lua:24:17: loop is executed at most once
lua.server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_lscustom/client/main.lua:616:14: accessing undefined variable 'Sleep'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:40:16: unused function 'firstToUpper'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:2: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:34: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:3: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:84: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:4: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:106:107: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:5: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:142:18: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:6: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:177:10: unused global variable 'getCamDirection'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:7: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:178:76: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:8: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:196:27: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:9: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:202:19: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:10: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:203:24: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:11: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:210:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:12: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:214:10: unused global variable 'startAnimAction'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:13: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:216:15: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:14: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:220:10: unused global variable 'CheckQuantity'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:15: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:297:31: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:16: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:312:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:17: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:317:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:18: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:342:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:19: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:347:37: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:20: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:390:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:21: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:395:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:22: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:411:35: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:23: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:416:36: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:24: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:429:5: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:25: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:433:46: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:26: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:526:6: accessing undefined variable 'societyMoney'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:27: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:530:47: accessing undefined variable 'societyMoney2'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:28: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:715:18: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:29: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:749:27: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:30: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:780:38: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:31: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/main.lua:789:43: accessing undefined variable 'plyPed'
lua.server-data/resources/[bpt_addons]/bpt_menu/client/other.lua:1: lua#L1
server-data/resources/[bpt_addons]/bpt_menu/client/other.lua:150:34: variable 'endCoords' is never accessed