@classmethod<EOL><INDENT>def _check_section(cls, docstring, definition, context):<DEDENT>
capitalized_section = context.section_name.title()<EOL>indentation = cls._get_docstring_indent(definition, docstring)<EOL>if (context.section_name not in cls.SECTION_NAMES and<EOL>capitalized_section in cls.SECTION_NAMES):<EOL><INDENT>yield violations.D405(capitalized_section, context.section_name)<EOL><DEDENT>if leading_space(context.line) > indentation:<EOL><INDENT>yield violations.D214(capitalized_section)<EOL><DEDENT>suffix = context.line.strip().lstrip(context.section_name)<EOL>if suffix:<EOL><INDENT>yield violations.D406(capitalized_section, context.line.strip())<EOL><DEDENT>if (not context.following_lines or<EOL>not is_blank(context.following_lines[-<NUM_LIT:1>])):<EOL><INDENT>if context.is_last_section:<EOL><INDENT>yield violations.D413(capitalized_section)<EOL><DEDENT>else:<EOL><INDENT>yield violations.D410(capitalized_section)<EOL><DEDENT><DEDENT>if not is_blank(context.previous_line):<EOL><INDENT>yield violations.D411(capitalized_section)<EOL><DEDENT>for err in cls._check_section_underline(capitalized_section,<EOL>context,<EOL>indentation):<EOL><INDENT>yield err<EOL><DEDENT>
D4{05,06,10,11,13}, D214: Section name checks.

        Check for valid section names. Checks that:
            * The section name is properly capitalized (D405).
            * The section is not over-indented (D214).
            * The section name has no superfluous suffix to it (D406).
            * There's a blank line after the section (D410, D413).
            * There's a blank line before the section (D411).

        Also yields all the errors from `_check_section_underline`.