now this is dynamic but it’s safe since checks were made on the data table before setting it so there is no reason to do that again (I am not doing that)
I couldn’t find a rule to use with --!nolint to disable this warning
for property, value in pairs(data[descendant.ClassName]) do
local success = pcall(function()
descendant[property] = value
end)
if not success then
warn("Failed to set property:", property)
end
print(descendant, value)
end
The code will still run even if you have strict mode on and even if dynamic string exists.
Though why do you need strict mode and nolint.
You can probably disable strict mode on checking properties of dynamic string
thanks, but I do not want to do that
the data table is safe, and that check is made somewhere else in the script doing it again is just a waste of cpu power