Skip to content

Commit 5bd39d8

Browse files
committed
Add error message about cppcheck
1 parent d5ca69a commit 5bd39d8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: .github/workflows/file_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Check File Format, License and Static Code Analysis(cppcheck)
22

3-
on: [pull_request]
3+
on: [push, pull_request]
44

55
jobs:
66
scancode_job:

Diff for: bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_gpio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static rt_base_t gpio_pin_get(const char *name)
186186
}
187187
if (pin < 32 && (pin_ports[port].pin_mark & (1 << pin)))
188188
{
189-
return port * 32 + pin;
189+
return port * 32 + pin;
190190
}
191191
}
192192
}

Diff for: tools/ci/file_check.py

+1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def check(self):
232232
for file in file_list_filtered:
233233
result = subprocess.run(['cppcheck', '--enable=warning', 'performance', 'portability', '--inline-suppr', '--error-exitcode=1', '--force', file], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
234234
logging.info(result.stdout.decode())
235+
logging.info(result.stderr.decode())
235236
if result.stderr:
236237
check_result = False
237238
return check_result

0 commit comments

Comments
 (0)