Skip to content

Commit

Permalink
Fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fredpi committed Feb 14, 2020
1 parent 9995c28 commit e92efda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
12 changes: 5 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@

#### Enhancements

* None.
* Add option to specify a `child_config` / `parent_config` file
(local or remote) in any SwiftLint configuration file.
Allow passing multiple configuration files via the command line.
[Frederick Pietschmann](https://github.com/fredpi)
[#1352](https://github.com/realm/SwiftLint/issues/1352)

#### Bug Fixes

Expand Down Expand Up @@ -71,12 +75,6 @@
* Add `deinitializer` type content to `type_contents_order` rule instead of
grouping it with initializers.
[Steven Magdy](https://github.com/StevenMagdy)

* Add option to specify a `child_config` / `parent_config` file
(local or remote) in any SwiftLint configuration file.
Allow passing multiple configuration files via the command line.
[Frederick Pietschmann](https://github.com/fredpi)
[#1352](https://github.com/realm/SwiftLint/issues/1352)

* Inline test failure messages to make development of SwiftLint easier. Test
failures in triggering and non-triggering examples will appear inline in
Expand Down
13 changes: 4 additions & 9 deletions Tests/SwiftLintFrameworkTests/ConfigurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,8 @@ class ConfigurationTests: XCTestCase, ProjectMock {
let filenames = paths.map { $0.bridge().lastPathComponent }.sorted()
let expectedFilenames = [
"DirectoryLevel1.swift",
"Level0.swift",
"Level1.swift",
"Level2.swift",
"Level3.swift",
"Valid1.swift",
"Valid2.swift",
"Main.swift",
"Sub.swift"
"Level0.swift", "Level1.swift", "Level2.swift", "Level3.swift",
"Valid1.swift", "Valid2.swift", "Main.swift", "Sub.swift"
]

XCTAssertEqual(Set(expectedFilenames), Set(filenames))
Expand Down Expand Up @@ -315,7 +309,8 @@ class ConfigurationTests: XCTestCase, ProjectMock {
}

func testAllowZeroLintableFiles() {
let configuration = Configuration(dict: ["allow_zero_lintable_files": true])!
// swiftlint:disable:next force_try
let configuration = try! Configuration(dict: ["allow_zero_lintable_files": true])
XCTAssertTrue(configuration.allowZeroLintableFiles)
}
}

0 comments on commit e92efda

Please sign in to comment.