-
Notifications
You must be signed in to change notification settings - Fork 146
Resolve all current code warnings except the one about NIO #1148
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
Changes from 5 commits
8da0e31
cddb00e
9fbc5d1
9d3b4ff
fe89da2
a5af78c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,7 +119,12 @@ public class NavigatorTree { | |
|
||
func __read() { | ||
let deadline = DispatchTime.now() + timeout | ||
#if swift(>=5.10) | ||
// Access to this local variable is synchronized using the DispatchQueue `queue`, passed as an argument. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the explanation here. |
||
nonisolated(unsafe) var processedNodes = [NavigatorTree.Node]() | ||
#else | ||
var processedNodes = [NavigatorTree.Node]() | ||
#endif | ||
|
||
while readingCursor.cursor < readingCursor.data.count { | ||
let length = MemoryLayout<UInt32>.stride | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,6 @@ for language in swift-or-c bash md-or-tutorial html docker; do | |
declare -a matching_files | ||
declare -a exceptions | ||
declare -a reader | ||
expections=( ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated to this PR: it might be worth documenting the purpose and features of this script a bit. It seems useful and important, but some contributors might not be aware it exists or ever run it except as part of the bin/test.sh script. |
||
matching_files=( -name '*' ) | ||
reader=head | ||
case "$language" in | ||
|
@@ -136,6 +135,7 @@ EOF | |
cd "$here/.." | ||
find . \ | ||
\( \! -path './.build/*' -a \ | ||
\! -path './bin/benchmark/.build/*' -a \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this resolve a specific warning? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It resolves warnings about several files in Swift-Markdown that don't have the license header comment that DocC expects. Currently, anyone who runs the benchmark tools (even just to read the help text) have to delete that build directory in order for |
||
\! -name '.' -a \ | ||
\( "${matching_files[@]}" \) -a \ | ||
\( \! \( "${exceptions[@]}" \) \) \) | while read line; do | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comment here; maybe also explain the use of
Any
is required to avoid the warning as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For code that's scheduled to be removed I feel that this is fine. The general oddity of the declaration is explained by the comment above and anyone who tries to change the type will notice that doing so reintroduces the deprecation warning.