Skip to content

Commit b4193a8

Browse files
authored
Merge pull request #618 from Quenty/users/quenty/small-ci-cd-fixes
feat: Update declarations and README.md
2 parents 821c933 + 882056f commit b4193a8

File tree

9 files changed

+41
-17
lines changed

9 files changed

+41
-17
lines changed

readme.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ There are 270 packages in Nevermore.
171171
| [HumanoidUtils](https://quenty.github.io/NevermoreEngine/api/HumanoidUtils) | General humanoid utility code. | `npm i @quenty/humanoidutils` | [docs](https://quenty.github.io/NevermoreEngine/api/HumanoidUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/humanoidutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/humanoidutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/humanoidutils) |
172172
| [IdleService](https://quenty.github.io/NevermoreEngine/api/IdleService) | Helps track whether or not a player is idle and if so, then can show UI or other cute things. | `npm i @quenty/idleservice` | [docs](https://quenty.github.io/NevermoreEngine/api/IdleService) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/idleservice) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/idleservice/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/idleservice) |
173173
| [IK](https://quenty.github.io/NevermoreEngine/api/IKService) | Inverse Kinematics for characters on Roblox | `npm i @quenty/ik` | [docs](https://quenty.github.io/NevermoreEngine/api/IKService) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/ik) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/ik/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/ik) |
174-
| [InfluxDBClient](https://quenty.github.io/NevermoreEngine/api/InfluxDBClientUtils) | Provides a Roblox Lua InfluxDB client | `npm i @quenty/influxdbclient` | [docs](https://quenty.github.io/NevermoreEngine/api/InfluxDBClientUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/influxdbclient) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/influxdbclient/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/influxdbclient) |
174+
| [InfluxDBClient](https://quenty.github.io/NevermoreEngine/api/InfluxDBClient) | Provides a Roblox Lua InfluxDB client | `npm i @quenty/influxdbclient` | [docs](https://quenty.github.io/NevermoreEngine/api/InfluxDBClient) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/influxdbclient) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/influxdbclient/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/influxdbclient) |
175175
| [InputKeyMapUtils](https://quenty.github.io/NevermoreEngine/api/InputKeyMapList) | System to define rebindable key bindings and inputs for Roblox. | `npm i @quenty/inputkeymaputils` | [docs](https://quenty.github.io/NevermoreEngine/api/InputKeyMapList) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/inputkeymaputils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/inputkeymaputils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/inputkeymaputils) |
176176
| [InputMode](https://quenty.github.io/NevermoreEngine/api/InputMode) | Trace input mode state and trigger changes correctly | `npm i @quenty/inputmode` | [docs](https://quenty.github.io/NevermoreEngine/api/InputMode) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/inputmode) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/inputmode/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/inputmode) |
177177
| [InputObjectUtils](https://quenty.github.io/NevermoreEngine/api/InputObjectRayUtils) | Provides utility functions involving input objects | `npm i @quenty/inputobjectutils` | [docs](https://quenty.github.io/NevermoreEngine/api/InputObjectRayUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/inputobjectutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/inputobjectutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/inputobjectutils) |
@@ -226,8 +226,8 @@ There are 270 packages in Nevermore.
226226
| [PlayerHumanoidBinder](https://quenty.github.io/NevermoreEngine/api/PlayerHumanoidBinder) | Binder that will automatically bind to each player's humanoid | `npm i @quenty/playerhumanoidbinder` | [docs](https://quenty.github.io/NevermoreEngine/api/PlayerHumanoidBinder) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerhumanoidbinder) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerhumanoidbinder/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/playerhumanoidbinder) |
227227
| [PlayerInputMode](https://quenty.github.io/NevermoreEngine/api/PlayerInputModeService) | Service that takes active input modes from the player and exposes it to every other player via the server. | `npm i @quenty/playerinputmode` | [docs](https://quenty.github.io/NevermoreEngine/api/PlayerInputModeService) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerinputmode) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerinputmode/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/playerinputmode) |
228228
| [PlayersServicePromises](https://quenty.github.io/NevermoreEngine/api/PlayersServicePromises) | Utility methods for async methods in Players service | `npm i @quenty/playersservicepromises` | [docs](https://quenty.github.io/NevermoreEngine/api/PlayersServicePromises) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/playersservicepromises) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/playersservicepromises/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/playersservicepromises) |
229-
| [PlayerThumbnailUtils](https://quenty.github.io/NevermoreEngine/api/PlayerThumbnailUtils) | Utility methods to query policies for players from PolicyService. | `npm i @quenty/policyserviceutils` | [docs](https://quenty.github.io/NevermoreEngine/api/PlayerThumbnailUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/policyserviceutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/policyserviceutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/policyserviceutils) |
230229
| [PlayerThumbnailUtils](https://quenty.github.io/NevermoreEngine/api/PlayerThumbnailUtils) | Reimplementation of Player:GetUserThumbnailAsync but as a promise with retry logic | `npm i @quenty/playerthumbnailutils` | [docs](https://quenty.github.io/NevermoreEngine/api/PlayerThumbnailUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerthumbnailutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerthumbnailutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/playerthumbnailutils) |
230+
| [PlayerThumbnailUtils](https://quenty.github.io/NevermoreEngine/api/PlayerThumbnailUtils) | Utility methods to query policies for players from PolicyService. | `npm i @quenty/policyserviceutils` | [docs](https://quenty.github.io/NevermoreEngine/api/PlayerThumbnailUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/policyserviceutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/policyserviceutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/policyserviceutils) |
231231
| [PlayerUtils](https://quenty.github.io/NevermoreEngine/api/PlayerUtils) | Player utility functions | `npm i @quenty/playerutils` | [docs](https://quenty.github.io/NevermoreEngine/api/PlayerUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/playerutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/playerutils) |
232232
| [PolynomialUtils](https://quenty.github.io/NevermoreEngine/api/PolynomialUtils) | Solves polynomials of certain degrees. | `npm i @quenty/polynomialutils` | [docs](https://quenty.github.io/NevermoreEngine/api/PolynomialUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/polynomialutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/polynomialutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/polynomialutils) |
233233
| [PreferredParentUtils](https://quenty.github.io/NevermoreEngine/api/PreferredParentUtils) | Handles logic for creating a "preferred" parent container or erroring if it already exists | `npm i @quenty/preferredparentutils` | [docs](https://quenty.github.io/NevermoreEngine/api/PreferredParentUtils) | [source](https://github.com/Quenty/NevermoreEngine/tree/main/src/preferredparentutils) | [changelog](https://github.com/Quenty/NevermoreEngine/tree/main/src/preferredparentutils/CHANGELOG.md) | [npm](https://www.npmjs.com/package/@quenty/preferredparentutils) |
@@ -335,4 +335,21 @@ There are 270 packages in Nevermore.
335335

336336
<!--package-list-generated-end-->
337337

338-
To update this package list run `python ./tools/update_readme.py`.
338+
To update this package list run `python ./tools/update_readme.py`.
339+
340+
## Linting
341+
342+
In order to pass linting please run the following checks locally, within the Nevermore directory.
343+
344+
```
345+
npm run lint:luau
346+
npm run lint:moonwave
347+
npm run lint:selene
348+
npm run lint:stylua
349+
```
350+
351+
To fix stylua formatting you can run the following
352+
353+
```
354+
npm run format
355+
```

src/deathreport/src/Client/DeathReportServiceClient.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ end
5656
@param player Player
5757
@return Observable<DeathReport>
5858
]=]
59-
function DeathReportServiceClient:ObservePlayerKillerReports(player)
59+
function DeathReportServiceClient:ObservePlayerKillerReports(player: Player)
6060
assert(typeof(player) == "Instance" and player:IsA("Player"), "Bad player")
6161

6262
return self._reportProcessor:ObservePlayerKillerReports(player)
@@ -68,7 +68,7 @@ end
6868
@param player Player
6969
@return Observable<DeathReport>
7070
]=]
71-
function DeathReportServiceClient:ObservePlayerDeathReports(player)
71+
function DeathReportServiceClient:ObservePlayerDeathReports(player: Player)
7272
assert(typeof(player) == "Instance" and player:IsA("Player"), "Bad player")
7373

7474
return self._reportProcessor:ObservePlayerDeathReports(player)
@@ -80,7 +80,7 @@ end
8080
@param humanoid Humanoid
8181
@return Observable<DeathReport>
8282
]=]
83-
function DeathReportServiceClient:ObserveHumanoidKillerReports(humanoid)
83+
function DeathReportServiceClient:ObserveHumanoidKillerReports(humanoid: Humanoid)
8484
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
8585

8686
return self._reportProcessor:ObserveHumanoidKillerReports(humanoid)
@@ -92,7 +92,7 @@ end
9292
@param humanoid Humanoid
9393
@return Observable<DeathReport>
9494
]=]
95-
function DeathReportServiceClient:ObserveHumanoidDeathReports(humanoid)
95+
function DeathReportServiceClient:ObserveHumanoidDeathReports(humanoid: Humanoid)
9696
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
9797

9898
return self._reportProcessor:ObserveHumanoidDeathReports(humanoid)

src/highlight/src/Client/AnimatedHighlightGroup.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function AnimatedHighlightGroup:_setDefaultValues(highlight, doNotAnimate: boole
133133
highlight:SetOutlineColor(self._defaultValues.OutlineColor.Value)
134134
end
135135

136-
function AnimatedHighlightGroup:_getOrCreateHighlightStackHandle(adornee, observeScore)
136+
function AnimatedHighlightGroup:_getOrCreateHighlightStackHandle(adornee: Instance, observeScore)
137137
assert(observeScore, "Bad observeScore")
138138

139139
local foundHighlightStack = self._highlightStacks[adornee]
@@ -196,7 +196,7 @@ function AnimatedHighlightGroup:_removeHighlightStack(highlightStack)
196196
self._maid[highlightStack] = nil
197197
end
198198

199-
function AnimatedHighlightGroup:_findHighlightAdornee(adornee)
199+
function AnimatedHighlightGroup:_findHighlightAdornee(adornee: Instance)
200200
return self._highlightStacks[adornee]
201201
end
202202

src/highlight/src/Client/HighlightServiceClient.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
@param observeScore Observable<number> | number?
4545
@return AnimatedHighlightModel
4646
]=]
47-
function HighlightServiceClient:Highlight(adornee, observeScore)
47+
function HighlightServiceClient:Highlight(adornee: Instance, observeScore)
4848
assert(typeof(adornee) == "Instance", "Bad adornee")
4949

5050
return self._group:Highlight(adornee, observeScore)

src/parttouchingcalculator/src/Shared/PartTouchingCalculator.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ function PartTouchingCalculator.new()
2424
return self
2525
end
2626

27-
function PartTouchingCalculator:CheckIfTouchingHumanoid(humanoid, parts)
27+
function PartTouchingCalculator:CheckIfTouchingHumanoid(humanoid: Humanoid, parts)
2828
assert(humanoid, "Bad humanoid")
2929
assert(parts, "Must have parts")
3030

31+
local character = humanoid.Parent
32+
if not character then
33+
return false
34+
end
35+
3136
local humanoidParts = {}
32-
for _, item in humanoid.Parent:GetDescendants() do
37+
for _, item in character:GetDescendants() do
3338
if item:IsA("BasePart") then
3439
table.insert(humanoidParts, item)
3540
end

src/ragdoll/src/Server/Classes/RagdollHumanoidOnFall.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function RagdollHumanoidOnFall:_getOrCreateRagdollLogic()
6868
return self._ragdollLogic
6969
end
7070

71-
function RagdollHumanoidOnFall:_handleServerEvent(player, value)
71+
function RagdollHumanoidOnFall:_handleServerEvent(player: Player, value)
7272
assert(player == self._player, "Bad player")
7373
assert(typeof(value) == "boolean", "Bad value")
7474

src/secrets/src/Server/SecretsService.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ function SecretsService:_decrypt(data: SecretsData): (boolean?, string)
258258
return true, tostring(decrypted)
259259
end
260260

261-
function SecretsService:_handleServerInvoke(player, request)
261+
function SecretsService:_handleServerInvoke(player: Player, request)
262262
if request == SecretsServiceConstants.REQUEST_SECRET_KEY_NAMES_LIST then
263263
return self:_promiseHandleList(player):Yield()
264264
else
265265
error(string.format("Bad request %q", tostring(request)))
266266
end
267267
end
268268

269-
function SecretsService:_promiseHandleList(player)
269+
function SecretsService:_promiseHandleList(player: Player)
270270
return self._permissionsService
271271
:PromisePermissionProvider()
272272
:Then(function(provider)

src/settings/src/Shared/SettingsDataService.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ end
134134
@param player Player
135135
@return Observable<PlayerSettingsBase>
136136
]=]
137-
function SettingsDataService:ObservePlayerSettings(player)
137+
function SettingsDataService:ObservePlayerSettings(player: Player)
138138
assert(typeof(player) == "Instance" and player:IsA("Player"), "Bad player")
139139

140140
return self:_getPlayerSettingsMapForPlayer(player):ObserveAtKey(player, self._tieRealmService:GetTieRealm())

src/sounds/src/Shared/SoundUtils.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export type SoundOptions = {
2121
SoundId: number | string,
2222
}
2323

24+
export type SoundId = string | number | SoundOptions
25+
2426
local SoundUtils = {}
2527

2628
--[=[
@@ -36,7 +38,7 @@ local SoundUtils = {}
3638
3739
@return Sound
3840
]=]
39-
function SoundUtils.playFromId(id: string | number | SoundOptions): Sound
41+
function SoundUtils.playFromId(id: SoundId): Sound
4042
local sound = SoundUtils.createSoundFromId(id)
4143

4244
if RunService:IsClient() then

0 commit comments

Comments
 (0)