
Getting Started Guide
How to Use Sourcery
A practical guide to get you up and running with Sourcery. Written by Delv Editorial, Delv Team.
Getting started with Sourcery
In this guide, you'll learn how to set up Sourcery to enhance your code review process and automate refactoring, making your code cleaner and more efficient.Step 1: Sign up and set up
- Go to sourcery.ai.
- Click on the Sign Up button in the top right corner.
- Enter your email address and create a password, or sign up using your GitHub or GitLab account for easier integration.
- Once signed up, you'll be prompted to connect your GitHub or GitLab account. Follow the instructions to authorise access.
Step 2: Your first code review
- After connecting your account, navigate to the Dashboard.
- Select a repository from your connected GitHub or GitLab projects.
- Click on the Scan button to analyse your code. Sourcery will review your code and provide suggestions for improvements.
- Review the suggestions presented. You can click on each suggestion to see more details.
- To apply a suggestion, simply click the Apply button next to it. This will automatically refactor your code based on the AI's recommendations.
Step 3: Get better results
- Explore the Settings menu by clicking on your profile icon in the top right corner.
- Under Preferences, you can select your preferred programming languages and adjust the level of suggestions (e.g., strict or relaxed).
- Regularly check the Insights tab to understand common issues in your codebase and track improvements over time.
- Use the Pull Requests feature to get automated reviews on your code changes before merging.