(self)
| 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 | |
| 165 | class CopyrightCheckRun: |
| 166 | @staticmethod |
no test coverage detected