Skip to content

Commit

Permalink
more swiftlint:disable and add cache path to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Sep 23, 2022
1 parent 2d88ae4 commit dc20be2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ struct MigrateLegacyCredentialStore: Action {
private let AWSCredentialsProviderKeychainExpiration = "expiration"
private let AWSCredentialsProviderKeychainIdentityId = "identityId"

private let FederationProviderKey = "federationProvider"
private let LoginsMapKey = "loginsMap"
private let FederationProviderKey = "federationProvider" // swiftlint:disable:this identifier_name
private let LoginsMapKey = "loginsMap" // swiftlint:disable:this identifier_name

private let AWSCognitoAuthUserPoolCurrentUser = "currentUser"
private let AWSCognitoAuthUserAccessToken = "accessToken"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension SignInState {
typealias StateType = SignInState
let defaultState = SignInState.notStarted

func resolve( // swiftlint:disable:this cyclomatic_complexity
func resolve( // swiftlint:disable:this cyclomatic_complexity function_body_length
oldState: SignInState,
byApplying event: StateMachineEvent)
-> StateResolution<SignInState> {
Expand Down
9 changes: 6 additions & 3 deletions Plugins/SwiftLintPlugin/plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@ struct SwiftLintPlugin: BuildToolPlugin {
context: PluginContext,
target: Target
) async throws -> [Command] {
dump(target)
print(context.pluginWorkDirectory)
return [
.buildCommand(
displayName: "Linting \(target.name)",
executable: try context.tool(named: "swiftlint").path,
arguments: [
"lint",
"--in-process-sourcekit",
"--path",
target.directory.string,
"--cache-path",
"\(context.pluginWorkDirectory)",
"--config",
"\(context.package.directory.string)/Plugins/SwiftLintPlugin/swiftlint.yml",
// "--path",
target.directory.string

],
environment: [:]
)
Expand Down

0 comments on commit dc20be2

Please sign in to comment.