mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 18:08:20 +00:00
commit
2e4a0c6b8a
@ -34,7 +34,7 @@ Contributions are welcome and encouraged, provided your code is of sufficient qu
|
||||
4. Uses [Allman-style](https://en.wikipedia.org/wiki/Indent_style#Allman_style) code blocks & indentation
|
||||
5. Uses 2-spaces as indentation or a tab if it's required (for example: Makefiles)
|
||||
6. Uses lower-case function and variable names
|
||||
7. Avoids the use of `!` and uses positive conditionals wherever possible (e.g., `if (foo == 0)` instead of `if (!foo)`, and `if (foo)` instead of `if (foo !=0)`)
|
||||
7. Avoids the use of `!` and uses positive conditionals wherever possible (e.g., `if (foo == 0)` instead of `if (!foo)`, and `if (foo)` instead of `if (foo != 0)`)
|
||||
8. Use code like array[index + 0] if you also need to do array[index + 1], to keep it aligned
|
||||
|
||||
You can use GNU Indent to help assist you with the style requirements:
|
||||
|
Loading…
Reference in New Issue
Block a user