@staticmethod<EOL><INDENT>def _addConfig(instance, config, parent_section):<DEDENT>
try:<EOL><INDENT>section_name = "<STR_LIT>".format(p = parent_section, n=instance.NAME.lower())<EOL>config.add_section(section_name)<EOL>for k in list(instance.CONFIG.keys()):<EOL><INDENT>config.set(section_name, k, instance.CONFIG[k])<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>print("<STR_LIT>" % e)<EOL><DEDENT>
Writes a section for a plugin.

Args:
        instance (object): Class instance for plugin
        config (object): Object (ConfigParser) which the current config
        parent_section (str): Parent section for plugin. Usually 'checkers' or 'reports'