Skip to content

Lint Rules

Lint Rules are checks that EPM Workbench runs on your own computer. They read a Rule, Template, or Script as you type and flag likely mistakes: a FIX with no ENDFIX, a member that doesn’t exist, a missing SET AGGMISSG ON;. Nothing is sent to the Pod. They check the files in the Rules, Templates, and Scripts folders of a Pod Folder or a Library Folder.

They are different from Validate, which asks Oracle to check a Rule on the Pod. Lint Rules are instant and need no connection to the Pod. Validate is Oracle’s own verdict.

EPM Workbench comes with 12 built-in Lint Rules. You can change how serious each one is, turn any of them off, write your own, and excuse a single Rule from a single check.

A finding is underlined in the editor and listed in the Problems panel at the bottom of VS Code. Each entry shows EPM Lint and the Lint Rule’s name in brackets, for example EPM Lint(calc/fix-trailing-comma).

A Rule with a red underline under a trailing comma, and the Problems panel listing two EPM Lint findings

Click the name in brackets to open that Lint Rule’s page on this site, with what it checks and why. A Lint Rule you wrote yourself opens the link you gave it, or this page if you gave none.

While you are typing on a line, new underlines on that line wait until you move off it, because a half-typed line is expected to look wrong. To turn that off, open Settings (Ctrl+,, or Cmd+, on a Mac) and turn off Epm Workbench › Diagnostics: Hold Active Line.

Each Lint Rule runs at one of three levels, or is turned off:

LevelUnderlineMeaning
ErrorRedAlmost certainly wrong. In the Rules tab, the file’s name turns red.
WarningYellowProbably wrong, or a habit worth keeping.
InfoBlueWorth a look.
OffNoneThe Lint Rule doesn’t run.

No level stops you from Pushing, Deploying, or Executing. The check that can stop those is Oracle’s Validate.

The level is your team’s choice. If you treat a missing SET UPDATECALC OFF; as a must-fix, raise it to Error. If a Lint Rule doesn’t suit how your application is built, turn it off.

Some findings come with a fix. Click the underlined text and press Ctrl+. (Cmd+. on a Mac), or click the lightbulb at the start of the line. The fix is listed first.

The Quick Fix menu on a trailing comma, offering Remove trailing comma and Add Lint Exception

These Lint Rules have a fix:

Lint RuleFix
calc/fix-trailing-commaRemove trailing comma
calc/require-updatecalc-offInsert SET UPDATECALC OFF;
calc/require-aggmissg-onInsert SET AGGMISSG ON;
calc/require-emptymembersets-onInsert SET EMPTYMEMBERSETS ON;
groovy/rtp-declaredDeclare … in the RTPS header

The file you have open is checked as you type. To check every Rule, Template, and Script in the Pod at once, click Lint All (the double tick) at the top of the Rules tab. You can also run EPM Workbench: Lint All from the Command Palette (Ctrl+Shift+P, or Cmd+Shift+P on a Mac).

A notification shows the progress, and you can cancel it. When it’s done, it tells you what it found in the Pod’s artifacts (its Rules, Templates, and Scripts), and Show Problems opens the list.

The Lint All result: Linted 14 artifacts, 1 error in 1 artifact, with a Show Problems button

Lint All runs the Lint Rules only. The Groovy checks from the Groovy language service, such as a misspelled method name, show only in files you open.

A Lint Exception excuses one whole Rule, Template, or Script from one Lint Rule, with a reason you write down. Use it when a Lint Rule is right in general but wrong for one file, such as a Rule that is meant to run across every member of a dimension, which calc/all-dimensions-accounted would flag.

To add one:

  1. Click the finding and press Ctrl+. (Cmd+. on a Mac).
  2. Choose Add Lint Exception for ….
  3. Type the reason and press Enter.

The Add Lint Exception box for FIN - CPY - Copy Actuals to Forecast, asking why calc/require-aggmissg-on is not appropriate, with a reason typed in

The reason is required. It’s what tells a colleague, months later, that the Exception was on purpose. The finding disappears, and the Exception is saved in the Pod Folder with the reason and the date. Your name is saved too, if VS Code can find it.

You can also right-click a file in the Rules tab, or in the editor, and choose Add Lint Exception. It asks which Lint Rule to excuse the file from.

To see or remove an Exception, open the Lint Rule in the Lint Rules panel.

Your Lint Rule settings are kept in files named lint-rules.json, at three scopes:

ScopeWhere the file isApplies to
GlobalIn the epmwb-global folder in your EPM Workbench RootEvery Pod
DomainIn the Domain’s folderEvery Pod in that Domain
PodIn the Pod FolderThat Pod only

None of these files has to exist. The Lint Rules panel creates the one it needs when you first save a change.

The scopes combine like this:

  • Level, and on or off: a Pod’s setting beats its Domain’s, and a Domain’s beats Global. A Pod can turn back on a Lint Rule its Domain turned off.
  • Your own Lint Rules: they add up. A Lint Rule saved at Global is used in every Pod. If two scopes have a Lint Rule with the same name, the Pod’s beats the Domain’s, and the Domain’s beats Global’s.
  • Exceptions: they add up, and a Pod or Domain can’t cancel one. An Exception saved at Global can only be removed from the Global file.

To share your Global Lint Rules with your team, see Sharing Lint Rules.

Default Lint Rules lists the 12 built-in Lint Rules with the level each one starts at. Each one has its own page with what it checks, why it matters, and an example.