mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 07:55:51 +00:00
deploy: d7725837f5
This commit is contained in:
@@ -66,7 +66,7 @@ $(function() {
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><p>Coding standards used here gradually evolve and propagate through code reviews. Some aspects are enforced more strictly than others.</p>
|
||||
<h1><a class="anchor" id="autotoc_md41"></a>
|
||||
<h1><a class="anchor" id="autotoc_md43"></a>
|
||||
Rules</h1>
|
||||
<p>These rules only apply to our own code. We can't enforce any sort of style on the external repositories and libraries we include. The best guideline is to maintain the standards that are used in those libraries.</p>
|
||||
<ul>
|
||||
@@ -75,7 +75,7 @@ Rules</h1>
|
||||
<li>Modern C++ principles. No naked <code>new</code> or <code>delete</code>.</li>
|
||||
<li>Line lengths limited to 80 characters. Exceptions limited to data and tables.</li>
|
||||
</ul>
|
||||
<h1><a class="anchor" id="autotoc_md42"></a>
|
||||
<h1><a class="anchor" id="autotoc_md44"></a>
|
||||
Guidelines</h1>
|
||||
<p>If you want to do something contrary to these guidelines, understand why you're doing it. Think, use common sense, and consider that this your changes will probably need to be maintained long after you've moved on to other projects.</p>
|
||||
<ul>
|
||||
@@ -91,7 +91,7 @@ Guidelines</h1>
|
||||
</li>
|
||||
<li>Don't over-inline by defining large functions within the class declaration, not even for template classes.</li>
|
||||
</ul>
|
||||
<h1><a class="anchor" id="autotoc_md43"></a>
|
||||
<h1><a class="anchor" id="autotoc_md45"></a>
|
||||
Formatting</h1>
|
||||
<p>The goal of source code formatting should always be to make things as easy to read as possible. White space is used to guide the eye so that details are not overlooked. Blank lines are used to separate code into "paragraphs."</p>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user