Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stackotter/swift-lint-plugin

A SwiftPM plugin that adds a linting command
https://github.com/stackotter/swift-lint-plugin

Last synced: 4 days ago
JSON representation

A SwiftPM plugin that adds a linting command

Awesome Lists containing this project

README

        

# SwiftLintPlugin

This is a SwiftPM plugin that adds a lint command. SwiftPM plugins are only available in Swift 5.6+

## Usage

Add the following dependency to your `Package.swift` file:

```swift
.package(name: "SwiftLintPlugin", url: "https://github.com/stackotter/swift-lint-plugin", branch: "main")
```

And then lint your project with:

```swift
swift package plugin --disable-sandbox lint
```

Or if you want to lint a specific target:

```swift
swift package plugin --target MyTarget --disable-sandbox lint
```