Skip to content

Conversation

@robertwu1
Copy link
Collaborator

Create an action to run static code analysis on demand.

After this is created, a separate PR will be created to fix linker issues described in #1506

Create an action to run static code analysis on demand.
@robertwu1 robertwu1 requested a review from philburk March 8, 2022 22:09
@robertwu1
Copy link
Collaborator Author

Seems like there are issues in the autobuilder. github/codeql-action#824

@ann0see
Copy link

ann0see commented Mar 10, 2022

What happens if you just use a normal build process instead of the auto-build provided by codeql (probably you’re already doing that though)

@robertwu1
Copy link
Collaborator Author

What happens if you just use a normal build process instead of the auto-build provided by codeql (probably you’re already doing that though)

Changing the build to something normal seems to work fine. Thanks! I will address the issues next week

@robertwu1 robertwu1 changed the title Create codeql.yml for static code analysis Add static code analysis on commit Mar 10, 2022
@ann0see
Copy link

ann0see commented Mar 11, 2022

Ah, now similar issues show up in the CI: https://github.com/google/oboe/runs/5504278249

@ann0see
Copy link

ann0see commented Mar 15, 2022

Great! Thanks for fixing these errors

@ann0see
Copy link

ann0see commented Mar 15, 2022

Do you plan to add codeQl to your repo or just fix the overflow warnings? I think splitting the fixes in a separate PR would make sense such that you can decide if CodeQL should or shouldn’t be added.

@robertwu1 robertwu1 changed the title Add static code analysis on commit Add static code analysis on commit and fix CodeQL errors Mar 15, 2022
@robertwu1
Copy link
Collaborator Author

Is there a downside of adding CodeQl to the CI besides the checks taking a bit longer?

@ann0see
Copy link

ann0see commented Mar 15, 2022

Not really.

@robertwu1 robertwu1 requested a review from philburk March 17, 2022 19:14
@robertwu1
Copy link
Collaborator Author

Fixes #1506

@robertwu1 robertwu1 merged commit 2d4797a into main Mar 23, 2022
@ann0see
Copy link

ann0see commented Mar 23, 2022

Great thanks for fixing and merging!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants