forked from premiere/premiere-libtorrent
remove whitespace at end of line (#1245)
This commit is contained in:
parent
31d34fec41
commit
6148984426
|
@ -123,7 +123,7 @@ script:
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
- 'if [ "$lint" == "1" ]; then
|
- 'if [ "$lint" == "1" ]; then
|
||||||
python ~/cpplint.py --extensions=cpp --headers=hpp --filter=-,+runtime/explicit --linelength=90 test/*.{cpp,hpp} src/*.cpp include/libtorrent/*.hpp include/libtorrent/kademlia/*.hpp src/kademlia/*.cpp include/libtorrent/aux_/*.hpp include/libtorrent/extensions/*.hpp simulation/*.{cpp,hpp} tools/*.{cpp,hpp} examples/*.{cpp,hpp};
|
python ~/cpplint.py --extensions=cpp --headers=hpp --filter=-,+runtime/explicit,+whitespace/end_of_line --linelength=90 test/*.{cpp,hpp} src/*.cpp include/libtorrent/*.hpp include/libtorrent/kademlia/*.hpp src/kademlia/*.cpp include/libtorrent/aux_/*.hpp include/libtorrent/extensions/*.hpp simulation/*.{cpp,hpp} tools/*.{cpp,hpp} examples/*.{cpp,hpp};
|
||||||
fi'
|
fi'
|
||||||
|
|
||||||
# if variant is not set, we do not want to build anything
|
# if variant is not set, we do not want to build anything
|
||||||
|
|
|
@ -80,8 +80,9 @@ for l in f:
|
||||||
mode = ''
|
mode = ''
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if l.startswith('// '):
|
if l.startswith('//'):
|
||||||
description += l[3:]
|
if l[2] == ' ': description += l[3:]
|
||||||
|
else: description += l[2:]
|
||||||
continue
|
continue
|
||||||
|
|
||||||
l = l.strip()
|
l = l.strip()
|
||||||
|
|
|
@ -81,7 +81,7 @@ names = []
|
||||||
types = []
|
types = []
|
||||||
|
|
||||||
for l in f:
|
for l in f:
|
||||||
description_line = l.lstrip().startswith('// ')
|
description_line = l.lstrip().startswith('//')
|
||||||
|
|
||||||
l = l.strip()
|
l = l.strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue