mirror of
https://github.com/Theodor-Springmann-Stiftung/KGPZ.git
synced 2025-10-30 01:25:29 +00:00
Added custom linter files
This commit is contained in:
16
Scripts/process_linter_output.py
Normal file
16
Scripts/process_linter_output.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
|
||||
def main():
|
||||
if not os.path.exists('linter_results.txt'):
|
||||
print("No linter results found.")
|
||||
return
|
||||
|
||||
with open('linter_results.txt', 'r') as f:
|
||||
for line in f:
|
||||
parts = line.strip().split(':', 2)
|
||||
if len(parts) == 3:
|
||||
filename, line_number, error_message = parts
|
||||
print(f"::error file={filename},line={line_number}::{error_message}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user