diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa31e72a..e6c687db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,16 +6,7 @@ on: pull_request: { types: [opened, reopened, synchronize, ready_for_review] } push: { branches: [ main ] } -jobs: - lint: - runs-on: ubuntu-latest - container: swift:jammy - steps: - - name: Check out JWTKit - uses: actions/checkout@v4 - - name: Run format lint check - run: swift format lint --strict --recursive --parallel . - +jobs: linux-integration: if: ${{ !(github.event.pull_request.draft || false) }} runs-on: ubuntu-latest @@ -40,6 +31,8 @@ jobs: with: with_api_check: ${{ github.event_name == 'pull_request' }} warnings_as_errors: true + with_linting: true + with_windows: true secrets: inherit ios-tests: diff --git a/.swift-format b/.swift-format deleted file mode 100644 index 2d09ae36..00000000 --- a/.swift-format +++ /dev/null @@ -1,70 +0,0 @@ -{ - "fileScopedDeclarationPrivacy": { - "accessLevel": "private" - }, - "indentation": { - "spaces": 4 - }, - "indentConditionalCompilationBlocks": true, - "indentSwitchCaseLabels": false, - "lineBreakAroundMultilineExpressionChainComponents": false, - "lineBreakBeforeControlFlowKeywords": false, - "lineBreakBeforeEachArgument": false, - "lineBreakBeforeEachGenericRequirement": false, - "lineLength": 140, - "maximumBlankLines": 1, - "multiElementCollectionTrailingCommas": true, - "noAssignmentInExpressions": { - "allowedFunctions": [ - "XCTAssertNoThrow" - ] - }, - "prioritizeKeepingFunctionOutputTogether": false, - "respectsExistingLineBreaks": true, - "rules": { - "AllPublicDeclarationsHaveDocumentation": false, - "AlwaysUseLiteralForEmptyCollectionInit": false, - "AlwaysUseLowerCamelCase": true, - "AmbiguousTrailingClosureOverload": true, - "BeginDocumentationCommentWithOneLineSummary": false, - "DoNotUseSemicolons": true, - "DontRepeatTypeInStaticProperties": true, - "FileScopedDeclarationPrivacy": true, - "FullyIndirectEnum": true, - "GroupNumericLiterals": true, - "IdentifiersMustBeASCII": true, - "NeverForceUnwrap": false, - "NeverUseForceTry": false, - "NeverUseImplicitlyUnwrappedOptionals": false, - "NoAccessLevelOnExtensionDeclaration": true, - "NoAssignmentInExpressions": true, - "NoBlockComments": true, - "NoCasesWithOnlyFallthrough": true, - "NoEmptyTrailingClosureParentheses": true, - "NoLabelsInCasePatterns": true, - "NoLeadingUnderscores": false, - "NoParensAroundConditions": true, - "NoPlaygroundLiterals": true, - "NoVoidReturnOnFunctionSignature": true, - "OmitExplicitReturns": false, - "OneCasePerLine": true, - "OneVariableDeclarationPerLine": true, - "OnlyOneTrailingClosureArgument": true, - "OrderedImports": true, - "ReplaceForEachWithForLoop": true, - "ReturnVoidInsteadOfEmptyTuple": true, - "TypeNamesShouldBeCapitalized": true, - "UseEarlyExits": false, - "UseExplicitNilCheckInConditions": true, - "UseLetInEveryBoundCaseVariable": true, - "UseShorthandTypeNames": true, - "UseSingleLinePropertyGetter": true, - "UseSynthesizedInitializer": true, - "UseTripleSlashForDocumentationComments": true, - "UseWhereClausesInForLoops": false, - "ValidateDocumentationComments": false - }, - "spacesAroundRangeFormationOperators": false, - "tabWidth": 8, - "version": 1 -} diff --git a/README.md b/README.md index 49511c96..c635d6a3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ### Supported Platforms -JWTKit supports all platforms supported by Swift 6 and later, with the exception of Windows. +JWTKit supports all platforms supported by Swift 6 and later. ### Installation