Repository navigation
Conversation
|
Lovely @vszakats, me like! Maybe you could provide the script in a separate PR so that others can start playing with it too? Do you think its possible to make the different styles as configurable options so that we can share checksrc code between the projects or is it easier to just make a separate one here? |
|
Good idea, I'll add the script in a next PR. The only difference compared to the original curl version, is that I edited the indentation level (to 4 from 2) and the maximum line length. That's two lines, right at the top of the script. (BTW there are ~350 lines wider than the original limit, so that's likely fixable gradually.) It will be my first time with Perl, but otherwise it should probably be easy to make these two parameters configurable. |
|
Customisable Command-line used to check libssh2 sources: $ ./checksrc.pl -i4 -m500 *.c *.h |
Use checksrc.pl from the curl project, with (for now) suppressed long line warnings and indentation set to 4 spaces. Fixes are whitespace for the most part. Warning count went down from 2704 to 12. Also fix codespell typos, two non-ANSI C89 comments and a stray tab in include/libssh2.h.
|
Addressed the remaining 22 warnings. |
Use checksrc.pl from the curl project, with (for now) suppressed long line warnings and indentation set to 4 spaces. Fixes are whitespace for the most part. Warning count went down from 2704 to 12. Also fix codespell typos, two non-ANSI C89 comments and a stray tab in include/libssh2.h. Ref: #235
Use checksrc.pl from the curl project, with (for now) suppressed long line warnings and indentation set to 4 spaces. Fixes are whitespace for the most part. Warning count went down from 2704 to 12. Also fix codespell typos, two non-ANSI C89 comments and a stray tab in include/libssh2.h. Ref: libssh2#235
Use checksrc.pl from the curl project, with (for now) suppressed long line warnings and indentation set to 4 spaces. Fixes are whitespace for the most part. Warning count went down from 2704 to 12. Also fix codespell typos, two non-ANSI C89 comments and a stray tab in include/libssh2.h. Ref: libssh2#235
To fix `ftell()` returning the size in bytes in `_libssh2_pem_parse()`. Ref: #1880 (comment) Follow-up to ef6eaad #235 Closes #1883
Use
checksrc.plfrom the curl project, with (for now) suppressed long line warnings and indentation set to 4 spaces. Fixes are whitespace for the most part.Warning count went down from 2704 to 0 (2 suppressed.)
Also fix codespell typos, two non-ANSI C89 comments and a stray tab in
include/libssh2.h.