mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Provide line length style guides
This commit is contained in:
parent
978bd33c43
commit
6509176357
1 changed files with 14 additions and 0 deletions
|
@ -239,6 +239,20 @@ instance:
|
|||
arguments are longer then 80 characters. Otherwise, the formatting is
|
||||
optional and both are acceptable.
|
||||
|
||||
|
||||
|
||||
Line Length
|
||||
-----------
|
||||
|
||||
For function definitions and function calls, Salt adheres to the PEP-8
|
||||
specification of at most 80 characters per line.
|
||||
|
||||
Non function definitions or function calls, please adopt a soft limit of 120
|
||||
characters per line. If breaking the line reduces the code readability, don't
|
||||
break it. Still, try to avoid passing that 120 characters limit and remember,
|
||||
**vertical is better... unless it isn't**
|
||||
|
||||
|
||||
Indenting
|
||||
=========
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue