Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Aug 28, 2024
1 parent 04e66ef commit e0198ca
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 21 deletions.
19 changes: 9 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ let swiftSettings: [SwiftSetting] = [
SwiftSetting.enableExperimentalFeature("VariadicGenerics"),

SwiftSetting.enableUpcomingFeature("FullTypedThrows"),
SwiftSetting.enableUpcomingFeature("InternalImportsByDefault"),
SwiftSetting.enableUpcomingFeature("InternalImportsByDefault")

SwiftSetting.unsafeFlags([
"-Xfrontend",
"-warn-long-function-bodies=100"
]),
SwiftSetting.unsafeFlags([
"-Xfrontend",
"-warn-long-expression-type-checking=100"
])
// SwiftSetting.unsafeFlags([
// "-Xfrontend",
// "-warn-long-function-bodies=100"
// ]),
// SwiftSetting.unsafeFlags([
// "-Xfrontend",
// "-warn-long-expression-type-checking=100"
// ])
]

let package = Package(
Expand All @@ -42,7 +42,6 @@ let package = Package(
.library(name: "SublimationCore", targets: ["SublimationCore"])
],
dependencies: [
// .package(url: "https://github.com/apple/swift-protobuf.git", from: "1.26.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0")
],
targets: [
Expand Down
6 changes: 3 additions & 3 deletions Scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ -z "$SRCROOT" ] || [ -n "$CHILD_PACKAGE" ]; then
PERIPHERY_OPTIONS=""
else
PACKAGE_DIR="${SRCROOT}"
PERIPHERY_OPTIONS="--skip-build"
PERIPHERY_OPTIONS=""
fi


Expand All @@ -42,9 +42,9 @@ else
set -e
fi

$PACKAGE_DIR/scripts/header.sh -d $PACKAGE_DIR/Sources -c "Leo Dion" -o "BrightDigit" -p "Sublimation"
$PACKAGE_DIR/scripts/header.sh -d $PACKAGE_DIR/Sources -c "Leo Dion" -o "BrightDigit" -p "SublimationBonjour"
$MINT_RUN swift-format lint --recursive --parallel $SWIFTFORMAT_OPTIONS $PACKAGE_DIR/Sources

pushd $PACKAGE_DIR
$MINT_RUN periphery scan $PERIPHERY_OPTIONS --disable-update-check
popd
popd
2 changes: 1 addition & 1 deletion Sources/Sublimation/Sublimation.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Sublimation.swift
// Sublimation
// SublimationBonjour
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SublimationCore/Application.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Application.swift
// Sublimation
// SublimationBonjour
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SublimationCore/Sublimatory.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Sublimatory.swift
// Sublimation
// SublimationBonjour
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SublimationMocks/MockError.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MockError.swift
// Sublimation
// SublimationBonjour
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SublimationMocks/MockTunnelClient.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MockTunnelClient.swift
// Sublimation
// SublimationBonjour
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SublimationMocks/MockURL.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// MockURL.swift
// Sublimation
// SublimationBonjour
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SublimationMocks/URL.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// URL.swift
// Sublimation
// SublimationBonjour
//
// Created by Leo Dion.
// Copyright © 2024 BrightDigit.
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
aggregateTargets:
Lint:
buildScripts:
- path: Scripts/lints.sh
- path: Scripts/lint.sh
name: Lint
basedOnDependencyAnalysis: false
schemes: {}

0 comments on commit e0198ca

Please sign in to comment.