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

Issue #660 - Add additional pre-commit hooks #662

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jiridanek
Copy link
Contributor

No description provided.

@jiridanek jiridanek self-assigned this Aug 5, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2022

Codecov Report

Merging #662 (bae5cf7) into main (e6c90dd) will increase coverage by 0.00%.
The diff coverage is 42.85%.

@@           Coverage Diff           @@
##             main     #662   +/-   ##
=======================================
  Coverage   25.90%   25.91%           
=======================================
  Files         128      128           
  Lines       31195    31195           
  Branches     4973     4973           
=======================================
+ Hits         8081     8083    +2     
  Misses      22059    22059           
+ Partials     1055     1053    -2     
Flag Coverage Δ
unittests 25.91% <42.85%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
include/qpid/dispatch/atomic.h 100.00% <ø> (ø)
include/qpid/dispatch/buffer.h 94.11% <ø> (ø)
include/qpid/dispatch/container.h 0.00% <ø> (ø)
include/qpid/dispatch/ctools.h 40.00% <ø> (ø)
include/qpid/dispatch/delivery_state.h 0.00% <ø> (ø)
include/qpid/dispatch/parse.h 100.00% <ø> (ø)
src/adaptors/adaptor_utils.c 0.00% <ø> (ø)
src/adaptors/http1/http1_adaptor.c 7.94% <ø> (ø)
src/adaptors/http_common.c 0.00% <ø> (ø)
src/adaptors/reference_adaptor.c 0.00% <ø> (ø)
... and 58 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

@jiridanek jiridanek force-pushed the jd_2022_08_05_clang_format_precommit branch from d76d34b to 0a5f99e Compare August 5, 2022 07:51
@jiridanek jiridanek marked this pull request as draft August 5, 2022 10:24
@jiridanek jiridanek force-pushed the jd_2022_08_05_clang_format_precommit branch from 0a5f99e to ff460a7 Compare August 5, 2022 15:45
@jiridanek jiridanek changed the title Fixes # 660 Add pre-commit hooks Issue #660 - Add additional pre-commit hooks Aug 5, 2022
@jiridanek jiridanek marked this pull request as ready for review August 5, 2022 15:48
@jiridanek jiridanek force-pushed the jd_2022_08_05_clang_format_precommit branch from ff460a7 to bae5cf7 Compare August 5, 2022 19:20
Comment on lines 499 to 487
ap->event_sub = qdrc_event_subscribe_CT(
core,
QDRC_EVENT_CONN_EDGE_ESTABLISHED | QDRC_EVENT_CONN_EDGE_LOST | QDRC_EVENT_ADDR_BECAME_LOCAL_DEST
| QDRC_EVENT_ADDR_NO_LONGER_LOCAL_DEST | QDRC_EVENT_ADDR_ONE_LOCAL_DEST | QDRC_EVENT_ADDR_TWO_DEST
| QDRC_EVENT_ADDR_BECAME_SOURCE | QDRC_EVENT_ADDR_NO_LONGER_SOURCE | QDRC_EVENT_ADDR_TWO_SOURCE
| QDRC_EVENT_ADDR_ONE_SOURCE | QDRC_EVENT_ADDR_WATCH_ON | QDRC_EVENT_ADDR_WATCH_OFF
| QDRC_EVENT_LINK_IN_DETACHED | QDRC_EVENT_LINK_OUT_DETACHED,
on_conn_event,
on_link_event,
on_addr_event,
0,
ap);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not nice formatting

@@ -137,7 +137,14 @@
"description": "The standard AMQP management node interface.",
"fullName": true,
"extends": "operationalEntity",
"operations": ["QUERY", "GET-TYPES", "GET-ANNOTATIONS", "GET-OPERATIONS", "GET-ATTRIBUTES", "GET-MGMT-NODES"],
"operations": [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops, did not know that clang-format will want to format jsons; means that json has to be added to the filter in git pre-commit, otherwise it's going to create nasty surprise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -605,94 +605,93 @@ namespace Color {
} // namespace Color

namespace assertType {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably exclude file from pre-commit

@jiridanek jiridanek linked an issue Aug 9, 2022 that may be closed by this pull request
@jiridanek jiridanek marked this pull request as draft September 1, 2022 15:58
@jiridanek jiridanek force-pushed the jd_2022_08_05_clang_format_precommit branch from bae5cf7 to b8fa10a Compare October 27, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add git precommit with clang-format
2 participants