--exclude negates the target path
未關閉
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 還沒有評估資料。