Add Swiftlint
This commit is contained in:
@ -18,7 +18,6 @@ struct Analytics: ParsableCommand {
|
||||
version: ResgenSwiftVersion
|
||||
)
|
||||
|
||||
|
||||
// MARK: - Static
|
||||
|
||||
static let toolName = "Analytics"
|
||||
|
@ -30,7 +30,7 @@ class AnalyticsDefinition {
|
||||
// MARK: - Methods
|
||||
|
||||
func hasOneOrMoreMatchingTags(inputTags: [String]) -> Bool {
|
||||
if Set(inputTags).intersection(Set(self.tags)).isEmpty {
|
||||
if Set(inputTags).isDisjoint(with: tags) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
@ -52,7 +52,7 @@ class AnalyticsDefinition {
|
||||
var result: String
|
||||
|
||||
if type == .screen {
|
||||
params = params.filter{ param in
|
||||
params = params.filter { param in
|
||||
!param.replaceIn.isEmpty
|
||||
}
|
||||
}
|
||||
@ -76,7 +76,7 @@ class AnalyticsDefinition {
|
||||
return result
|
||||
}
|
||||
|
||||
private func replaceIn(){
|
||||
private func replaceIn() {
|
||||
for parameter in parameters {
|
||||
for rep in parameter.replaceIn {
|
||||
switch rep {
|
||||
|
Reference in New Issue
Block a user