Code analysis - Code analysis evaluates automation code without running it, checking for violations of your organization's coding rules. Use code analysis to enforce coding best practices and fix errors in your Task Bots and API Tasks before check-in.

Automation 360

Code analysis evaluates automation code without running it, checking for violations of your organization's coding rules. Use code analysis to enforce coding best practices and fix errors in your Task Bots and API Tasks before check-in.

Overview

Code analysis helps you enforce coding best practices and keep your automations maintainable, reliable, efficient, and secure. By setting policies and rules, you can ensure developers build to a consistent standard before their code enters the public workspace.

Important: You must have Enterprise Platform license to apply code analysis rules to API Tasks and to use the AI Governance rule. See Enterprise Platform.

code analysis flowchart

Benefits

Code analysis provides the following benefits:
  • Enforce consistent coding conventions and best practices across all automations.
  • Enable Citizen Developer to build automations that meet organizational standards without requiring deep development expertise.
  • Improve code readability and make automations easier to maintain.
  • Reduce automation errors and improve reliability.
  • Control the structure of automation code across your organization.
  • Improve code security and compliance by enforcing secure coding practices.

Code analysis for user roles

Lead RPA Developer (Administrator)
Configure code analysis policies that define coding best practices for your organization. Monitor and report code quality based on adherence to those policies. Code analysis helps with the following:
  • Enable Citizen Developer users to build automations even without strong software development skills.
  • Reduce code complexity and improve readability for easier maintenance.
  • Improve automation reliability by reducing errors.
  • Enforce secure coding practices to improve security and compliance.
  • Reduce production time and automation costs.

create code analysis policy

Citizen Developer or RPA Developer
Code analysis provides guidance to develop automations that meet organizational requirements for the following:
  • Error reduction
  • Code readability and maintenance
  • Code security

fix code analysis violations

Permissions

To set up a code analysis policy, you need the following permissions.
  • View policies: Allows you to view the code analysis policy that defines how developers can build automations.
  • Manage policies: Allows you to view, edit, and assign policies that defines how developers can build automations. This permission allows the assignment of policies to folders for which you have access.

For code analysis enforcement permissions, see Code analysis enforcement permissions. These permissions apply when code analysis is turned on in Administration > Settings > Policies.

Components

  • Policy editor: Contains multiple named policies for all Control Room users.
  • Rules: As the foundation of code analysis, rules help to evaluate bot code. Rules can be simple or complex depending on the evaluation that is performed. Rules include coding practices that can be verified. They apply to packages and actions in the automation code. A rule consists of a unique RULE_CODE and a description to indicate the nature of evaluation to be performed on the code.

For more information on code analysis, see Leveraging code analysis and debug tool to improve and optimize your automation development.