mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-17 04:22:32 +03:00
Also: - rename a spellcheck file to match curl. - editorconfig: fix line width. - editorconfig: make it use UTF-8. - editroconfig: apply some rules to all files. - .gitignore: drop dupe, drop `.DS_Store` (not created by this repo), sort. - .gitignore: add for tests executables. Closes #1718
21 lines
372 B
Markdown
21 lines
372 B
Markdown
<!--
|
|
Copyright (C) The libssh2 project and its contributors.
|
|
|
|
SPDX-License-Identifier: BSD-3-Clause
|
|
-->
|
|
|
|
# libssh2 source code style guide
|
|
|
|
- 4 level indent
|
|
- spaces-only (no tabs)
|
|
- open braces on the if/for line:
|
|
|
|
```
|
|
if (banana) {
|
|
go_nuts();
|
|
}
|
|
```
|
|
|
|
- keep source lines shorter than 80 columns
|
|
- See `libssh2-style.el` for how to achieve this within Emacs
|