Skip to content

Add some linter fixes#102

Merged
koolzz merged 4 commits intosdnfv:developfrom
koolzz:minor_style_fixes
Apr 21, 2019
Merged

Add some linter fixes#102
koolzz merged 4 commits intosdnfv:developfrom
koolzz:minor_style_fixes

Conversation

@koolzz
Copy link
Copy Markdown
Member

@koolzz koolzz commented Apr 16, 2019

Just some minor linter fixes, might merge after big PRs so we have a clean realease

Merging notes:

  • Dependencies: None

TODO before merging :

  • Waaait a bit maybe

Test Plan:

CI needs to say Linter passed

Review:

Test in production

@onvm
Copy link
Copy Markdown

onvm commented Apr 16, 2019

In response to PR creation

CI Message

Another CI run in progress, please try again in 15 minutes

@koolzz
Copy link
Copy Markdown
Member Author

koolzz commented Apr 16, 2019

@onvm a bit better?

@onvm
Copy link
Copy Markdown

onvm commented Apr 16, 2019

@onvm a bit better?

CI Message

Your results will arrive shortly

@onvm
Copy link
Copy Markdown

onvm commented Apr 16, 2019

@onvm a bit better?

CI Message

Run successful see results:
[Results from nimbnode30]
Median TX pps for Speed Tester: 35184636

Linter Failed

examples/flow_table/openflow.h:50: Using deprecated casting style. Use static_cast(...) instead [readability/casting] [4]
examples/flow_table/openflow.h:569: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:634: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:771: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:804: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:865: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:926: Extra space before ( in function call [whitespace/parens] [4]
Total errors found: 7
onvm/onvm_mgr/onvm_init.c:107: { should almost always be at the end of the previous line [whitespace/braces] [4]
onvm/onvm_mgr/onvm_init.c:114: { should almost always be at the end of the previous line [whitespace/braces] [4]
onvm/onvm_mgr/onvm_init.c:116: { should almost always be at the end of the previous line [whitespace/braces] [4]
Total errors found: 3
onvm/onvm_mgr/onvm_pkt.c:68: Are you taking an address of a cast? This is dangerous: could be a temp var. Take the address before doing the cast, rather than after [runtime/casting] [4]
Total errors found: 1
onvm/onvm_nflib/onvm_common.h:366: #endif line should be "#endif // ONVM_COMMON_H" [build/header_guard] [5]
Total errors found: 1
onvm/onvm_nflib/onvm_config_common.h:208: #endif line should be "#endif // ONVM_CONFIG_COMMON_H" [build/header_guard] [5]
Total errors found: 1
onvm/onvm_nflib/onvm_nflib.c:523: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Total errors found: 1
onvm/onvm_nflib/onvm_pkt_common.c:98: Are you taking an address of a cast? This is dangerous: could be a temp var. Take the address before doing the cast, rather than after [runtime/casting] [4]
Total errors found: 1
onvm/onvm_nflib/onvm_sc_mgr.h:79: #endif line should be "#endif // ONVM_SC_MGR_H" [build/header_guard] [5]
Total errors found: 1

@kevindweb
Copy link
Copy Markdown
Contributor

Do you want help making some of these fixes?

@koolzz
Copy link
Copy Markdown
Member Author

koolzz commented Apr 17, 2019

Do you want help making some of these fixes?

Sure, if you want to contribute just submit a pr to my branch and I'll quickly merge it so it appears here

@dennisafa
Copy link
Copy Markdown
Member

@onvm hi

@onvm
Copy link
Copy Markdown

onvm commented Apr 20, 2019

@onvm hi

CI Message

Your results will arrive shortly

@onvm
Copy link
Copy Markdown

onvm commented Apr 20, 2019

@onvm hi

CI Message

Run successful see results:
[Results from nimbnode30]
Median TX pps for Speed Tester: 35142347

Linter Failed

examples/flow_table/openflow.h:50: Using deprecated casting style. Use static_cast(...) instead [readability/casting] [4]
examples/flow_table/openflow.h:569: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:634: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:771: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:804: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:865: Extra space before ( in function call [whitespace/parens] [4]
examples/flow_table/openflow.h:926: Extra space before ( in function call [whitespace/parens] [4]
Total errors found: 7
onvm/onvm_mgr/onvm_pkt.c:68: Are you taking an address of a cast? This is dangerous: could be a temp var. Take the address before doing the cast, rather than after [runtime/casting] [4]
Total errors found: 1
onvm/onvm_nflib/onvm_pkt_common.c:98: Are you taking an address of a cast? This is dangerous: could be a temp var. Take the address before doing the cast, rather than after [runtime/casting] [4]
Total errors found: 1

@koolzz koolzz merged commit 01f3d5a into sdnfv:develop Apr 21, 2019
@koolzz koolzz added this to the ONVM 19.05 Release milestone May 26, 2019
@koolzz koolzz deleted the minor_style_fixes branch June 7, 2019 23:17
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.

4 participants