MCPcopy
hub / github.com/powerline/powerline / check_ext

Function check_ext

powerline/lint/checks.py:98–116  ·  view source on GitHub ↗
(ext, data, context, echoerr)

Source from the content-addressed store, hash-verified

96
97
98def check_ext(ext, data, context, echoerr):
99 havemarks(ext)
100 hadsomedirs = False
101 hadproblem = False
102 if ext not in data['lists']['exts']:
103 hadproblem = True
104 echoerr(context='Error while loading {0} extension configuration'.format(ext),
105 context_mark=ext.mark,
106 problem='extension configuration does not exist')
107 else:
108 for typ in ('themes', 'colorschemes'):
109 if ext not in data['configs'][typ] and not data['configs']['top_' + typ]:
110 hadproblem = True
111 echoerr(context='Error while loading {0} extension configuration'.format(ext),
112 context_mark=ext.mark,
113 problem='{0} configuration does not exist'.format(typ))
114 else:
115 hadsomedirs = True
116 return hadsomedirs, hadproblem
117
118
119def check_config(d, theme, data, context, echoerr):

Callers

nothing calls this directly

Calls 2

havemarksFunction · 0.90
echoerrFunction · 0.85

Tested by

no test coverage detected