Skip to content

Commit

Permalink
Fix script analysis warnings for release
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberGraceRblx committed Nov 18, 2021
1 parent 7ef8d6d commit 487fa7b
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Pract/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-- https://ambers-careware.github.io/pract/

local Pract = {}
Pract._VERSION = '0.9.7_indev'
Pract._VERSION = '0.9.7'

local Types = require(script.Types)
local PractGlobalSystems = require(script.PractGlobalSystems)
Expand Down
2 changes: 1 addition & 1 deletion TestPract/BuiltInTester.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ local BuiltInTester: Types.UnitTester = function(
local module = modules[i]
local spec
local success, err: any = pcall(function()
spec = require(module)
spec = (require :: any)(module)
spec(practLibraryLocation, makeDescribe(module:GetFullName()))
end)
if not success then
Expand Down
2 changes: 1 addition & 1 deletion TestPract/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function TestPract.Test(
if _tester then
tester = _tester
else
tester = require(copyTestPract.BuiltInTester)
tester = (require :: any)(copyTestPract.BuiltInTester)
end

local modules = copyTestPract.specs:GetChildren()
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/PractGlobalSystems.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local PractGlobalSystems: any = require(practModule.PractGlobalSystems)
local PractGlobalSystems = (require :: any)(practModule.PractGlobalSystems)

describe('PractGlobalSystems', function(it)
it('initializes by requiring the Pract module and stopping it', function(asserts)
-- Global systems should run as a side effect of requiring Pract
require(practModule)
(require :: any)(practModule)
PractGlobalSystems.Stop()
end)

Expand Down
2 changes: 1 addition & 1 deletion TestPract/specs/Types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local Pract_Types: any = require(practModule.Types)
local Pract_Types = (require :: any)(practModule.Types)

describe('Types', function(it)
it('Should be nil at runtime', function(expect)
Expand Down
6 changes: 3 additions & 3 deletions TestPract/specs/combine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local combine: any = require(practModule.combine)
local index: any = require(practModule.index)
local Symbols: any = require(practModule.Symbols)
local combine = (require :: any)(practModule.combine)
local index = (require :: any)(practModule.index)
local Symbols = (require :: any)(practModule.Symbols)

describe('combine', function(it)
it('Should accept no children', function(expect)
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/create.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local create: any = require(practModule.create)
local Symbols: any = require(practModule.Symbols)
local create = (require :: any)(practModule.create)
local Symbols = (require :: any)(practModule.Symbols)

describe('create', function(it)
it('Should create a CreateInstance element with empty props', function(expect)
Expand Down
8 changes: 4 additions & 4 deletions TestPract/specs/createReconciler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local PractGlobalSystems: any = require(practModule.PractGlobalSystems)
local Symbols: any = require(practModule.Symbols)
local createReconciler = require(practModule.createReconciler)
local Pract: any = require(practModule)
local PractGlobalSystems = (require :: any)(practModule.PractGlobalSystems)
local Symbols = (require :: any)(practModule.Symbols)
local createReconciler = (require :: any)(practModule.createReconciler)
local Pract = (require :: any)(practModule)

local customHeartbeat = Instance.new('BindableEvent')

Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/decorate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local decorate: any = require(practModule.decorate)
local Symbols: any = require(practModule.Symbols)
local decorate = (require :: any)(practModule.decorate)
local Symbols = (require :: any)(practModule.Symbols)

describe('decorate', function(it)
it('Should create a Decorate element with empty props', function(expect)
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local index: any = require(practModule.index)
local Symbols: any = require(practModule.Symbols)
local index = (require :: any)(practModule.index)
local Symbols = (require :: any)(practModule.Symbols)

describe('index', function(it)
it('Should accept no children', function(expect)
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/portal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local portal: any = require(practModule.portal)
local Symbols: any = require(practModule.Symbols)
local portal = (require :: any)(practModule.portal)
local Symbols = (require :: any)(practModule.Symbols)

describe('portal', function(it)
local HOST_INSTANCE = workspace
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/stamp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local stamp: any = require(practModule.stamp)
local Symbols: any = require(practModule.Symbols)
local stamp = (require :: any)(practModule.stamp)
local Symbols = (require :: any)(practModule.Symbols)

describe('stamp', function(it)
local TEMPLATE = Instance.new('Folder')
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/withContextConsumer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local withContextConsumer: any = require(practModule.withContextConsumer)
local Symbols: any = require(practModule.Symbols)
local withContextConsumer = (require :: any)(practModule.withContextConsumer)
local Symbols = (require :: any)(practModule.Symbols)

describe('withContextConsumer', function(it)
it('should wrap a component', function(expect)
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/withContextProvider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local withContextProvider: any = require(practModule.withContextProvider)
local Symbols: any = require(practModule.Symbols)
local withContextProvider = (require :: any)(practModule.withContextProvider)
local Symbols = (require :: any)(practModule.Symbols)

describe('withContextProvider', function(it)
it('should wrap a component', function(expect)
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/withDeferredState.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local withDeferredState: any = require(practModule.withDeferredState)
local Symbols: any = require(practModule.Symbols)
local withDeferredState = (require :: any)(practModule.withDeferredState)
local Symbols = (require :: any)(practModule.Symbols)

describe('withDeferredState', function(it)
it('should wrap a component', function(expect)
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/withLifecycle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local withLifecycle: any = require(practModule.withLifecycle)
local Symbols: any = require(practModule.Symbols)
local withLifecycle = (require :: any)(practModule.withLifecycle)
local Symbols = (require :: any)(practModule.Symbols)

describe('withLifecycle', function(it)
it('should wrap a component', function(expect)
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/withSignal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local withSignal: any = require(practModule.withSignal)
local Symbols: any = require(practModule.Symbols)
local withSignal = (require :: any)(practModule.withSignal)
local Symbols = (require :: any)(practModule.Symbols)

describe('withSignal', function(it)
local signal = Instance.new('BindableEvent').Event
Expand Down
4 changes: 2 additions & 2 deletions TestPract/specs/withState.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
local Types = require(script.Parent.Parent.Types)

local spec: Types.Spec = function(practModule, describe)
local withState: any = require(practModule.withState)
local Symbols: any = require(practModule.Symbols)
local withState = (require :: any)(practModule.withState)
local Symbols = (require :: any)(practModule.Symbols)

describe('withState', function(it)
it('should wrap a component', function(expect)
Expand Down

0 comments on commit 487fa7b

Please sign in to comment.