ament / ament/ament_lint

--exclude negates the target path

未關閉
#499 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
more-information-needed
主要語言
Python
星號
50
分支
129
平均合併
3 天 10 小時
30 天內合併 PR
3

描述

```shell
# Correct: lints all files in src
ament_cpplint src

# Bug: lints all files in current directory (possibly still excluding some things, I didn't verify that)
ament_cpplint --exclude "some/path.cpp" src

# Correct: workaround that does lint all files in src, excluding the path
ament_cpplint --exclude "some/path.cpp" -- src
```
I assume the way argparse is used to define 'exclude' is defaulting the 'paths' to '.'
I wouldn't be surprised if similar problems exist for other linters.

Only tested this on Iron.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。