MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / run

Method run

scripts/format_code.py:146–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144 return retval
145
146 def run(self):
147 retval = 0
148 self.shell = Shell()
149 self.shell.save_cwd()
150 this_dir = os.path.dirname(__file__)
151 self.shell.cd(self.folder)
152 self.shell.prepend_env("PATH","%s/../bin" % this_dir)
153
154 to_check = ""
155 if self.strategy != "all":
156 to_check, _ = CopyrightCheckRun.get_files(self.folder, self.strategy, self.file_list)
157 #FIXME: Exclude shaders!
158
159 logger.info("Running ./scripts/format_doxygen.py")
160 logger.debug(format_doxygen.main(*to_check))
161 retval = self.error_on_diff("Doxygen comments badly formatted (check above diff output for more details) try to run ./scripts/format_doxygen.py on your patch and resubmit")
162 if retval != 0:
163 raise Exception("format-code failed with error code %d" % retval)
164
165class CopyrightCheckRun:
166 @staticmethod

Callers 1

run_fix_code_formattingFunction · 0.95

Calls 7

error_on_diffMethod · 0.95
ShellClass · 0.90
save_cwdMethod · 0.80
cdMethod · 0.80
prepend_envMethod · 0.80
get_filesMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected