# eggox check

Would these files work? Nothing is written; errors come back as file and line.

```
eggox check [dir] [--json]
```

Sends the folder to Eggox and asks what a push would do: which files
differ, which rooms would have things placed or picked up, whether every
script and brick compiles, and whether the game can be played (a spawn, a
winner for the rounds, doors that lead somewhere). Nothing is written. The
rules and what counts as an error are on [Check, push, publish](/project/pushing).

## Examples

```
$ eggox check
~ rooms/Skybound/room.json
+ things/Belt Shrine.lua
Skybound: 2 placed
9 other rooms as they were.
Everything compiles. Nothing was written.
```

```
$ eggox check
check refused:
things/Belt Shrine.lua:2: syntax error before: '('
rooms/Arena/room.json: thing 3 (Lamp Post at 12,10): blocked
```

```
$ eggox check
Nothing would change: 3 rooms, 12 things as they were.
note: rooms/Arena/room.json: no SPAWN: put the spawn brick on a thing so players know where to start
Everything compiles. Nothing was written.
```

A `note:` line is a warning: the push goes through, the publish will not
until it is gone. Agents run this in a loop: write, check, fix what it
names, check again, then push.

