I saw that coding style checks of cppcheck is not enabled : https://github.com/ament/ament_lint/blob/rolling/ament_cppcheck/ament_cppcheck/main.py#L145
For example, unused variables can be checked with this option.
Could you consider to add it ? I can make a PR for this.