Skip to content

Commit

Permalink
checkpatch: skip checking onnxruntime Camelcase use
Browse files Browse the repository at this point in the history
Skipped checking onnxruntime Camelcase use.

Signed-off-by: Lifang Zhang <[email protected]>
  • Loading branch information
lifang-zhang authored and JereLeppanen committed Jan 15, 2024
1 parent 3bdbf58 commit 8a4fd43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5569,6 +5569,9 @@ sub process {
$var !~ /\bSCN[diux]16/ &&
$var !~ /\bSCN[diux]32/ &&
$var !~ /\bSCN[diux]64/ &&
#Ignore onnxruntime CamelCase usage
$var !~ /\bOrt*/ &&
$var !~ /\bort_api->*/ &&
#Ignore SI style variants like nS, mV and dB
#(ie: max_uV, regulator_min_uA_show, RANGE_mA_VALUE)
$var !~ /^(?:[a-z0-9_]*|[A-Z0-9_]*)?_?[a-z][A-Z](?:_[a-z0-9_]+|_[A-Z0-9_]+)?$/ &&
Expand Down

0 comments on commit 8a4fd43

Please sign in to comment.