Skip to content

The Lint Rules Panel

The Lint Rules panel is where you set how serious each Lint Rule is, turn Lint Rules off, and write your own. Your own Lint Rules are built from a form, not written as code, and you can test them before you save.

Click the checklist icon at the top of the EPM Workbench sidebar, or run EPM Workbench: Lint Rules from the Command Palette (Ctrl+Shift+P, or Cmd+Shift+P on a Mac).

The panel shows the Lint Rules for the Pod picked in the sidebar. In the panel, “rule” means a Lint Rule, as in New rule. To see another Pod’s, pick that Pod in the sidebar. The panel has two tabs, Lint Dashboard and View Rules. It opens on View Rules.

View Rules lists every Lint Rule for the Pod, grouped by level: errors, warnings, info, and the ones turned off.

The View Rules tab, scrolled to the warnings: the scope filter, Search, and New rule at the top, then the warnings, each with its badges, its level, and Error, Warning, Info, and Off buttons

Each row shows:

  • The Lint Rule’s name and what it checks. Most built-ins show a short title, such as AGGMISSG is set explicitly, rather than their id. The Default Lint Rules page lists both.
  • Built-in for one that comes with EPM Workbench, or Custom for one your team wrote.
  • ⚡ quick fix if its findings can be fixed in one click.
  • engine if it’s a built-in check you can’t edit. You can still change its level or turn it off.
  • Where its settings come from: Global, Domain, or Pod.
  • How many Exceptions it has, if any.
  • Its level: Error, Warning, Info, or Off.

Use the scope filter (All scopes, Global, Domain, or Pod) and Search to narrow the list.

Click Error, Warning, Info, or Off on the row. The change applies right away and is saved for this Pod only.

To change it for every Pod, or for a whole Domain, add it to the Global or Domain lint-rules.json instead, using the Lint Rule’s id. The id is on the Default Lint Rules page, for example calc/all-dimensions-accounted. This file turns that Lint Rule off:

{
"configure": {
"calc/all-dimensions-accounted": "off"
}
}

See where the settings are kept for where each file goes.

Click a Lint Rule’s row, or its exceptions count, to open it in the form on the right. Its Exceptions are listed near the bottom, each with the file it excuses, the reason, who added it and when, and where it’s saved. Remove deletes it, and the finding comes back.

The Exceptions list for a Lint Rule: FIN - CPY - Copy Actuals to Forecast, with its reason, Alex Chen, the date, Pod scope, and a Remove button

To add an Exception, use the finding in the editor. See Lint Exceptions.

Here is one worth having: no hard-coded years. FIX("FY26") works this year and quietly breaks next year. Your application already has a Substitution Variable for the year, so the Rule should use that.

Click New rule. The form opens on the right.

The New rule form filled in for No hard-coded years: Pod scope, Calc Script, Warning, Never allow, a pattern of FY and a Number, a message, and a test that flagged FY26 once

Fill it in from the top:

  1. Name. No hard-coded years. This is what the list shows.
  2. Scope. Which Pods it covers: Global for every Pod, Domain for the Pods in this Domain, or Pod for just this one. Leave it on Pod while you try it out.
  3. Application. Which kind of file it reads (this isn’t your EPM application): Rules, Templates, and Scripts, and Calc Script or Groovy. Pick at least one from each group. Here, keep all three and Calc Script.
  4. Level. Warning.
  5. Check type. What to look for. Choose Never allow…. The four types are explained below.
  6. Pattern. The text to look for, built from pieces. Type FY in the first Text piece, then click Number under Pieces to add it. The pattern now matches FY followed by any number, such as FY26.
  7. Message. What people read in the Problems panel. Write it as advice: Use a substitution variable for the year, such as &CurYear. If you leave it blank, the panel writes one from the pattern.

Before you save, check that the Lint Rule catches what you mean and nothing else.

  • Paste a piece of a script into the box, or choose a file from Pick from this Pod…, and click Test this text. Here, FIX("FY26", "Working", @RELATIVE("Total_Entity", 0)) shows ✗ Flagged 1 time. with FY26 highlighted.
  • Click Test whole Pod to run it on every file in the Pod that matches Application. It lists each match. Click one to open the file at that line. A clean result reads, for example, ✓ Nothing flagged across 14 artifacts in Planning Prod.

If Test whole Pod flags files you didn’t expect, change the pattern and test again.

Click Save rule. The new Lint Rule shows in the list with a Custom badge, and open files are checked with it right away.

Cancel closes the form without saving.

Click your Lint Rule’s row to open it in the form. Make your changes and click Save changes, or click Save as copy to keep the original and save your version as a new Lint Rule.

The panel can’t delete a Lint Rule. To remove one, delete it from the define part of its lint-rules.json. See Edit lint-rules.json by hand.

Check typeFinds a problem whenFields
Never allow…The pattern appears. Each match is a finding.The pattern
Always require…The pattern never appears in the file. The finding is at the top of the file.The pattern
Balanced pair…An opening piece has no closing piece, or the other way round, like FIX and ENDFIX.Opens with, Must be closed by
Must be followed by…The first piece appears with no second piece after it, like SET CREATEBLOCKONEQ ON; with no OFF later.First piece, Must be followed later by
PieceMatches
TextThe text you type. In it, * means anything on the same line, ? means one letter, and ~* means a real *.
WordOne word of letters and numbers.
NumberA number.
line start / line endThe start or end of a line.
one lineKeeps the match on one line.
many linesLets the match run over several lines.

Drag the pieces to change their order. Patterns ignore upper and lower case and extra spaces, and never match inside comments. A pattern that starts or ends with a letter or number only matches whole words, so FY and a number won’t match inside a member name such as "PriorFY26Total".

Click a built-in row to see how it works. Most built-ins open in the form, and you can change the pattern or message and save. Your version replaces the built-in for the Pods its scope covers. The scope starts on Global, so change it if you only want it in one Pod.

Built-ins marked engine can’t be edited. The form says so. You can still change their level or turn them off from the list.

The Lint Dashboard tab sums up the whole Pod: how many files were checked, how many findings there are, and how many can be fixed in one click. Below that is a row for each Lint Rule that found something. Click 1 artifact (or however many) to list each finding, and click a finding to open the file at that line. Off turns that Lint Rule off for the Pod. Rescan checks the Pod again. An artifact is a Rule, Template, or Script.

Most people never need this section. The panel saves to lint-rules.json files, and you can edit them yourself. See where the settings are kept for the three scopes. VS Code suggests the allowed names as you type and explains each one when you hover over it.

A file can have three parts, all optional:

  • configure: a Lint Rule’s name and its level, "error", "warning", "info", or "off".
  • define: your own Lint Rules.
  • exceptions: the Lint Exceptions.

Here is a Pod file with one Lint Rule turned off, the Lint Rule from above, and one Exception:

{
"$schema": "https://www.epmworkbench.com/schemas/validation-rules.json",
"configure": {
"calc/all-dimensions-accounted": "off"
},
"define": [
{
"id": "custom/no-hard-coded-years",
"kind": "forbid-pattern",
"title": "No hard-coded years",
"message": "Use a substitution variable for the year, such as &CurYear.",
"severity": "warning",
"syntax": "simple",
"languages": ["esscalc"],
"pattern": "FY{number}"
}
],
"exceptions": [
{
"artifact": "FIN - CPY - Copy Actuals to Forecast",
"rule": "calc/require-aggmissg-on",
"reason": "Copy only, nothing in this Rule aggregates",
"date": "2026-11-11",
"author": "Alex Chen"
}
]
}

The names in the file differ a little from the panel:

  • kind is the check type: forbid-pattern is Never allow…, require-pattern is Always require…, pair-balance is Balanced pair…, and require-order is Must be followed by….
  • severity is the Level, and title is the Name.
  • languages is esscalc for Calc Script and groovy for Groovy.
  • The $schema line still ends in validation-rules.json. Leave it as it is. It lets VS Code help you as you type.

A few things only show up in the file:

  • "syntax": "simple" means the pattern uses the pieces above. Without it, a pattern is a regular expression, a more technical way to write patterns.
  • docs is a web address. Clicking the Lint Rule’s name in the Problems panel opens it.
  • examples holds snippets the Lint Rule must catch (bad) and must leave alone (good). EPM Workbench checks them each time it reads the file. If one fails, the file counts as broken (see the warning below).
  • Two more check types can only be written here. max-count limits how many times a pattern appears, or how deeply it nests, such as FIX blocks more than two deep. naming checks the file’s name instead of its text.