Usage

Dependencies

Examples

Building at scale

Commands

Contributors

Linting

Project linting

One of the benefits of making the definition of projects explicit, is that we can run checks on them and uncover configuration issues that otherwise would be bubbled up by the build system later on. Tuist follows the principle of the sooner we detect the errors, the less time developers will have to spend. For that reason, we provide a command that developers can run either locally or on CI to ensure their projects have a valid configuration:

tuist lint project
Copy the content

Please note that there are checks that only the compiler and the build system can do. In other words, those will only be uncover by compiling the app with Xcode or xcodebuild.

Code linting

Tuist provides a command for linting the Swift code of your projects by leveraging SwiftLint. All you need to do is run the following command:

tuist lint code # All the targets
tuist lint code MyTarget
Copy the content

You can provide your SwiftLint configuration file by placing it under the root /Tuist directory:

Tuist
A global Tuist's directory
swiftlint.yml
Provide your own SwiftLint configuration file

Arguments

ArgumentShortDescriptionValuesDefaultRequired

--path

-p

Description:

The path to the directory that contains the workspace or project whose code will be linted.

-p

The path to the directory that contains the workspace or project whose code will be linted.

No

By using this website, you agree to our cookie policy.