fix handling mixed relative/absolute path in ament_cppcheck (#188)
fix handling mixed relative/absolute path in ament_cppcheck (#188)

* fix handling mixed relative/absolute path in ament_cppcheck

Signed-off-by: Dirk Thomas <19795c8185177e940eedd30ceb2b716a54a3d5dc@users.noreply.github.com>

* use 'in' operator

Signed-off-by: Dirk Thomas <19795c8185177e940eedd30ceb2b716a54a3d5dc@users.noreply.github.com>

* use os.path.samefile so it doesn't matter which of the two args is relative / absolute / symlinked

Signed-off-by: Dirk Thomas <19795c8185177e940eedd30ceb2b716a54a3d5dc@users.noreply.github.com>

* skip printing duplicate errors

Signed-off-by: Dirk Thomas <19795c8185177e940eedd30ceb2b716a54a3d5dc@users.noreply.github.com>

ament/ament_lint,ament/ament_lint,ament/ament_lint