Skip to content

Swift: Initial language guides documentation for Swift#12940

Merged
geoffw0 merged 28 commits into
github:mainfrom
geoffw0:swiftdoc
May 10, 2023
Merged

Swift: Initial language guides documentation for Swift#12940
geoffw0 merged 28 commits into
github:mainfrom
geoffw0:swiftdoc

Conversation

@geoffw0
Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 commented Apr 26, 2023

Initial language guides documentation for Swift analysis. This is essentially a port of some of the language-specific documentation from other languages, though there are numerous small changes in the examples and specifics.

I'd like someone from the codeql-c-team to review this first, following the steps to make sure everything is clear and works correctly. After that I'll add a bit more polish, get a docs review, and we should check the links all work.

TODO:

  • team review
  • add the referenced images (basic-swift-query-results-1.png, basic-swift-query-results-2.png, quick-query-tab-swift.png)
  • add the referenced further reading doc (reusables/swift-further-reading.rst)
  • check all markup and links work correctly
    • there's a staging process for this.
  • add beta note(s)
  • doc review
  • when should we merge this?
    • there is a correct time and branch this should be merged to so that the docs appear alongside public beta.

@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Swift labels Apr 26, 2023
@github-actions github-actions Bot added the Swift label Apr 27, 2023
Comment thread swift/ql/examples/snippets/simple_constant_password.ql Fixed
Comment thread swift/ql/examples/snippets/simple_sql_injection.ql Fixed
Comment thread swift/ql/examples/snippets/simple_sql_injection.ql Fixed
@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented May 2, 2023

You can preview the .rst files in the GitHub diff for this PR by clicking "..." > "View file". There are some dead links and missing graphics for now. But for the team review I'm really after feedback on the content, not the formatting.

Copy link
Copy Markdown
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good! A couple of comments (both technical and non-technical).

Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented May 3, 2023

Thanks for the detailed review @MathiasVP ! I think it's time I add those missing images and pass it over to the docs team (but feel free to make further comments if you wish to).

@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented May 5, 2023

I've added the three images. This is now ready for docs review.

I would also appreciate advice from the docs team about how to check all markup and links are correct, including what to do with the link to https://codeql.github.com/codeql-standard-libraries/swift/ (which doesn't currently exist). --- there is a staging process, we don't need to worry about this too much at this stage.

@geoffw0 geoffw0 added the ready-for-doc-review This PR requires and is ready for review from the GitHub docs team. label May 5, 2023
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this screenshot shows a short snippet of source code from apple/swift-collections, similar to the versions of this image for other languages.

@geoffw0 geoffw0 marked this pull request as ready for review May 9, 2023 10:07
@geoffw0 geoffw0 requested a review from a team as a code owner May 9, 2023 10:07
@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented May 10, 2023

Added the beta note. It will need referencing in a couple of other places in future, as we update other docs to include Swift.

geoffw0 and others added 2 commits May 10, 2023 15:40
felicitymay
felicitymay previously approved these changes May 10, 2023
Copy link
Copy Markdown
Contributor

@felicitymay felicitymay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing up this content ✨

I've added a few small comments on the wording, but otherwise this looks ready to merge.

Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
Comment thread docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst Outdated
@felicitymay
Copy link
Copy Markdown
Contributor

This can be merged into main once the tests are passing. Ideally this will be before the next CodeQL CLI release candidate branch is created (currently expected tomorrow).

Swift: Add Swift to supported-frameworks.rst, supported-versions-compilers.rst and extractors.rst
@geoffw0
Copy link
Copy Markdown
Contributor Author

geoffw0 commented May 10, 2023

I've just merged the contents of #13080 into this PR, as we want to check that CI passes on them together. The new commits have already been reviewed.

Co-authored-by: Felicity Chapman <felicitymay@github.com>
Copy link
Copy Markdown
Contributor

@felicitymay felicitymay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. This looks ready to merge from a docs point of view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation no-change-note-required This PR does not need a change note ready-for-doc-review This PR requires and is ready for review from the GitHub docs team. Swift

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants