-
Notifications
You must be signed in to change notification settings - Fork 159
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
Fix appsec lint #3021
Fix appsec lint #3021
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3021 +/- ##
============================================
- Coverage 74.80% 72.93% -1.87%
Complexity 2781 2781
============================================
Files 112 139 +27
Lines 11017 15166 +4149
Branches 0 1022 +1022
============================================
+ Hits 8241 11062 +2821
- Misses 2776 3552 +776
- Partials 0 552 +552
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 25 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
bc883bc
to
56a7317
Compare
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.
Generally I'd suggest specifying the linter check when using NOLINT
or NOLINTNEXTLINE
.
appsec/src/extension/network.c
Outdated
@@ -218,7 +218,7 @@ dd_result dd_conn_sendv(dd_conn *nonnull conn, zend_llist *nonnull iovecs) | |||
mlog_err(dd_log_info, "Error writing %zu bytes to helper", total); | |||
efree(iovs); | |||
return dd_network; | |||
} else if (written == 0) { | |||
} else if (written == 0) { // NOLINT |
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.
you can take out the else so that // NOLINT is not needed
56a7317
to
19874c1
Compare
Description
Reviewer checklist