We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Instance Scan Linter Check Rhino Error

shalexander
Tera Expert

I'm trying to create a linter check to scan for client scripts on a fresh Australia PDI but am always getting the following Failure.

Rhino error: missing ; before statement

 

I've stripped the linter check script to a barebones version to see if I still get the failure, and I do.

(function (engine) {
	var TABLES_TO_CHECK = ["sys_script_client"];
	if (TABLES_TO_CHECK.indexOf(String(engine.current.getTableName())) == -1) {
		return;
	}

	gs.info(new GlideDateTime().getNumericValue() + " Current script being checked: " + engine.current.getValue("name") + " " + engine.current.sys_id);

})(engine);

 

Is there a way to print a stack trace to see what segment of code is causing this error?

ShinImai_0-1780472655078.png

 

10 REPLIES 10

As your script looks just fine it seems to be an issue with our code rather. I would file a case in support.