Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1

orbs:
codacy: codacy/base@12.2.0
codacy_plugins_test: codacy/plugins-test@2.1.0
codacy_plugins_test: codacy/plugins-test@2.1.2

jobs:
unit_tests:
Expand Down
6 changes: 3 additions & 3 deletions docs/multiple-tests/codacy-rules/results.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
<error source="codacy.bash.security.hard-coded-password" line="1" message="Hardcoded passwords are a security risk." severity="error" />
</file>
<file name="codacy-c-avoid-std-system.cpp">
<error source="codacy.c.security.avoid-std-system" line="26" message="Detected a call to the standard `system()` function. This is dangerous as it can lead to Command Injection if untrusted input is passed." severity="warning" />
<error source="codacy.c.security.avoid-std-system" line="29" message="Detected a call to the standard `system()` function. This is dangerous as it can lead to Command Injection if untrusted input is passed." severity="warning" />
<error source="codacy.c.security.avoid-std-system" line="32" message="Detected a call to the standard `system()` function. This is dangerous as it can lead to Command Injection if untrusted input is passed." severity="warning" />
<error source="codacy.c.security.avoid-std-system" line="26" message="Detected a call to the standard `system()` function." severity="warning" />
<error source="codacy.c.security.avoid-std-system" line="29" message="Detected a call to the standard `system()` function." severity="warning" />
<error source="codacy.c.security.avoid-std-system" line="32" message="Detected a call to the standard `system()` function." severity="warning" />
Comment on lines +60 to +62

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The updated error messages are now truncated to the first sentence, which removes critical security context regarding the risk of Command Injection. This makes the warning significantly less informative for the user.\n\nFurthermore, this truncation appears inconsistent with other entries in the same file (e.g., line 32), likely due to how the sentence-splitting logic handles punctuation and spacing. It is recommended to preserve the full message in the report output to ensure users understand the impact of the detected issue.

</file>
</checkstyle>