SwiftLint is making error to Typed-Error which is introduced in Swift 6.
It seems that it's parsing Typed-Error as function's parameter.
//
// JourneyRepository.swift
// MSDomain
//
// Created by 이창준 on 2023.12.24.
//
import SwiftData
import Entity
import MSError
public protocol JourneyRepository {
func fetchJourneys(in region: Region) async throws -> [Journey]
func fetchTravelingJourney() async throws(JourneyError) -> Journey
@discardableResult
func saveJourney(_ journey: Journey) async throws(JourneyError) -> Journey // Error this line
}
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint JourneyRepository.swift
Linting Swift files at paths JourneyRepository.swift
Linting 'JourneyRepository.swift' (1/1)
JourneyRepository.swift:17:55: error: Identifier Name Violation: Variable name 'JourneyError' should start with a lowercase character (identifier_name)
JourneyRepository.swift:14:1: warning: Indentation Width Violation: Code should be indented using one tab or 2 spaces (indentation_width)
Done linting! Found 2 violations, 1 serious in 1 file.
Environment
SwiftLint version (run swiftlint version to be sure)?
0.55.1
Installation method used (Homebrew, CocoaPods, building from source, etc)?
New Issue Checklist
Describe the bug
SwiftLint is making error to Typed-Error which is introduced in Swift 6. It seems that it's parsing Typed-Error as function's parameter.
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)?xcodebuild -version
)?