Skip to content

Commit

Permalink
Prefer static over final class
Browse files Browse the repository at this point in the history
  • Loading branch information
mildm8nnered committed Apr 29, 2024
1 parent 88297c2 commit 994fd94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/SwiftLintFrameworkTests/BaselineTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ final class BaselineTests: XCTestCase {
Baseline(violations: ruleDescriptions.violations(for: filePath))
}

override final class func setUp() {
override static func setUp() {
super.setUp()
currentDirectoryPath = FileManager.default.currentDirectoryPath
XCTAssertTrue(FileManager.default.changeCurrentDirectoryPath(temporaryDirectoryPath))
}

override final class func tearDown() {
override static func tearDown() {
if let currentDirectoryPath {
XCTAssertTrue(FileManager.default.changeCurrentDirectoryPath(currentDirectoryPath))
self.currentDirectoryPath = nil
Expand Down

0 comments on commit 994fd94

Please sign in to comment.