Skip to content

Commit d389a18

Browse files
authored
Merge pull request github#10743 from jsoref/spelling
Spelling
2 parents 9eca56c + c92ce69 commit d389a18

File tree

57 files changed

+68
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+68
-68
lines changed

cpp/ql/src/Best Practices/Unused Entities/UnusedStaticVariables.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ caused by an unhandled case.</p>
1111

1212
</overview>
1313
<recommendation>
14-
<p>Check that the unused static variable does not indicate a defect, for example, an unhandled case. If the static variable is genuinuely not needed,
14+
<p>Check that the unused static variable does not indicate a defect, for example, an unhandled case. If the static variable is genuinely not needed,
1515
then removing it will make code more readable. If the static variable is needed then you should update the code to fix the defect.</p>
1616

1717
</recommendation>

cpp/ql/src/Critical/DescriptorMayNotBeClosed.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This can occur when an operation performed on the open descriptor fails, and the
1919

2020
<example>
2121
<p>In the example below, the <code>sockfd</code> socket may remain open if an error is triggered.
22-
The code should be updated to ensure that the socket is always closed when when the function ends.
22+
The code should be updated to ensure that the socket is always closed when the function ends.
2323
</p>
2424
<sample src="DescriptorMayNotBeClosed.cpp" />
2525
</example>

cpp/ql/src/Documentation/DocumentApi.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ As an exception, because their purpose is usually obvious, it is not necessary t
1515
</overview>
1616
<recommendation>
1717
<p>
18-
Add comments to document the purpose of the function. In particular, ensure that the public API of the function is carefully documented. This reduces the chance that a future change to the function will introduce a defect by changing the API and breaking the expections of the calling functions.
18+
Add comments to document the purpose of the function. In particular, ensure that the public API of the function is carefully documented. This reduces the chance that a future change to the function will introduce a defect by changing the API and breaking the expectations of the calling functions.
1919
</p>
2020

2121
</recommendation>

cpp/ql/src/Likely Bugs/Arithmetic/ComparisonPrecedence.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<overview>
88
<p>
9-
This rule finds comparison expressions that use 2 or more comparison operators and are not completely paranthesized.
9+
This rule finds comparison expressions that use 2 or more comparison operators and are not completely parenthesized.
1010
It is best to fully parenthesize complex comparison expressions to explicitly define the order of the comparison operators.
1111
</p>
1212

cpp/ql/src/Likely Bugs/Likely Typos/IncorrectNotOperatorUsage.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<overview>
77
<p>This rule finds logical-not operator usage as an operator for in a bit-wise operation.</p>
88

9-
<p>Due to the nature of logical operation result value, only the lowest bit could possibly be set, and it is unlikely to be intent in bitwise opeartions. Violations are often indicative of a typo, using a logical-not (<code>!</code>) opeartor instead of the bit-wise not (<code>~</code>) operator. </p>
9+
<p>Due to the nature of logical operation result value, only the lowest bit could possibly be set, and it is unlikely to be intent in bitwise operations. Violations are often indicative of a typo, using a logical-not (<code>!</code>) operator instead of the bit-wise not (<code>~</code>) operator. </p>
1010
<p>This rule is restricted to analyze bit-wise and (<code>&amp;</code>) and bit-wise or (<code>|</code>) operation in order to provide better precision.</p>
11-
<p>This rule ignores instances where a double negation (<code>!!</code>) is explicitly used as the opeartor of the bitwise operation, as this is a commonly used as a mechanism to normalize an integer value to either 1 or 0.</p>
11+
<p>This rule ignores instances where a double negation (<code>!!</code>) is explicitly used as the operator of the bitwise operation, as this is a commonly used as a mechanism to normalize an integer value to either 1 or 0.</p>
1212
<p>NOTE: It is not recommended to use this rule in kernel code or older C code as it will likely find several false positive instances.</p>
1313

1414
</overview>

cpp/ql/src/Likely Bugs/Memory Management/PointerOverflow.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pointer overflow.
4949

5050
<p>
5151
While it's not the subject of this query, the expression <code>ptr + i &lt;
52-
ptr_end</code> is also an invalid range check. It's undefined behavor in
52+
ptr_end</code> is also an invalid range check. It's undefined behavior in
5353
C/C++ to create a pointer that points more than one past the end of an
5454
allocation.
5555
</p>

cpp/ql/src/Likely Bugs/Memory Management/SuspiciousCallToStrncat.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ the third argument to the entire size of the destination buffer.
1212
Executing a call of this type may cause a buffer overflow unless the buffer is known to be empty.</p>
1313

1414
<p>Similarly, calls of the form <code>strncat(dest, src, sizeof (dest) - strlen (dest))</code> allow one
15-
byte to be written ouside the <code>dest</code> buffer.</p>
15+
byte to be written outside the <code>dest</code> buffer.</p>
1616

1717
<p>Buffer overflows can lead to anything from a segmentation fault to a security vulnerability.</p>
1818

cpp/ql/src/Metrics/Classes/CLackOfCohesionCK.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>
77
This metric provides an indication of the lack of cohesion of a class,
88
using a method proposed by Chidamber and Kemerer in 1994. The idea
9-
behind measuring a class's cohesion is that most funcions in well-designed
9+
behind measuring a class's cohesion is that most functions in well-designed
1010
classes will access the same fields. Types that exhibit a lack of cohesion
1111
are often trying to take on multiple responsibilities, and should be split
1212
into several smaller classes.

cpp/ql/src/Metrics/Namespaces/StableNamespaces.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
by changes to other packages. If this metric value is high, a package is easily
1212
influenced. If the values is low, the impact of changes to other packages is likely to be minimal. Instability
1313
is estimated as the number of outgoing dependencies relative to the total
14-
number of depencies.</p>
14+
number of dependencies.</p>
1515
</overview>
1616

1717
<references>

cpp/ql/src/Metrics/Namespaces/UnstableNamespaces.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
by changes to other packages. If this metric value is high, a package is easily
1212
influenced. If the values is low, the impact of changes to other packages is likely to be minimal. Instability
1313
is estimated as the number of outgoing dependencies relative to the total
14-
number of depencies.</p>
14+
number of dependencies.</p>
1515
</overview>
1616

1717
<references>

0 commit comments

Comments
 (0)