Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,25 @@ on:

jobs:
lint:
runs-on: macos-13
runs-on: macos-latest
environment: default
steps:
- uses: actions/checkout@v4
- name: SwiftFormat version
run: swiftformat --version
- name: Format lint
run: swiftformat --lint .
- name: Install SwiftLint
run: brew install swiftlint
- name: SwiftLint version
run: swiftlint --version
- name: Lint
run: swiftlint .
run: swiftlint lint --quiet
test:
runs-on: macos-latest
environment: default
strategy:
matrix:
include:
- os: macos-14
xcode: "15.3" # Swift 5.10
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run Tests
run: swift test --enable-code-coverage
- name: Swift Coverage Report
Expand Down
4 changes: 2 additions & 2 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--redundanttype explicit
--swiftversion 5.8
--maxwidth 120
--header "{file}\nCoreDataRepository\n\n\nMIT License\n\nCopyright © {year} Andrew Roan"
--header "{file}\nCoreDataRepository\n\nThis source code is licensed under the MIT License (MIT) found in the\nLICENSE file in the root directory of this source tree."
--allman false
--wraparguments before-first
--wrapcollections before-first
--wrapcollections before-first
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// coredata-repository-benchmarks.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

// swiftlint:disable file_length

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataStack.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Document.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import CoreDataRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// FileCabinet+Drawer.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import CoreDataRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// FileCabinet.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import CoreDataRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// FileCabinetDetailView.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import CoreDataRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// FileCabinetsView.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import CoreDataRepository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// RelationshipsExampleApp.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreDataRepository
import SwiftUI
Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataBatchError.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataBatchError.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import Foundation

Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataError.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataError.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository+Aggregate.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Aggregate.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+BatchRequest.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository+Create.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Create.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Create_Batch.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository+Custom.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Custom.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository+Delete.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Delete.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Delete_Batch.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository+Fetch.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Fetch.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository+Read.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Read.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Read_Batch.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository+Update.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Update.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository+Update_Batch.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/CoreDataRepository.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// CoreDataRepository.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/FetchableUnmanagedModel.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// FetchableUnmanagedModel.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
6 changes: 2 additions & 4 deletions Sources/CoreDataRepository/IdentifiedUnmanagedModel.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// IdentifiedUnmanagedModel.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// AggregateSubscription.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// AggregateThrowingSubscription.swift
// CoreDataRepository
//
//
// MIT License
//
// Copyright © 2024 Andrew Roan
// This source code is licensed under the MIT License (MIT) found in the
// LICENSE file in the root directory of this source tree.

import CoreData
import Foundation
Expand Down
Loading