Code Governance
Configure Code Governance
Here, we will explain how CodeAnt AI helps you set up code governance to add company-specific best practices, security measures, and past learnings into the developer workflow.
How to configure code governance?
1
Control Center
- Go to Control Center
- Navigate to “Settings” -> “Custom Rules”
- Click on “Add Rules”
2
Write a custom rule
- Follow our Code Search and Replacement Guide to create custom rules
- Our code search and replacement engine efficiently identifies and modifies code patterns across multiple files within a project. This involves:
- Identifying the pattern
- Creating match and rewrite templates
- Applying these templates to transform the code
3
Test the custom rule
- Test the rule you just configured to ensure it gives the correct result