Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

swiftformat-staged

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swiftformat-staged

Format modified lines in your swift files

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

swiftformat-staged

Formats staged swift code using swift-format

Install

npm install -g swiftformat-staged

Usage

swiftformat-staged [pathToProjectRoot]

Path to project root is optional and defaults to current path. Path must be the root of a valid git project with at least one commit Staged changes are formatted:

1 staged patch(es) found
Formatting "App/Login/LoginViewController.swift"

Formatted changes are not staged automatically

Status

This is a beta project. Because it operates on staged files, there is no risk of data loss on applied files.

However to make it easier to undo formatting operations, it is recommended to stage all changes before running.

This way all formatting can be undone by discarding all unstaged changes

TODO

  • Add support for passing swiftformat arguments

FAQs

Package last updated on 25 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts