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

style(agent): drupal code formatting #1029

Merged
merged 5 commits into from
Feb 25, 2025
Merged

Conversation

bduranleau-nr
Copy link
Contributor

No description provided.

@newrelic-php-agent-bot
Copy link

newrelic-php-agent-bot commented Feb 24, 2025

Test Suite Status Result
Multiverse 8/8 passing
SOAK 78/79 passing

@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.58%. Comparing base (11b67fa) to head (fca6ace).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1029   +/-   ##
=======================================
  Coverage   77.58%   77.58%           
=======================================
  Files         198      198           
  Lines       27715    27715           
=======================================
  Hits        21503    21503           
  Misses       6212     6212           
Flag Coverage Δ
agent-for-php-7.2 77.72% <66.66%> (ø)
agent-for-php-7.3 77.74% <66.66%> (ø)
agent-for-php-7.4 77.45% <66.66%> (ø)
agent-for-php-8.0 76.84% <100.00%> (ø)
agent-for-php-8.1 77.34% <100.00%> (ø)
agent-for-php-8.2 76.95% <80.00%> (ø)
agent-for-php-8.3 76.95% <80.00%> (ø)
agent-for-php-8.4 76.97% <80.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@lavarou lavarou changed the title chore(agent): drupal code formatting style(agent): drupal code formatting Feb 24, 2025
Comment on lines 153 to 158
* Purpose: Before an invoke_all style call, adds the hook to that hook states
* stacks
*
* Params : 1. A zval holding a copy of the hook invoked, to be managed by the hook
* states stacks and freed by nr_drupal_invoke_all_hook_stacks_pop() after the
* invoke_all call completes
* Params : 1. A zval holding a copy of the hook invoked, to be managed by the
* hook states stacks and freed by nr_drupal_invoke_all_hook_stacks_pop() after
* the invoke_all call completes
Copy link
Member

@lavarou lavarou Feb 25, 2025

Choose a reason for hiding this comment

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

This doesn't seem right. The same file shows Purpose and Params docs strings, that span multiple lines, indented.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've manually fixed this here: fca6ace
For future reference, the reason for this is not due to a mis-configuration of clang-format. This is due to the line length limit (80 chars) and clang-format not being clever enough to match the indentation style in a docstring like this. These kinds of cases will require manual intervention.

@bduranleau-nr bduranleau-nr merged commit 8ddc8af into dev Feb 25, 2025
65 checks passed
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.

4 participants