Skip to content

Checks and formatting

ship runs the project’s checks and Saturn’s own, and goes ahead only if they pass. For a Rojo project, nothing needs setting up. Any other project lists its checks in saturn.json.

Saturn reads the *.project.json file and uses whichever of these the project is set up for:

When Runs
Build A *.project.json file exists rojo build into a temporary folder
Lint selene.toml exists selene on the project’s source folders
Formatting stylua.toml exists stylua --check on the same folders

save formats the files you changed with StyLua, and ship formats everything before checking, so formatting never blocks a ship.

These need no engine and no tool: they read the list of files in the commit that would ship, from git, so they run on any computer, for a Unity, Godot or Unreal game as for a Roblox one.

When Stops a ship that has
File names Always Two files or folders whose names differ only in capitals, which Windows and macOS take as one. A path over 200 characters, a name Windows keeps for itself (CON, NUL, COM1…), a character Windows does not allow (< > : " | ? * \), or a name ending in a dot or a space
Unity files A Unity project A file or folder in Assets, or in a package kept in Packages, without its .meta. A .meta whose file is not there. Two .meta files with one GUID. Library, Temp, Obj, Logs, UserSettings, Build or Builds saved in git
Godot files A project.godot A file Godot imports (pictures, sounds, models, fonts, and any kind the project has .import files for) without its .import. A file of a kind the project keeps .uid files for without one. A .import or .uid whose file is not there. .godot or .import saved in git. Folders with a .gdignore and hidden ones are left out, as Godot leaves them
Unreal files A .uproject DerivedDataCache, Intermediate or Saved saved in git, beside the project or a plugin. Binaries is allowed: teams whose artists do not build the code save it on purpose

Engines are found as for scenes and prefabs: in the game’s folder and each folder directly inside it, each project looked at on its own.

Only a problem the work brings stops the ship. One that main has already is told about under the check that passed, so a game that starts using Saturn with one can still ship while it is fixed. A failed check lists up to 12 problems and says what to do about each kind.

A check whose tool is not installed stops the ship. Nothing has shown that the work passes, and what lands on main unchecked then fails the checks of everyone whose computer can run them. ship names the missing tool and, when the project lists its tools for Foreman, Aftman or Rokit, the command that installs them.

saturn ship --unchecked goes ahead without the checks that cannot run; a check that runs and fails still stops it. save never needs the tools: without StyLua it leaves the formatting alone.

On Saturn Rings, a check that has passed on the very same files is not run again, by anyone in the game: ship says who it passed for, and when. How to say what a check reads, and when one is run anyway, is under inputs and cache.