You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the swiftlint CLI (lint option), the output is not complete. The behavior is not consistent, sometimes it ends and outputs Done linting! Found 7 violations, 5 serious in 2 files., other times it ends mid-issue.
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint --reporter json -- closing_brace2.swift dynamic_inline2.swift
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths closing_brace2.swift, dynamic_inline2.swift
Linting 'closing_brace2.swift' (1/2)
Linting 'dynamic_inline2.swift' (2/2)
[
{
"character": 14,
"file":"\/src\/closing_brace2.swift",
"line": 6,
"reason":"Closing brace with closing parenthesis should not have any whitespaces in the middle.",
"rule_id":"closing_brace",
"severity":"Warning",
"type":"Closing Brace Spacing"
},
{
"character": 14,
"file":"\/src\/closing_brace2.swift",
"line": 8,
"reason":"Closing brace with closing parenthesis should not have any whitespaces in the middle.",
"rule_id":"closing_brace",
"severity":"Warning",
"type":"Closing Brace Spacing"
},
{
"character": 31,
"file":"\/src\/dynamic_inline2.swift",
"line": 10,
"reason":"Avoid using 'dynamic' and '@inline(__always)' together.",
"rule_id":"dynamic_inline",
"severity":"Error",
"type":"Dynamic Inline"
},
{
"character": 38,
"file":"\/src\/dynamic_inline2.swift",
"line": 14,
"reason":"Avoid using 'dynamic' and '@inline(__always)' together.",
"rule_id":"
The files used in this analysis are:
dynamic_inline.swift:
Which Xcode version are you using (check xcodebuild -version)?
Docker container doesn't have xcodebuild
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
The issue happens for the files I shared above if I run the analysis a few times. I would say 1 out of 5.
Note:
I don't know that much about swift yet. But I was thinking if this problem could be related to the async nature of the print? Is it possible that the print is not completing when the tool finishes executing?
Thanks for reading this long issue.
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
When running the swiftlint CLI (lint option), the output is not complete. The behavior is not consistent, sometimes it ends and outputs
Done linting! Found 7 violations, 5 serious in 2 files.
, other times it ends mid-issue.Complete output when running SwiftLint, including the stack trace and command used
The files used in this analysis are:
dynamic_inline.swift:
And closing_brace.swift:
Environment
swiftlint version
to be sure)?0.39.2
Running analysis in Docker image
norionomura/swiftlint:0.39.2_swift-5.2.4
No
xcodebuild -version
)?Docker container doesn't have xcodebuild
echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The issue happens for the files I shared above if I run the analysis a few times. I would say 1 out of 5.
Note:
I don't know that much about swift yet. But I was thinking if this problem could be related to the async nature of the print? Is it possible that the print is not completing when the tool finishes executing?
Thanks for reading this long issue.
The text was updated successfully, but these errors were encountered: