calc/fix-balance
Starts at Error. It reads Calc Script files in Rules, Templates, and Scripts, and needs nothing but the file you have open.
What it checks
Section titled “What it checks”Every FIX( must have a matching ENDFIX, counting FIX blocks inside other
FIX blocks. A FIX( that is never closed is underlined at the FIX(. An
ENDFIX with nothing to close is underlined at the ENDFIX.
- Case doesn’t matter, so
fix(andendfixpair normally. A space before the bracket is fine too. - Comments and text inside quotes are ignored.
FIXPARALLELandENDFIXPARALLELaren’t counted, so a parallel block never throws the count off.
Why it matters
Section titled “Why it matters”An unbalanced FIX isn’t a matter of style. Oracle won’t run the script, and its
error tends to point at the end of the script rather than at the FIX you forgot
to close. In a long Rule with several nested FIX blocks, that is slow to find by
reading.
Example
Section titled “Example”FIX("Budget", "Working", "FY26") FIX(@RELATIVE("Total_Entity", 0)) "Net Income" = "Revenue" - "Total Expenses"; ENDFIXThe inner FIX is closed and the outer one is not, so line 1 is underlined:
This `FIX(` has no matching `ENDFIX`.An ENDFIX with no FIX( above it reads:
This `ENDFIX` has no matching `FIX(`.Corrected:
FIX("Budget", "Working", "FY26") FIX(@RELATIVE("Total_Entity", 0)) "Net Income" = "Revenue" - "Total Expenses"; ENDFIXENDFIXAdjusting it
Section titled “Adjusting it”Change its level (Error, Warning, Info) or turn it off in the Lint Rules panel, or excuse one file with a Lint Exception.
A Template or Script that opens a FIX on purpose, for the Rule around it to
close, is the usual reason for an Exception. Keep the Lint Rule on for
everything else.