Use progressive security scans to find and fix risks before code is committed or pushed.
Code security brings risk detection into the development flow. Use Static Check, Lightweight Scan, and Deep Scan at different stages: fast checks while code is being written, semantic review near task completion, and deeper cross-file analysis before important changes leave the device.
Qoder displays enterprise controls in scan settings. Options enforced by the organization may not be editable by individuals; review the management indicator before changing available options.
Operation approvals and code scanning are separate controls. Changing conversation access permissions does not remove an enterprise scan policy. Local configuration remains applicable when no enterprise policy is present.
Scan depth and speed involve a tradeoff. Static Check provides fast feedback during coding, Lightweight Scan examines semantic risks in changed code, and Deep Scan follows data across files and functions. Broader scopes and more complex paths generally require more time and Credits. Match the scan to the risk of the change rather than running a broad scan for every small edit.
Static Check examines code generated in the current task, matches common high-risk patterns such as dangerous function calls, and supports automatic fixes. It is the free baseline scan for use during coding.
Lightweight Scan reads incremental code semantically to find risks such as SQL injection, remote command execution, and sensitive-information leakage. Ask Qoder to perform a lightweight security scan when the implementation is nearly complete.
For example, when user input is concatenated into a shell command, a review must consider both whether the input is controllable and whether the call executes a command. Lightweight Scan targets these semantic risks in incremental code.
Deep Scan follows data across files and functions. Use it for authentication, authorization, external input, data access, or other changes where a risk may only appear after multiple code paths are connected.
For example, a request parameter may pass through a filter in another file before reaching a SQL query. The call chain must be examined to determine whether the filter protects the actual query context. Deep Scan targets related risks that are difficult to see within one file.
After a scan:
Static Check is free. Lightweight Scan and Deep Scan consume Credits, and scanning cannot continue after available Credits are exhausted.
These are reference estimates, not fixed charges. Actual usage depends on scope, code complexity, and findings. Deep Scan follows more related code, so it generally takes longer and consumes more Credits than Lightweight Scan. Use it before handing off important changes.
Open Code security
- Open Settings.
- Under Coding, select Security.
- Review the switches for Static Check, Lightweight Scan, and Deep Scan.
Enterprise-managed scanning
Qoder displays enterprise controls in scan settings. Options enforced by the organization may not be editable by individuals; review the management indicator before changing available options.
Operation approvals and code scanning are separate controls. Changing conversation access permissions does not remove an enterprise scan policy. Local configuration remains applicable when no enterprise policy is present.
Choose a scan
Scan depth and speed involve a tradeoff. Static Check provides fast feedback during coding, Lightweight Scan examines semantic risks in changed code, and Deep Scan follows data across files and functions. Broader scopes and more complex paths generally require more time and Credits. Match the scan to the risk of the change rather than running a broad scan for every small edit.
| Scan | Scope | Recommended time |
|---|---|---|
| Static Check | Code generated in the current task and common high-risk patterns | Keep enabled while coding. |
| Lightweight Scan | Semantic risks in incremental code | Near the end of a coding task. |
| Deep Scan | Cross-file and cross-function data flow in incremental code | Before committing or pushing important changes. |
Static Check
Static Check examines code generated in the current task, matches common high-risk patterns such as dangerous function calls, and supports automatic fixes. It is the free baseline scan for use during coding.
Lightweight Scan
Lightweight Scan reads incremental code semantically to find risks such as SQL injection, remote command execution, and sensitive-information leakage. Ask Qoder to perform a lightweight security scan when the implementation is nearly complete.
For example, when user input is concatenated into a shell command, a review must consider both whether the input is controllable and whether the call executes a command. Lightweight Scan targets these semantic risks in incremental code.
Deep Scan
Deep Scan follows data across files and functions. Use it for authentication, authorization, external input, data access, or other changes where a risk may only appear after multiple code paths are connected.
For example, a request parameter may pass through a filter in another file before reaching a SQL query. The call chain must be examined to determine whether the filter protects the actual query context. Deep Scan targets related risks that are difficult to see within one file.
Review and fix findings
After a scan:
- Review the severity, file, line, and explanation.
- Confirm the input source, dangerous operation, and reachable path.
- Ask the Agent to prepare a fix, or edit the code yourself.
- Inspect the final diff in Review.
- Run relevant tests and repeat the appropriate scan.
Credits
Static Check is free. Lightweight Scan and Deep Scan consume Credits, and scanning cannot continue after available Credits are exhausted.
| Scan | Reference usage |
|---|---|
| Static Check | Free |
| Lightweight Scan | About 5 Credits per 500 lines |
| Deep Scan | About 20 Credits per 500 lines |
| Full scan | Increases with code volume and analysis scope; including dependency analysis consumes more |
A full scan covers the entire repository and can take several minutes, with potentially substantial time and Credits usage. Prefer incremental scans for everyday changes. For a scan of specific files or directories, state the scope explicitly while retaining the related code needed to assess the risk.