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
8 changes: 5 additions & 3 deletions .swift-format
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"respectsExistingLineBreaks" : true,
"rules" : {
"AllPublicDeclarationsHaveDocumentation" : false,
"AlwaysUseLiteralForEmptyCollectionInit" : true,
"AlwaysUseLowerCamelCase" : true,
"AmbiguousTrailingClosureOverload" : false,
"BeginDocumentationCommentWithOneLineSummary" : false,
"BeginDocumentationCommentWithOneLineSummary" : true,
"DoNotUseSemicolons" : true,
"DontRepeatTypeInStaticProperties" : true,
"FileScopedDeclarationPrivacy" : true,
Expand All @@ -37,7 +38,7 @@
"NeverUseImplicitlyUnwrappedOptionals" : true,
"NoAccessLevelOnExtensionDeclaration" : true,
"NoAssignmentInExpressions" : true,
"NoBlockComments" : false,
"NoBlockComments" : true,
"NoCasesWithOnlyFallthrough" : true,
"NoEmptyTrailingClosureParentheses" : true,
"NoLabelsInCasePatterns" : true,
Expand All @@ -53,7 +54,8 @@
"ReplaceForEachWithForLoop" : true,
"ReturnVoidInsteadOfEmptyTuple" : true,
"TypeNamesShouldBeCapitalized" : true,
"UseEarlyExits" : true,
"UseEarlyExits" : false,
"UseExplicitNilCheckInConditions" : true,
"UseLetInEveryBoundCaseVariable" : true,
"UseShorthandTypeNames" : true,
"UseSingleLinePropertyGetter" : true,
Expand Down
2 changes: 2 additions & 0 deletions .swiftformatignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
./harmony/*
./stm32-neopixel/Sources/Application/Registers/*
./stm32-uart-echo/Sources/Application/Registers/*
2 changes: 1 addition & 1 deletion pico-blink-sdk/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Main {
static func main() {
let led = UInt32(PICO_DEFAULT_LED_PIN)
gpio_init(led)
gpio_set_dir(led, /*out*/ true)
gpio_set_dir(led, true)
while true {
gpio_put(led, true)
sleep_ms(250)
Expand Down
2 changes: 1 addition & 1 deletion stm32-lcd-logo/Support/HAL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ extension STM32F746 {
b4Pin.configure(
configuration: .init(
mode: .alternateFunction, outputType: .pushPull, outputSpeed: .high,
pull: .none, alternateFunction: .alternateFunction9 /*!*/,
pull: .none, alternateFunction: .alternateFunction9,
activeHigh: true))
b5Pin.configure(
configuration: .init(
Expand Down