Skip to content

Commit 7cf1acc

Browse files
authored
Add luaurc file to plugin directory, enabling strict mode for all files (#2)
1 parent 830f3c4 commit 7cf1acc

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Build
22

33
on:
4-
push:
4+
- push
5+
- pull_request
56

67
env:
78
CARGO_PKG_VERSION: "0.1.${{ github.run_number }}"

.github/workflows/checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Code Quality Checks
22

3-
on: push
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
clippy:

plugin/.luaurc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"languageMode": "strict"
3+
}

plugin/src/Main.server.luau

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
--!strict
21
local Main = script:FindFirstAncestor("MCPStudioPlugin")
32
local MockWebSocketService = require(Main.MockWebSocketService)
43
local Types = require(Main.Types)

plugin/src/MockWebSocketService.luau

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
--!strict
2-
31
local HttpService = game:GetService("HttpService")
42

53
local MockWebSocketClient = {}

plugin/src/Tools/InsertModel.luau

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
--!strict
2-
31
local Main = script:FindFirstAncestor("MCPStudioPlugin")
42
local Types = require(Main.Types)
53

plugin/src/Tools/RunCode.luau

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
--!strict
21
local Main = script:FindFirstAncestor("MCPStudioPlugin")
32
local Types = require(Main.Types)
43

util/sign.macos.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
2-
set -e
2+
set -ex
3+
4+
BUNDLE_DIR=target/aarch64-apple-darwin/release/bundle
35

46
if [ -n "$APPLE_API_KEY_CONTENT" ]
57
then
@@ -21,7 +23,6 @@ then
2123
IDENTITY=$(security find-identity -v -p codesigning | grep "Developer ID Application" | cut -d' ' -f4 | tail -1)
2224
echo "$APPLE_API_KEY_CONTENT" > "$APPLE_API_KEY"
2325

24-
BUNDLE_DIR=target/aarch64-apple-darwin/release/bundle
2526

2627
codesign -s "$IDENTITY" -v -f -o runtime --deep -i com.rbx-mcp.server --timestamp --entitlements util/App.entitlements --generate-entitlement-der "$BUNDLE_DIR/osx/Roblox Studio MCP.app"
2728
ditto -c -k $BUNDLE_DIR/osx $BUNDLE_DIR/bund.zip

0 commit comments

Comments
 (0)