Skip to content

Commit 3454f22

Browse files
codecheck: Fix more typos in strings and comments [autosync]
1 parent f8dc2ed commit 3454f22

24 files changed

Lines changed: 40 additions & 40 deletions

File tree

CodeCheck/All Checks/Language Specific/Ada/Variables/ADA_V000/check.upl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ sub description {
2828
sub detailed_description { return <<"END_DESC"
2929
<p><b>Rationale</b></p>
3030
Local variables that are defined but not used can lead to memory management issues as well as making
31-
code more difficult to follow. They can also be indicitive of an error where a programmer meant to use
32-
one variable and accidently used another. This check ignores references inside inactive code (ie #if 0...#endif).</p>
31+
code more difficult to follow. They can also be indicative of an error where a programmer meant to use
32+
one variable and accidentally used another. This check ignores references inside inactive code (ie #if 0...#endif).</p>
3333
END_DESC
3434
}
3535

CodeCheck/All Checks/Language Specific/C and C++/Declarations and Definitions/CPP_D060/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ follow the rule of zero when the class only has a user-declared default construc
7676

7777
namespace v1
7878
{
79-
// Class is copyable and moveable via the compiler generated funtions.
79+
// Class is copyable and moveable via the compiler generated functions.
8080
// Compliant - rule of zero.
8181
class A
8282
{

CodeCheck/All Checks/Language Specific/C and C++/Declarations and Definitions/CPP_D060/ruleOfFiveOrRuleOfZero.cpp

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

44
namespace v1
55
{
6-
// Class is copyable and moveable via the compiler generated funtions.
6+
// Class is copyable and moveable via the compiler generated functions.
77
// UndCC_Valid - rule of zero.
88
class A
99
{

CodeCheck/All Checks/Language Specific/C and C++/Variables/CPP_V006/check.upl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ sub check {
150150

151151
return if $check->is_abort();
152152

153-
# If this is a paramter and is used as a constructor initlization list, than these are not the droids we are looking for
153+
# If this is a parameter and is used as a constructor initialization list, than these are not the droids we are looking for
154154
if ( $object->ent->kind->check( 'C Parameter' ) ) {
155155
$lexer = $file->lexer unless $lexer;
156156
next OBJ if checkParam( $object, $lexer );

CodeCheck/All Checks/Language Specific/C and C++/Variables/CPP_V026/check.upy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def detailed_description():
2929
<p><b>Rationale</b></p>
3030
<p>Local variables that are defined but not used can lead to memory management
3131
issues as well as making code more difficult to follow. They can also be
32-
indicitive of an error where a programmer meant to use one variable and
33-
accidently used another. This check ignores references inside inactive code
32+
indicative of an error where a programmer meant to use one variable and
33+
accidentally used another. This check ignores references inside inactive code
3434
(ie #if 0...#endif).
3535
Note: This codecheck cannot account for external library objects</p>
3636
"""

CodeCheck/All Checks/Language Specific/Java/JAVA_01/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def check(check, file):
8282
if lexeme.text() == "]" and lexeme.token() == "Punctuation":
8383
indexC-=1
8484

85-
# is in a funtion
85+
# is in a function
8686
if funC == 0 and lexeme.token() == "Identifier" and lexeme.ref() and "Callby" in lexeme.ref().kind().longname():
8787
#go to paren
8888
lexeme = lexeme.next(True, True)

CodeCheck/Published Standards/AUTOSAR/M10-2-1/check.upy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ def ids():
88
def name(id):
99
return {
1010
'M10-2-1': """\
11-
Published Standards/AUTOSAR/Similiar Entity Names within Multiple Inheritance \
11+
Published Standards/AUTOSAR/Similar Entity Names within Multiple Inheritance \
1212
""",
1313
'CPP_I022': """\
14-
All Checks/Language Specific/C and C++/Identifiers/Similiar Entity Names within \
14+
All Checks/Language Specific/C and C++/Identifiers/Similar Entity Names within \
1515
Multiple Inheritance"""
1616

1717
}[id]

CodeCheck/Published Standards/AUTOSAR/M12-1-1/check.upy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def check(check, file):
315315
# While we are still inside the constructor or destructor
316316
while lexeme and lexeme.line_begin() < end:
317317

318-
# If we see a call to typeid, throw an error if the class is the arguement and this class has a virtual method
318+
# If we see a call to typeid, throw an error if the class is the argument and this class has a virtual method
319319
if lexeme.text() == 'typeid':
320320

321321
if hasVirtual:
@@ -338,7 +338,7 @@ def check(check, file):
338338

339339
lexeme = lexeme.next(True, True)
340340

341-
# If we see a call to dynamic_cast, throw and error if the class is the arguement
341+
# If we see a call to dynamic_cast, throw and error if the class is the argument
342342
elif lexeme.text() == 'dynamic_cast':
343343

344344
nextNext = lexeme.next(ignore_whitespace=True, ignore_comments=True).next(ignore_whitespace=True, ignore_comments=True)

CodeCheck/Published Standards/AUTOSAR/M16-0-1/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ERR1 = '#include directive should only be preceeded by other preprocessor directives or comments'
1+
ERR1 = '#include directive should only be preceded by other preprocessor directives or comments'
22

33

44
# The ID for the check

CodeCheck/Published Standards/AUTOSAR/M16-1-1/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def check(check, file):
191191
if not lexer:
192192
return
193193

194-
# $lexeme is intialized as the first element returned from the lexer
194+
# $lexeme is initialized as the first element returned from the lexer
195195
lexeme = lexer.first()
196196

197197
# While the lexer has lexemes ...

0 commit comments

Comments
 (0)