Ensure exactly one subcategory is used

This commit is contained in:
Joe Farebrother
2025-06-19 11:43:25 +01:00
parent c8c92a7139
commit 63d7eac127
2 changed files with 6 additions and 5 deletions

View File

@@ -2,10 +2,10 @@
* @name File is not always closed
* @description Opening a file without ensuring that it is always closed may lead to data loss or resource leaks.
* @kind problem
* @tags efficiency
* @tags quality
* reliability
* correctness
* resources
* quality
* performance
* external/cwe/cwe-772
* @problem.severity warning
* @sub-severity high

View File

@@ -2,8 +2,9 @@
* @name Loop variable capture
* @description Capturing a loop variable is not the same as capturing its value, and can lead to unexpected behavior or bugs.
* @kind path-problem
* @tags correctness
* quality
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity low
* @precision high