RuleScribe for Kraken Rules
RuleScribe — IntelliJ language support for the Kraken Rules DSL (.rules files / KEL, eisgroup/kraken-rules).
Not scanned yet
Editor extension
845 installs
Install in
RuleScribe — IntelliJ language support for the Kraken Rules DSL
(
.rules files / KEL,
eisgroup/kraken-rules).
- Syntax highlighting
- Code completion (keywords, payloads, @Dimension, rule names, functions)
- Built-in KEL functions: completion, parameter info and quick documentation for the engine's 55 native functions
- Inspections (rule without name, unresolved rule reference, unresolved identifier, incompatible types)
- Intention: add missing 'On' clause
- Navigation between EntryPoint items, Rule declarations and 'Function' declarations, and from any identifier in an expression to its declaration
- Clickable 'N usages' inlays above declarations, opening the standard usages popup
- Rename refactoring for rules and functions
This is an independent community plugin. It is not affiliated with, endorsed by, or sponsored by EIS Group. "Kraken" refers to the open-source Kraken Rules engine (Apache-2.0).
Written by Joobi from the project's own listing. See the source page
1 Dec 2026
Version 1.1.0 released. Not scanned yet.
1.1.0
- Requires IntelliJ IDEA 2024.3 or later. The plugin is now built
with Kotlin 2.4, which cannot target the Kotlin runtime that 2024.1
and 2024.2 bundle, and it no longer calls the deprecated
MoveHandlerDelegate.canMovesignature. IntelliJ 2024.1 and 2024.2 keep getting 1.0.0 from the Marketplace. - Field completion follows the whole chain.
On Policy.vehicle.offers the fields of the type ofvehicle, where it used to offer nothing, andWhen Policy.no longer lists every field twice. Insidecoll[...], completion offers the filtered element's fields. - Duplicate rules are compared by name and dimension values, as
the engine does.
@ServerSideOnlyno longer hides a duplicate, and two rules with the same@Dimensionare reported, including a dimension set on an enclosingRulesblock. - A function call resolves in the engine's order everywhere: a
visible
Functionshadows a native function with the same name and arity. Colouring, type inference and argument checks now agree with quick documentation. - Smaller fixes. Fields inherited through
Ischains deeper than four levels resolve. A comment inside a context, field or child declaration is no longer read as a name. The type mismatch check no longer comparesnwithcodein"ID" + n = code. - Usage counts, the gutter icon and the unused rule inspection read an index instead of walking every file. Searching the usages of 50 rules in a 500-file project went from 240 ms to 3 ms.
- No new feature. 1.0.0 says the plugin is done being proven, not that it grew: the code is the same as 0.17.0.
- What it rests on. Binary compatibility is checked weekly against the latest patch of every IntelliJ major since 2024.1, all reporting the plugin compatible. Every release is signed and ships with SLSA build provenance and a CycloneDX SBOM, verifiable against the published artifact. The plugin makes no network call and executes nothing, which a test enforces by reading the shipped jar rather than by asserting it. CodeQL, Qodana, poutine, Dependabot and an OWASP scan run on every change, with no open alert.
- The roadmap no longer has an item waiting on a decision. Extract rule and Extract function are dropped rather than deferred, with the reasoning recorded.
- An
EntryPointcan be moved to another file with F6, like a rule. It is counted in both directions, because an entry point references as well as being referenced: the entry points that name it, and its own items, which a move can leave behind. Sending one where its rules are not visible empties it without a line changing inside it, so both counts are shown before anything is written and you can cancel. - An
Import Ruledeclared where the entry point is going counts too: an item it rescues is not reported as broken.
- A build-side release. The plugin is now produced by the IntelliJ Platform Gradle Plugin 2.x on Gradle 9, which changes how the artifact is assembled, signed and verified. Nothing changes in the editor, and compatibility is unchanged: still verified against the latest patch of every IntelliJ major since 2024.1, each reporting the plugin compatible.
- The build no longer claims it can download a JDK 17 for you when your machine has none. Every released foojay resolver names a vendor constant Gradle 9 removed, so that path throws at the one moment it is useful. Install a JDK 17 and the build finds it.
- Function declarations are now validated the way the engine validates them. Two bounds for the same generic, a bound that is itself generic, a parameter or return type mixing a union with a generic, two parameters of the same name, and a KEL function carrying the name of a native are each reported with the code that appears in the build log. A declaration without a body is a function signature for the engine, validated by a different class, so it gets that class's codes instead.
- Unknown types and mismatched body return types stay unchecked. Those fire when a name is missing from an inventory, and the plugin cannot see a project's full type model, so it would report valid code as broken.
- A rule can be moved to another file with F6, and the plugin says what that would break before writing anything. Kraken references name a rule, not a file, so a move changes no reference text at all — only whether those references still find their target. Sending a rule where a referring file cannot see it breaks every one of its entry point entries without a line changing over there, so the count is shown first and nothing happens until you accept. 'Import Rule' is weighed separately: one naming the destination namespace keeps working, one naming the old namespace does not.
- Union types parse. 'Function GetDay(Date | DateTime d)' is valid Kraken and was reported as a syntax error, in return position and in a bare signature too — which is how a built-in gets redeclared. Parenthesised types and the '<T>' generic reference are covered as well, so the whole of the engine's type production is now accepted.
- Nothing changes in the editor: this release is about what guards it. Compatibility is now checked against the latest build of every IntelliJ major since the supported one, rather than only the oldest and the newest, so an API removed in a version in between no longer slips past. The build attestation moves off an action GitHub deprecated, keeping the published verification command working unchanged.
- Brackets are coloured by nesting depth, which helps most in the deeply nested expressions KEL encourages. Red is kept out of that palette and marks a bracket with no partner, or one whose pairing is ambiguous because a pair inside it is unbalanced; it stays visible when the depth colours are switched off, since it reports a problem rather than decorating. The switch is the platform's own Rainbow checkbox, under Color Scheme.
- Syntax errors are readable again. A broken expression used to produce a message over four hundred characters long, every token prefixed with the parser's class name and each of the thirteen binary operators spelled out. The same case now reads: '(', ')', ',', <bracket access>, <dot access> or <operator> expected, got ']'.
- Two inspections offer a fix instead of only reporting: an undeclared '@Dimension' name can declare itself, and a duplicate rule can take the annotation that tells it apart. Neither invents a value, since a dimension's type and the value separating two rules cannot be derived from the file.
- References are coloured by what they resolve to, a context name apart from a field or variable. A name that resolves to nothing keeps the ordinary identifier colour: painting it as a field would claim it denotes one.
- Spellchecking covers the text a person reads — comments, a 'Description', and the message of an 'Error' clause. Rule names, entry point names and error codes are left alone, since flagging business vocabulary on every line would bury the real typos.
- Diagnostics now carry the engine's own code and wording, so '[kvr027] Missing context definition with name ...' reads the same in the IDE as in the build log and the code can be searched across both. Severity comes from the engine's declaration as well, which moves six inspections from a warning to an error.
- Two checks have no engine equivalent and say so by carrying no code: a rule that no entry point references, and an undeclared '@Dimension' name, which the engine ignores rather than validating.
- Comparison checking follows the engine more closely. Ordering ('<', '>') and equality ('=', '!=') answer to different rules there: two strings can be compared for equality but not ordered. Treating them alike let 'a < b' on two strings pass.
- The lexer accepts only the operators the grammar defines. 'a &|&~ b' used to parse as valid Kraken; a typo now points at the offending character instead of failing further along the expression. This also made '>=' and '<=' whole tokens rather than two, which is why no wide comparison had ever been type-checked.
- The 'unknown function' inspection is removed. 0.10.1 through 0.10.3 tried three different ways to recognize a project's own Java functions so it would not misreport them, and the last of those still found nothing on a real project it was tested against. Verifying this needs a project with a real custom function library to test against, which is not available, so the inspection is gone rather than left half-working.
- Completion, parameter info, quick documentation, navigation and highlighting for the engine's 55 built-in functions and for DSL-declared 'Function's are unaffected.
- Function discovery is faster on large projects. It now uses the platform's word index to find the handful of files that mention the annotation instead of reading every '.java' file, and the compiled-class scan is now scoped to library dependencies instead of the whole classpath. No behavior change.
- Custom functions declared in a Maven dependency, not just the project's own sources, are now found too. A '@Native' function library shipped as a compiled JAR was still being reported as hundreds of unknown-function warnings after 0.10.1, which only read '.java' files. Requires the bundled Java plugin; unaffected otherwise.
- Custom functions a project implements in Java are now found automatically: the plugin reads the project sources for '@ExpressionFunction' and stops reporting those calls as unknown. A project shipping a large '@Native' function library was seeing hundreds of warnings on perfectly valid rules (issue #43).
- Because the Java signature is not analysed, a discovered function is accepted at any number of arguments. What the scan cannot see — functions inside a JAR, or implemented only in TypeScript — can still be listed by name in the inspection options.
- KEL types are now inferred, and two incompatibilities reported. Comparing a 'Date' with a 'DateTime' — which the engine refuses, and which nothing revealed before running it — is flagged, as is passing an argument of the wrong type to a built-in function.
- Inference follows the engine: 'Integer' and 'Decimal' are both 'Number', 'Money' widens to 'Number' one way only, projecting a field over a collection yields a collection, and type names are case-insensitive.
- Anything the plugin cannot type is left alone. Operators, iteration variables, union parameters, generics and collections all make the check abstain rather than guess.
- Identifiers inside rule bodies now resolve. Ctrl+Click on a field in an 'Assert', 'When' or 'Default To' expression opens its declaration, and so do context names, 'set' variables, 'for' and quantifier variables, and function parameters — following the same scope order as the engine, where expression variables shadow the fields of the 'On' target, which shadow context names.
- Access chains resolve too: in 'AddressInfo.Country.isoCode' each segment navigates, as long as the previous one denotes a known context. Inside a filter, 'Vehicle[model = "P01"]' resolves against the fields of the filtered item, nested filters included.
- New inspection: unresolved identifier. It is deliberately conservative — with no type inference yet, it stays silent on path segments, on rules whose 'On' target does not resolve, and on the external-context root, so that it never underlines valid code.
- Declarations now also show who last changed them and when, next to the usage count — the same author inlay other languages get. Clicking it opens the annotation gutter, where every line carries its own commit. Rules, EntryPoints, functions and contexts are all covered; the inlay appears only when the file is under version control.
- Declarations now carry a clickable 'N usages' inlay, like any other language on the platform. Rules, EntryPoints and functions all get one, and the count follows Kraken namespace visibility: a reference from a namespace that cannot see the declaration is not counted.
- Ctrl+Click on a declaration name now opens the platform's own usages popup — grouped by file, with a preview of each line — instead of the flat list of labels it used to build. Ctrl+Click on a reference is unchanged, and still offers every '@Dimension' variant of a rule.
- Functions are now understood inside rule bodies. The engine's 55 built-in functions ship as a catalogue generated from kraken-expression-language, so completion, parameter info (Ctrl+P) and quick documentation (Ctrl+Q) show their real signatures, descriptions and examples.
- 'Function' declarations resolve like any other declaration: Ctrl+Click from a call, Find Usages and rename, all following namespace visibility. Doc comments ('@since', '@example', '@parameter') are rendered in quick documentation, and a signature declared without a body is labelled as implemented in Java.
- New inspection: unknown function. It matches the engine's own criterion — a function is identified by name AND parameter count — so a call with the wrong number of arguments reports which arities exist instead of claiming the name is unknown. Projects shipping their own '@Native' Java function library can list those names in the inspection options.
- Function calls are highlighted, with distinct colors for built-in and project-declared functions; both are customizable in the color settings page.
- Ctrl+Click on a rule or EntryPoint reference now offers every valid implementation instead of a single one. A rule declared in several '@Dimension' variants previously navigated to whichever variant the index happened to return first; each variant is now listed, labelled with its annotation so same-file variants are distinguishable.
- New icon: a parchment held by an off-screen kraken, with a quill.
The same drawing is now used for the plugin logo and for the
.rulesfile type, and it reads on both light and dark IDE themes.
- Clearer navigation popup: when a rule or EntryPoint has several usages, Ctrl+Click now lists each one by the EntryPoint that references it, with its file name (and namespace when declared), instead of repeating identical entries.
- Performance: the namespace-visibility model (used by nearly every resolution, completion and inspection) is now cached and only recomputed on edits, instead of re-reading every file on each lookup — noticeably faster on large multi-file projects.
- 'Import Rule "X" From Ns' is now fully resolved: an imported rule behaves as if it were declared in the importing namespace — navigation, completion, Find Usages and the unused-rule inspection all work through imports, independently of Include (mirrors the Kraken engine's rule-import semantics).
- 4 new inspections mirroring the engine's rule-import validation: unknown source namespace, imported rule missing from the source namespace, import colliding with a locally declared rule, and ambiguous (duplicated) import.
- Relicensed under the PolyForm Shield License 1.0.0: free to use, modify and redistribute, no competing use, and (unlike the previous FSL license) the non-compete restriction does not expire. Applies to this and future releases; earlier releases keep their original
1 Dec 2026Listed on Joobi from JetBrains Marketplace.
Follow this listing's changes (Atom feed)