Skip to content

Commit b927a49

Browse files
Commit
1 parent 57e8a0b commit b927a49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sphinx_lint.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77

88
def store_and_count_failures(clones_dir: str, repo: str, language_code: str) -> int:
99
failed_checks = list(chain.from_iterable(yield_failures(clones_dir, repo)))
10-
filepath = Path(f'warnings-lint-{language_code}.txt')
11-
filepath.write_text('\n'.join([str(c) for c in failed_checks]))
10+
log = '\n'.join([str(c) for c in failed_checks]).replace(
11+
str(Path(clones_dir, 'rebased_translations', repo)) + '/', ''
12+
)
13+
filepath = Path(f'build/warnings-lint-{language_code}.txt')
14+
filepath.write_text(log)
1215
return len(failed_checks)
1316

1417

0 commit comments

Comments
 (0)