Skip to content

add more specific outputs #37

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

Merged
merged 1 commit into from
Dec 4, 2023
Merged

add more specific outputs #37

merged 1 commit into from
Dec 4, 2023

Conversation

2bndy5
Copy link
Contributor

@2bndy5 2bndy5 commented Dec 2, 2023

satisfies feature requested in cpp-linter/cpp-linter-action#168

Copy link

sonarqubecloud bot commented Dec 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

codecov bot commented Dec 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (99aa469) 84.37% compared to head (7947fff) 84.50%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   84.37%   84.50%   +0.13%     
==========================================
  Files           8        8              
  Lines         691      697       +6     
==========================================
+ Hits          583      589       +6     
  Misses        108      108              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@2bndy5 2bndy5 added the enhancement New feature or request label Dec 2, 2023
Comment on lines -64 to +68
exit_code = override if override is not None else bool(Globals.OUTPUT)
exit_code = (
override
if override is not None
else (Globals.format_failed_count + Globals.tidy_failed_count)
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using bool(Globals.OUTPUT) always returns true since revision of comment contents (see changes in #32). So, this enhancement fixes that ambiguity while implementing the new outputs. 🚀

@2bndy5 2bndy5 requested a review from shenxianpeng December 2, 2023 14:34
Copy link
Contributor

@shenxianpeng shenxianpeng left a comment

Choose a reason for hiding this comment

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

LGTM.

@2bndy5 2bndy5 merged commit a2875ac into main Dec 4, 2023
@2bndy5 2bndy5 deleted the add-specific-outputs branch December 4, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants