SuiteLens is a VS Code extension that scans your SuiteScript for governance issues, overloaded User Events, and the quiet failures that only show up when real users hit real data at real volume.
Every rule exists because it has caused a real problem. These are the things that work fine in sandbox and fail when your data grows.
Each record.load() costs 10 governance units. Inside a loop processing 500 records, the script runs out of governance and stops mid-execution.
Running search.create() per-record instead of batching. Works with 50 records in sandbox. Fails with 12,000 in production.
HTTP requests to external systems inside a record loop. One slow response and the entire run times out.
Heavy logic in beforeSubmit because "it runs on save." Until every user waits 8 seconds to save a record.
.run().each() with no result cap. Works until the table grows past 10,000 rows and results start getting truncated silently.
Calling record.save() when only one field changed. Triggers every User Event, workflow, and integration on that record again.
No guard against re-execution. Script re-runs create duplicate records or fire webhooks twice.
Works in production, breaks in sandbox, breaks again after the next account refresh. IDs change between environments.
The script ran fine last time. That doesn't mean it's reliable. It means you haven't hit the conditions that expose the problem yet.
Scripts stop mid-execution. Half the records process, the other half don't. Nobody gets notified. Finance finds out two weeks later.
Missing error handling means failures don't throw. Records save with incomplete data. Reports look fine until someone audits the numbers.
A loop that worked at 200 records fails at 2,000. The external system times out. Retry logic doesn't exist. Orders stop syncing.
Overloaded User Events add seconds to every save. Users start working around the system. Data quality follows.
No accounts. No configuration. No cloud dependency. Runs locally in VS Code against your SuiteScript files.
One file. No npm install, no build step.
Extensions → ... → Install from VSIX.
Review an entire file or just a selection. Results appear in a side panel.
Findings ranked by severity. Each one explains what's wrong and why.
Free, open source, built by consultants who work in production NetSuite environments.
SuiteLens checks individual scripts. SuiteRX scans your entire NetSuite environment — scripts, security, roles, integrations, and configuration — with 47+ automated checks.
Adaptive Solutions Group builds and fixes NetSuite environments. SuiteScript development, integration work, and the kind of cleanup that needs someone who's done it before.