How to configure code governance?

1

Control Center

  • Go to Control Center
  • Navigate to “Settings” -> “Custom Rules”
  • Click on “Add Rules” Configure 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 Configure Rules