Skip to content
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

Add Unused Code check to VI Analyzer workflow #462

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

aepete
Copy link
Collaborator

@aepete aepete commented Dec 15, 2023

  • This contribution adheres to CONTRIBUTING.md. (Required)
  • (n/a) Automatically post PR comments with images for G code changes? (Recommended for small changes)

What does this Pull Request accomplish?

Adds Unused Code check to the VI Analyzer workflow.

Why should this Pull Request be merged?

Unused Code is considered a ranking-2 (high-severity) check in VIAnalyzer by default, as having unused code risks performance issues and is exemplary of poor programming practice.

Note: Enabling this Unused Code check revealed that certain subVIs proto-generated by grpc-labview are subject to fail the check. To work around this, several exclusions have been added to the VI Analyzer configuration file.

What testing has been done?

VI Analyzer tests pass locally and in PR workflow

@aepete aepete merged commit d9e4884 into main Dec 15, 2023
3 checks passed
@aepete aepete deleted the users/apeterso/ViAnalyzerUnsusedCodeCheck branch December 15, 2023 20:16
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.

2 participants