@@ 3143-3154 (lines=12) @@ | ||
3140 | return not line or line.isspace() |
|
3141 | ||
3142 | ||
3143 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, |
|
3144 | error): |
|
3145 | is_namespace_indent_item = ( |
|
3146 | len(nesting_state.stack) > 1 and |
|
3147 | nesting_state.stack[-1].check_namespace_indentation and |
|
3148 | isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and |
|
3149 | nesting_state.previous_stack_top == nesting_state.stack[-2]) |
|
3150 | ||
3151 | if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item, |
|
3152 | clean_lines.elided, line): |
|
3153 | CheckItemIndentationInNamespace(filename, clean_lines.elided, |
|
3154 | line, error) |
|
3155 | ||
3156 | ||
3157 | def CheckForFunctionLengths(filename, clean_lines, linenum, |
@@ 3143-3154 (lines=12) @@ | ||
3140 | return not line or line.isspace() |
|
3141 | ||
3142 | ||
3143 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, |
|
3144 | error): |
|
3145 | is_namespace_indent_item = ( |
|
3146 | len(nesting_state.stack) > 1 and |
|
3147 | nesting_state.stack[-1].check_namespace_indentation and |
|
3148 | isinstance(nesting_state.previous_stack_top, _NamespaceInfo) and |
|
3149 | nesting_state.previous_stack_top == nesting_state.stack[-2]) |
|
3150 | ||
3151 | if ShouldCheckNamespaceIndentation(nesting_state, is_namespace_indent_item, |
|
3152 | clean_lines.elided, line): |
|
3153 | CheckItemIndentationInNamespace(filename, clean_lines.elided, |
|
3154 | line, error) |
|
3155 | ||
3156 | ||
3157 | def CheckForFunctionLengths(filename, clean_lines, linenum, |