diff --git a/pipe/pipe.py b/pipe/pipe.py index 05f0513..5109f87 100644 --- a/pipe/pipe.py +++ b/pipe/pipe.py @@ -137,6 +137,7 @@ def filter_paths(path): "-d", "memory_limit=512M", "--report=junit", + "--report-file=test-results/phpcs.xml" f"--standard={self.standards}" ] + changed_files @@ -144,12 +145,6 @@ def filter_paths(path): stderr=subprocess.PIPE, universal_newlines=True) self.standards_failure = False if phpcs.returncode == 0 else True - phpcs_output = phpcs.stdout.strip() - - if phpcs_output: - with open("test-results/phpcs.xml", 'a') as output_file: - output_file.write(phpcs_output) - def composer_install(self): composer_install_command = ["composer", "install", "--dev"] composer_install = subprocess.run(composer_install_command)