The Aider Autofix plugin leverages LLM tools to fix code violations in your Java projects projects running within automated CI/CD pipelines, based on a generated analysis report. Jtest identifies violations, uses LLM integration to propose fixes for those violations, and verifies each proposed fix to ensure that all issues are fully resolved and no new problems are introduced. Successful fixes result in automatically created commits in the working branch of your project source control repository, enabling manual review and approval before merging.
...
- Create a virtual environment:
Code Block python -m venv venv
- Enter the virtual environment:
Code Block source venv/bin/activate
- Install required dependencies:
Code Block python -m pip install --upgrade pip pip install -r requirements.txt
Autofix Autofix Configuration Options
The JtestAutoFix.py script can be configured using environment variables or command-line arguments. Command-line arguments take precedence over environment variables when both are specified.
...
- Set your API key:
Code Block SET OPENAI_API_KEY=your_secret_open_ai_key
- Execute Autofix with the recommended settings:
Code Block python JtestAutoFix.py --report "<PROJECT_PATH>/build/jtest/report.xml" --max-attempts 3 --data "<PROJECT_PATH>/build/jtest/jtest.data.json" --tool-home "C:\Program Files\Parasoft\Jtest\2026.1"
Linux/Unix
- Set your API key:
Code Block export OPENAI_API_KEY=your_secret_open_ai_key
- Execute Autofix with the recommended settings:
Code Block python3 JtestAutoFix.py --report "<PROJECT_PATH>/build/jtest/report.xml" --max-attempts 3 --data "<PROJECT_PATH>/build/jtest/jtest.data.json" --tool-home "/opt/parasoft/jtest/2026.1"
...