diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2024-03-14 11:57:36 +0100 |
---|---|---|
committer | Stefan Klug <stefan.klug@ideasonboard.com> | 2024-03-15 14:14:59 +0100 |
commit | 62c31a352cc96a079cd65eda800f25a0869781fe (patch) | |
tree | baff1142e7156f4361db9f20b26fc78116109ac6 /src/py/examples/simple-continuous-capture.py | |
parent | 284919ef2e509d8109b84eedcc6d5c2f78cddbef (diff) |
checkstyle: Work around bug in difflib
If a file misses the newline at the end it gets detected by checkstyle,
but the resulting patch is incorrect and does not apply. It took me a
while to understand that it wasn't me using checkstyle incorrectly, but
that the patch was faulty. The bug itself is in difflib and dates back to
2008.
To reproduce:
- Remove trailing newline from a file
- git add the file
- run ./utils/checkstyle.py -s | patch -p0
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/py/examples/simple-continuous-capture.py')
0 files changed, 0 insertions, 0 deletions