---
title: Inline Scripts should not contain many lines of code
description: "Impact Area Manageability Severity Medium Affected Element Inline Script Rule number **SN-INLINE-SCRIPT-MAX-LINES-CODE** ## Impact Inline scripts should be used to set and modify input values during the configuration of an action or flow. They are typically used to modify input…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/inline-scripts-should-not-contain-many-lines-of-code/"
updated: "2025-03-21"
category: Rules
---

# Inline Scripts should not contain many lines of code

Impact Area

Manageability

           Severity

Medium

           Affected Element

Inline Script

Rule number

**SN-INLINE-SCRIPT-MAX-LINES-CODE**

## Impact

Inline scripts should be used to set and modify input values during the configuration of an action or flow. They are typically used to modify input values that require small format conversions, data transformations, or math operations. The presence of many lines of code in an inline script indicates that it is being used to implement complex logic which would be more appropriate for a Business Rule or Script include. The rule is configured to trigger for a default value of 10 lines of code, but this can be modified to suit your development standards.

## Remediation

For more complex tasks, it is advisable to use Business Rules or Script Includes.

### Time to fix

40 min
