Skip to content

Commit

Permalink
Merge pull request #2 from Ryu0118/feature/add-import-sort
Browse files Browse the repository at this point in the history
Add Mintfile to add sorter
  • Loading branch information
Ryu0118 committed May 23, 2023
2 parents 68e7de2 + f992fa6 commit 74f267c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ release:
cp sorter releases/sorter
rm sorter


.PHONY: sorter
sorter:
mint run sorter -p .
1 change: 1 addition & 0 deletions Mintfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ryu0118/Sorter@0.0.2
2 changes: 1 addition & 1 deletion Sources/Sorter/Sorter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ struct Sorter: ParsableCommand {
}

enum SorterError: LocalizedError {
case projectNotFound(path: String)
case notDirectory(path: String)
case notFile(path: String)
case projectNotFound(path: String)

var errorDescription: String? {
switch self {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SorterTests/SorterTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import XCTest
@testable import SorterCore
import SwiftParser
import XCTest

final class SorterTests: XCTestCase {
func testEnumSortRewriter() {
Expand Down

0 comments on commit 74f267c

Please sign in to comment.