diff --git a/.github/workflows/swift-benchmark-delta.yml b/.github/workflows/swift-benchmark-delta.yml index 964a613..e724c5e 100644 --- a/.github/workflows/swift-benchmark-delta.yml +++ b/.github/workflows/swift-benchmark-delta.yml @@ -41,7 +41,7 @@ jobs: - name: Run benchmarks for PR branch if: ${{ env.hasBenchmark == '1' }} run: | - swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark update-baseline pull_request + swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update pull_request --no-progress --quiet - name: Switch to branch 'main' if: ${{ env.hasBenchmark == '1' }} run: | @@ -50,14 +50,14 @@ jobs: - name: Run benchmarks for branch 'main' if: ${{ env.hasBenchmark == '1' }} run: | - swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark update-baseline main + swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update main --no-progress --quiet - name: Compare PR and main if: ${{ env.hasBenchmark == '1' }} id: benchmark run: | echo $(date) >> $GITHUB_STEP_SUMMARY echo "exitStatus=1" >> $GITHUB_ENV - swift package benchmark compare main pull_request --format markdown >> $GITHUB_STEP_SUMMARY + swift package benchmark baseline check main pull_request --format markdown >> $GITHUB_STEP_SUMMARY echo "exitStatus=0" >> $GITHUB_ENV continue-on-error: true - if: ${{ env.exitStatus == '0' }} diff --git a/.github/workflows/swift-outdated-dependencies.yml b/.github/workflows/swift-outdated-dependencies.yml index 7ee90d2..8eb01e3 100644 --- a/.github/workflows/swift-outdated-dependencies.yml +++ b/.github/workflows/swift-outdated-dependencies.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - name: Check Swift package dependencies id: spm-dep-check - uses: MarcoEidinger/swift-package-dependencies-check@2.1.0 + uses: MarcoEidinger/swift-package-dependencies-check@2.3.4 with: isMutating: true failWhenOutdated: false diff --git a/.gitignore b/.gitignore index b2cbbc7..0dea6af 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,12 @@ ## User settings xcuserdata/ +## Benchmark data +.benchmarkBaselines/ + +## DocC build directories +**/.docc-build/ + ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) *.xcscmblueprint *.xccheckout diff --git a/.swift-version b/.swift-version index 760606e..64ff7de 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -5.7 +5.7.1 diff --git a/.swiftlint.yml b/.swiftlint.yml index 20a8cdf..347c8e5 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,6 +1,6 @@ #################################################################### # DO NOT EDIT THIS FILE -# This is a master file maintained in https://github.com/ordo-one/repository-templates +# This is a master file maintained in https://github.com/ordo-one/public-repository-templates # # Add overrides into `swiftlint_refinement.yml` in the directory it self or # .swiftlint.yml under the specific directory where the code is located @@ -9,11 +9,13 @@ #################################################################### included: + - Benchmarks - Sources - Tests excluded: +analyzer_rules: + - unused_import opt_in_rules: - - anyobject_protocol - array_init - attributes - closure_end_indentation @@ -72,7 +74,6 @@ opt_in_rules: - test_case_accessibility - toggle_bool - unavailable_function - - unused_import - unneeded_parentheses_in_closure_argument - unowned_variable_capture - untyped_error_in_catch @@ -81,3 +82,12 @@ opt_in_rules: - vertical_whitespace_opening_braces - xct_specific_matcher - yoda_condition +line_length: + warning: 140 + error: 140 + ignores_comments: true + ignores_urls: true + ignores_function_declarations: true + ignores_interpolated_strings: true +identifier_name: + excluded: [id, i, j, k]