Skip to content

Commit 6936637

Browse files
committed
Removed silly if consition error
1 parent a545688 commit 6936637

2 files changed

+1
-3
lines changed

rules/RULE_5_3_A_provide_doxygen_function_comment_on_function_in_header.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def RunRule(lexer, fullName, decl, contextStack, context) :
4444
if ext == ".h" :
4545
upperBlock = contextStack.SigPeek()
4646
# modification to make doxygen compulsory for even private functions
47-
if upperBlock != None: # and upperBlock.type == "CLASS_BLOCK" and upperBlock.additional == "PRIVATE":
47+
if upperBlock is None: # != None: and upperBlock.type == "CLASS_BLOCK" and upperBlock.additional == "PRIVATE":
4848
return
4949

5050
t = lexer.GetCurToken()

rules/filefilter.txt

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
~ RULE_6_4_B_initialize_first_item_of_enum
3434
~ RULE_6_5_B_do_not_use_lowercase_for_macro_constants
3535
~ RULE_6_5_B_do_not_use_macro_for_constants
36-
~ RULE_7_1_B_A_do_not_use_double_assignment
37-
~ RULE_7_1_C_do_not_use_question_keyword
3836
~ RULE_7_2_B_do_not_use_goto_statement
3937
~ RULE_8_1_A_provide_file_info_comment
4038
~ RULE_9_1_A_do_not_use_hardcorded_include_path

0 commit comments

Comments
 (0)