Skip to content

Commit d6becfc

Browse files
committed
Fix the default rotation type to .numbering
1 parent ad5297a commit d6becfc

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
swift-test:
1515
name: swift-test - Xcode ${{ matrix.xcode }}
16-
runs-on: macos-11
16+
runs-on: macos-latest
1717
strategy:
1818
matrix:
1919
xcode: [12.5, 13.2.1]
@@ -37,7 +37,7 @@ jobs:
3737

3838
codecov:
3939
name: codecov - Xcode ${{ matrix.xcode }}
40-
runs-on: macos-11
40+
runs-on: macos-latest
4141
strategy:
4242
matrix:
4343
xcode: [13.2.1]
@@ -57,7 +57,7 @@ jobs:
5757

5858
xcode:
5959
name: ${{ matrix.make-tatget }} - Xcode ${{ matrix.xcode }}
60-
runs-on: macos-11
60+
runs-on: macos-latest
6161
strategy:
6262
matrix:
6363
make-tatget:
@@ -78,7 +78,7 @@ jobs:
7878

7979
build:
8080
name: ${{ matrix.make-tatget }} - Xcode ${{ matrix.xcode }}
81-
runs-on: macos-11
81+
runs-on: macos-latest
8282
strategy:
8383
matrix:
8484
make-tatget:

.github/workflows/danger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: |
1515
github.event_name == 'pull_request'
1616
&& github.event.pull_request.head.repo.full_name == github.repository
17-
runs-on: macos-11
17+
runs-on: macos-latest
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
steps:
@@ -32,8 +32,8 @@ jobs:
3232
if: |
3333
github.event_name == 'issue_comment' && github.event.action == 'created'
3434
&& github.event.issue.pull_request != null
35-
&& startsWith(github.event.comment.body, '/danger')
36-
runs-on: macos-11
35+
&& startsWith(github.event.comment.body, '/check')
36+
runs-on: macos-latest
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
steps:

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ included:
55
- Sources
66
- Tests
77
- Package.swift
8-
- Dangerfile.swift
98

109
trailing_comma:
1110
mandatory_comma: true
@@ -20,5 +19,6 @@ type_body_length:
2019
- 500
2120

2221
identifier_name:
22+
allowed_symbols: "_"
2323
excluded:
2424
- at

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## [x.y.z](https://github.com/sushichop/Puppy/releases/tag/x.y.z) (yyyy-mm-dd)
22

33
- Remove concurrency features. [#39](https://github.com/sushichop/Puppy/pull/39)
4+
- Fix the default rotation type to `numbering`. [#40](https://github.com/sushichop/Puppy/pull/40)
45

56
## [0.4.0](https://github.com/sushichop/Puppy/releases/tag/0.4.0) (2022-01-31)
67

Sources/Puppy/FileRotationLogger.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ public class FileRotationLogger: FileLogger {
44

55
public enum SuffixExtension {
66
case numbering
7-
// swiftlint:disable identifier_name
87
case date_uuid
9-
// swiftlint:enable identifier_name
108
}
11-
public var suffixExtension: SuffixExtension = .date_uuid
9+
public var suffixExtension: SuffixExtension = .numbering
1210

1311
public typealias ByteCount = UInt64
1412
public var maxFileSize: ByteCount = 10 * 1024 * 1024

0 commit comments

Comments
 (0)