Update SwiftLint to version 0.58.x (#669)
This commit is contained in:
parent
ebd26ecb12
commit
ab453580ad
3 changed files with 5 additions and 7 deletions
|
|
@ -36,7 +36,6 @@ disabled_rules:
|
||||||
- function_body_length
|
- function_body_length
|
||||||
- implicitly_unwrapped_optional
|
- implicitly_unwrapped_optional
|
||||||
- indentation_width
|
- indentation_width
|
||||||
- inert_defer # Deprecated.
|
|
||||||
- legacy_objc_type
|
- legacy_objc_type
|
||||||
- line_length
|
- line_length
|
||||||
- missing_docs
|
- missing_docs
|
||||||
|
|
@ -58,7 +57,6 @@ disabled_rules:
|
||||||
- type_body_length
|
- type_body_length
|
||||||
- type_contents_order
|
- type_contents_order
|
||||||
- unowned_variable_capture
|
- unowned_variable_capture
|
||||||
- unused_capture_list # Deprecated.
|
|
||||||
- vertical_whitespace_between_cases # Additional whitespace not needed because of visible indentation.
|
- vertical_whitespace_between_cases # Additional whitespace not needed because of visible indentation.
|
||||||
|
|
||||||
## Configuration for specific rules
|
## Configuration for specific rules
|
||||||
|
|
@ -82,5 +80,5 @@ trailing_closure:
|
||||||
trailing_comma:
|
trailing_comma:
|
||||||
mandatory_comma: true
|
mandatory_comma: true
|
||||||
xct_specific_matcher:
|
xct_specific_matcher:
|
||||||
matchers:
|
matchers:
|
||||||
- two-argument-asserts
|
- two-argument-asserts
|
||||||
|
|
|
||||||
|
|
@ -1496,7 +1496,7 @@
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
shellPath = /bin/sh;
|
shellPath = /bin/sh;
|
||||||
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";
|
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";
|
||||||
};
|
};
|
||||||
9A996C4726DDEAF100A4485D /* Remove SPM Duplicate Frameworks */ = {
|
9A996C4726DDEAF100A4485D /* Remove SPM Duplicate Frameworks */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
|
@ -2872,7 +2872,7 @@
|
||||||
repositoryURL = "https://github.com/SimplyDanny/SwiftLintPlugins.git";
|
repositoryURL = "https://github.com/SimplyDanny/SwiftLintPlugins.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMinorVersion;
|
kind = upToNextMinorVersion;
|
||||||
minimumVersion = 0.57.1;
|
minimumVersion = 0.58.0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
307CA2322CF348260099F6DE /* XCRemoteSwiftPackageReference "SwiftFormat" */ = {
|
307CA2322CF348260099F6DE /* XCRemoteSwiftPackageReference "SwiftFormat" */ = {
|
||||||
|
|
|
||||||
|
|
@ -77,8 +77,8 @@
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/SimplyDanny/SwiftLintPlugins.git",
|
"location" : "https://github.com/SimplyDanny/SwiftLintPlugins.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "f9731bef175c3eea3a0ca960f1be78fcc2bc7853",
|
"revision" : "fac0c3d3ac69b15ea5382275dbbd5e583a2e05fa",
|
||||||
"version" : "0.57.1"
|
"version" : "0.58.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue