Skip to content

Commit

Permalink
chore: remove autogenerated Xcode file headers (#251)
Browse files Browse the repository at this point in the history
* strip file headers

* run swiftformat

* use swiftformat config file
  • Loading branch information
ShlomoCode authored Aug 12, 2024
1 parent 8e3fff9 commit 33f7b41
Show file tree
Hide file tree
Showing 38 changed files with 4 additions and 245 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: SwiftFormat
run: swiftformat --lint --swiftversion 5.0 . --reporter github-actions-log
run: swiftformat --lint . --reporter github-actions-log
2 changes: 2 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--swiftversion 5.0
--header strip
2 changes: 1 addition & 1 deletion DockDoor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd BuildTools\nSDKROOT=(xcrun --sdk macosx --show-sdk-path)\n#swift package update #Uncomment this line temporarily to update the version used to the latest matching your BuildTools/Package.swift file\nswift run -c release swiftformat \"$SRCROOT\" --swiftversion 5.0\n";
shellScript = "cd BuildTools\nSDKROOT=(xcrun --sdk macosx --show-sdk-path)\n#swift package update #Uncomment this line temporarily to update the version used to the latest matching your BuildTools/Package.swift file\nswift run -c release swiftformat \"$SRCROOT\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
7 changes: 0 additions & 7 deletions DockDoor/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// AppDelegate.swift
// DockDoor
//
// Created by Ethan Bills on 6/3/24.
//

import Cocoa
import Defaults
import Settings
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Components/BlurView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// BlurView.swift
// DockDoor
//
// Created by Igor Marcossi on 14/06/24.
//

import SwiftUI

struct BlurView: NSViewRepresentable {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Components/DynStack.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// DynStack.swift
// DockDoor
//
// Created by Igor Marcossi on 14/06/24.
//

import SwiftUI

struct DynStack<C: View>: View {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Components/FluidGradient.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// FluidGradient.swift
// DockDoor
//
// Created by Ethan Bills on 7/11/24.
//

import FluidGradient
import SwiftUI

Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Components/HiddenModifier.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// HiddenModifier.swift
// OpenArtemis
//
// Created by Ethan Bills on 1/1/24.
//

import SwiftUI

struct HiddenModifier: ViewModifier {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Components/Marquee.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Marquee.swift
// NotchNook
//
// Created by Igor Marcossi on 16/06/24.
//

import SmoothGradient
import SwiftUI

Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Components/StackedShadow.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// StackedShadow.swift
// DockDoor
//
// Created by Ethan Bills on 6/23/24.
//

import SwiftUI

struct StackedShadow: ViewModifier {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Extensions/ColorHex.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// ColorHex.swift
// DockDoor
//
// Created by ShlomoCode on 10/07/2024.
//

import SwiftUI

extension Color {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Extensions/dockStyle.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// dockStyle.swift
// DockDoor
//
// Created by Igor Marcossi on 14/06/24.
//

import SwiftUI

struct DockStyleModifier: ViewModifier {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/App Icon.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// App Icon.swift
// DockDoor
//
// Created by Ethan Bills on 6/18/24.
//

import AppKit

enum AppIconUtil {
Expand Down
6 changes: 0 additions & 6 deletions DockDoor/Utilities/DockObserver.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// DockObserver.swift
// DockDoor
//
// Created by Ethan Bills on 6/3/24.
//

import ApplicationServices
import Cocoa

Expand Down
6 changes: 0 additions & 6 deletions DockDoor/Utilities/DockUtils.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//
// DockUtils.swift
// DockDoor
//
//

import Cocoa

enum DockPosition {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/KeybindHelper.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// KeybindHelper.swift
// DockDoor
//
// Created by Ethan Bills on 6/13/24.
//

import AppKit
import Carbon
import Defaults
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/LimitedTaskGroup.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// LimitedTaskGroup.swift
// DockDoor
//
// Created by Ethan Bills on 7/23/24.
//

actor LimitedTaskGroup<T> {
private var tasks: [Task<T, Error>] = []
private let maxConcurrentTasks: Int
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/MessageUtil.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// MessageUtil.swift
// DockDoor
//
// Created by Ethan Bills on 6/3/24.
//

import Cocoa

enum MessageUtil {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/Misc Utils.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Misc Utils.swift
// DockDoor
//
// Created by Ethan Bills on 6/13/24.
//

import Carbon
import Cocoa
import Defaults
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/PrivateApis.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// PrivateApis.swift
// DockDoor
//
// Created by ShlomoCode on 10/07/2024.
//

import Cocoa

// returns the CGWindowID of the provided AXUIElement
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/SpaceWindowCacheManager.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// SpaceWindowCacheManager.swift
// DockDoor
//
// Created by Ethan Bills on 7/17/24.
//

import Cocoa
import ScreenCaptureKit

Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/SystemPreferencesHelper.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// SystemPreferencesHelper.swift
// DockDoor
//
// Created by Ethan Bills on 6/3/24.
//

import AppKit

class SystemPreferencesHelper {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/WindowManipulationObservers.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// WindowManipulationObservers.swift
// DockDoor
//
// Created by Ethan Bills on 6/30/24.
//

import AppKit
import ApplicationServices
import Cocoa
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Utilities/WindowUtil.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// WindowUtil.swift
// DockDoor
//
// Created by Ethan Bills on 6/3/24.
//

import ApplicationServices
import Cocoa
import Defaults
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/FirstTimeView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// FirstTimeView.swift
// DockDoor
//
// Created by Ethan Bills on 6/21/24.
//

import SwiftUI

struct FirstTimeView: View {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Hover Window/FullSizePreviewView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// FullSizePreviewView.swift
// DockDoor
//
// Created by Ethan Bills on 7/11/24.
//

import Defaults
import SwiftUI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// SharedPreviewWindowCoordinator.swift
// DockDoor
//
// Created by Ethan Bills on 6/5/24.
//

import Defaults
import FluidGradient
import SwiftUI
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Hover Window/Traffic Light Buttons.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// Traffic Light Buttons.swift
// DockDoor
//
// Created by Ethan Bills on 7/8/24.
//

import SwiftUI

struct TrafficLightButtons: View {
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Hover Window/WindowPreview.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// WindowPreview.swift
// DockDoor
//
// Created by Ethan Bills on 7/4/24.
//

import Defaults
import SwiftUI

Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Hover Window/WindowPreviewHoverContainer.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// WindowPreviewHoverContainer.swift
// DockDoor
//
// Created by Ethan Bills on 7/11/24.
//

import Defaults
import SwiftUI

Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Settings/AppearanceSettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// AppearanceSettingsView.swift
// DockDoor
//
// Created by ShlomoCode on 09/07/2024.
//

import Defaults
import LaunchAtLogin
import SwiftUI
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Settings/MainSettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// MainSettingsView.swift
// DockDoor
//
// Created by Ethan Bills on 6/13/24.
//

import Defaults
import LaunchAtLogin
import SwiftUI
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Settings/PermissionsSettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// PermissionsSettingsView.swift
// DockDoor
//
// Created by Ethan Bills on 6/14/24.
//

import AppKit
import Combine
import SwiftUI
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Settings/UpdateSettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// UpdateSettingsView.swift
// DockDoor
//
// Created by Ethan Bills on 6/23/24.
//

import Sparkle
import SwiftUI

Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Settings/WindowSwitcherSettingsView.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// WindowSwitcherSettingsView.swift
// DockDoor
//
// Created by Hasan Sultan on 6/25/24.
//

import Carbon
import Defaults
import SwiftUI
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/Views/Settings/settings.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// settings.swift
// DockDoor
//
// Created by Ethan Bills on 6/18/24.
//

import Cocoa
import Settings
import Sparkle
Expand Down
7 changes: 0 additions & 7 deletions DockDoor/consts.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// consts.swift
// DockDoor
//
// Created by Ethan Bills on 6/6/24.
//

import Cocoa
import Defaults
import Foundation
Expand Down
Loading

0 comments on commit 33f7b41

Please sign in to comment.