Debugging & Logging - Code Analyzer
Compatibility checking for ColdFusion version migrations
Overview
The Code Analyzer, under Debugging & Logging > Code Analyzer in the ColdFusion Administrator, is a migration and compatibility checker. It runs the ColdFusion compiler over your CFML pages to report syntax errors, and it flags tags, functions, and attributes that may behave differently or no longer work in the current ColdFusion version compared with earlier releases. It does not execute the pages it checks.
It is not a security scanner or a general-purpose linter. It does not look for SQL injection, XSS, or performance problems, and it does not compute code quality metrics. Use the third-party tools listed below for that kind of analysis.
What It Reports
For each compatibility issue it finds, the analyzer reports the severity and, where one exists, a suggested remedy. Findings fall into these categories:
- No longer supported: Features whose use results in errors
- Deprecated: Still available, but not recommended and may be removed in a future release
- Modified behavior: Features that might behave differently than in previous versions
- New: Features newly added to ColdFusion
It also reports compiler errors found while validating CFML syntax.
Running the Code Analyzer
- Directory: Enter or browse to the directory that contains the ColdFusion pages to analyze
- Advanced Options (optional): Whether to analyze subdirectories, which file types to analyze (separate multiple types with semicolons), whether to filter by severity (All, Error, or Info), whether to validate CFML, and which product features to analyze
Error reports code that will not execute properly. Info reports code you should consider editing but that still executes, such as deprecated tags.
Source: Adobe: Using the Code Analyzer
A typical migration workflow is to install the new ColdFusion version, copy the application code to it, run the Code Analyzer against the code, and then work through the reported incompatibilities before testing.
Limitations
- No runtime analysis: Because it does not execute pages, it cannot detect invalid attribute combinations when attribute values are supplied dynamically at runtime
- Not exhaustive: It will not catch every behavior change, so test the migrated application thoroughly
- Not a security tool: Pair it with a dedicated security scanner and manual code review
Third-Party Code Analyzers
CFLint
- Type: Open-source CFML linter
- Features: Configurable rules, command-line interface
- Integration: Works with build tools, IDEs
- Customization: Extensible rule system
- Community: Active development and rule contributions
Fixinator
- Type: Commercial security scanner for ColdFusion
- Focus: Security vulnerability detection
- Features: Detailed remediation guidance
- Integration: CI/CD pipeline support
- Updates: Regular rule updates for new vulnerabilities
SonarQube
- Type: Multi-language code quality platform
- CFML Support: Via community plugins
- Features: Historical tracking, dashboards, technical debt
- Integration: Enterprise CI/CD integration
- Scalability: Suitable for large organizations
Related Resources
- Debugging & Logging - License Scanner - Feature usage analysis
- Debugging & Logging - Debug Output Settings - Runtime debugging
- Security - Sandbox Security - Runtime security controls
- ColdFusion Administrator Reference - Main administrator guide