Skip to content

Commit b6a265c

Browse files
committed
Update SwiftLint to version 0.58.x
1 parent ebd26ec commit b6a265c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.swiftlint.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ disabled_rules:
3636
- function_body_length
3737
- implicitly_unwrapped_optional
3838
- indentation_width
39-
- inert_defer # Deprecated.
4039
- legacy_objc_type
4140
- line_length
4241
- missing_docs
@@ -58,7 +57,6 @@ disabled_rules:
5857
- type_body_length
5958
- type_contents_order
6059
- unowned_variable_capture
61-
- unused_capture_list # Deprecated.
6260
- vertical_whitespace_between_cases # Additional whitespace not needed because of visible indentation.
6361

6462
## Configuration for specific rules
@@ -82,5 +80,5 @@ trailing_closure:
8280
trailing_comma:
8381
mandatory_comma: true
8482
xct_specific_matcher:
85-
matchers:
83+
matchers:
8684
- two-argument-asserts

pass.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@
14961496
);
14971497
runOnlyForDeploymentPostprocessing = 0;
14981498
shellPath = /bin/sh;
1499-
shellScript = "SWIFT_PACKAGE_DIR=\"${BUILD_DIR%Build/*}SourcePackages/artifacts\"\nSWIFTLINT_CMD=$(ls \"$SWIFT_PACKAGE_DIR\"/swiftlintplugins/SwiftLintBinary/SwiftLintBinary.artifactbundle/swiftlint-*/bin/swiftlint | head -n 1)\n\nSTRICT_OPT=\n\nif [[ \"${CI}\" == \"true\" ]]; then\n echo \"Running in a Continuous Integration environment. Linting is strictly.\"\n STRICT_OPT=--strict\nfi\n\nif [[ \"${CONFIGURATION}\" == \"Release\" ]]; then\n echo \"Running during a release build. Linting is skipped.\"\n exit 0\nfi\n\nif test -f \"$SWIFTLINT_CMD\" 2>&1\nthen\n \"$SWIFTLINT_CMD\" lint --fix\n \"$SWIFTLINT_CMD\" lint $STRICT_OPT\nelse\n echo \"warning: `swiftlint` command not found\"\nfi\n";
1499+
shellScript = "SWIFT_PACKAGE_DIR=\"${BUILD_DIR%Build/*}SourcePackages/artifacts\"\nSWIFTLINT_CMD=$(ls \"$SWIFT_PACKAGE_DIR\"/swiftlintplugins/SwiftLintBinary/SwiftLintBinary.artifactbundle/swiftlint-*-macos/bin/swiftlint | head -n 1)\n\nSTRICT_OPT=\n\nif [[ \"${CI}\" == \"true\" ]]; then\n echo \"Running in a Continuous Integration environment. Linting is strictly.\"\n STRICT_OPT=--strict\nfi\n\nif [[ \"${CONFIGURATION}\" == \"Release\" ]]; then\n echo \"Running during a release build. Linting is skipped.\"\n exit 0\nfi\n\nif test -f \"$SWIFTLINT_CMD\" 2>&1\nthen\n \"$SWIFTLINT_CMD\" lint --fix\n \"$SWIFTLINT_CMD\" lint $STRICT_OPT\nelse\n echo \"warning: `swiftlint` command not found\"\nfi\n";
15001500
};
15011501
9A996C4726DDEAF100A4485D /* Remove SPM Duplicate Frameworks */ = {
15021502
isa = PBXShellScriptBuildPhase;
@@ -2872,7 +2872,7 @@
28722872
repositoryURL = "https://github.com/SimplyDanny/SwiftLintPlugins.git";
28732873
requirement = {
28742874
kind = upToNextMinorVersion;
2875-
minimumVersion = 0.57.1;
2875+
minimumVersion = 0.58.0;
28762876
};
28772877
};
28782878
307CA2322CF348260099F6DE /* XCRemoteSwiftPackageReference "SwiftFormat" */ = {

pass.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)