New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run tests on my app because of dependency versions inconsistency in the SwiftLint package #5063
Comments
Same Problem, with a similar setup
brew install xcbeautify
xcodebuild \
-scmProvider system \
-skipPackagePluginValidation \
-disableAutomaticPackageResolution \
-project VisionControl.xcodeproj \
-scheme VisionControl-QA \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2' \
test \
| xcbeautify Config Filedisabled_rules: # rule identifiers to exclude from running
- file_length
- function_body_length
- line_length
- missing_docs
- private_outlet
- cyclomatic_complexity
- trailing_whitespace
- identifier_name
- function_parameter_count
opt_in_rules: # some rules are only opt-in
# Find all the available rules by running: swiftlint rules
- force_unwrapping
- empty_count
- trailing_semicolon
- closure_parameter_position
- closure_spacing
- explicit_init
- function_body_length
- implicit_return
- implicitly_unwrapped_optional
- let_var_whitespace
- line_length
- literal_expression_end_indentation
- operator_usage_whitespace
- overridden_super_call
- private_action
- private_outlet
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- redundant_nil_coalescing
- required_enum_case
- single_test_class
- sorted_first_last
- statement_position
- switch_case_on_newline
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- yoda_condition
included: # paths to include during linting. `--path` is ignored if present.
- VisionControl
- VisionControl-QATests
- VisionControl-UITests
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
# Customize behaviour of the existing rules
large_tuple: 5
nesting:
type_level: 2
statement_level: 5
type_body_length:
- 450 # warning
- 500 # error Error Output
|
I have the same problem after updating the Plugin from version 0.50.3 to 0.52.4. |
I also got the same error when building using xcodebuild but not from Xcode. -skipPackagePluginValidation doesn't make any different either. |
Same problem in 0.52.4 |
This area seems suspicious. Lines 51 to 55 in edb16bd
Is it a bad dependency, or is it something wrong with swift-syntax...? |
+1 |
same issue here... anyone found a workaround? |
+1 |
Does #3073 (comment) help? |
@SimplyDanny No. If I did as it was written there, swiftlint simply didn't start, and didn't show any errors |
Closing as duplicate of #5208. |
New Issue Checklist
Describe the bug
A clear and concise description of what the bug is.
I had a bunch of tests that I was running on my app with the following command
but after installing swiftlint as a swift package to my app, now I am getting this error when I try to build and run the test.
The package is added in my target as a plugin in the
Run build tool Plug In
section.Environment
SwiftLint version (run
swiftlint version
to be sure)?0.52.2
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Installed as a Swift Package
Paste your configuration file:
xcodebuild -version
)?Xcode 14.3.1
The text was updated successfully, but these errors were encountered: