Issue rules

Nordcraft's issue rules help you maintain high-quality standards in your projects by highlighting common problems.

Tip

To learn more about where issue rules are shown in the editor, check out the issues panel.

Tip

To see how issue rules are implemented, visit the Nordcraft GitHub repository.

Components

RuleSeverityAuto fixesDescription
Components with no referencesWarningDelete the componentComponents that are not referenced anywhere in your project are usually safe to remove unless they're used as exported web components.
Unknown component referenceErrorNoFinds references to components that do not exist. This helps you identify and correct broken references in your project.

Formulas

RuleSeverityAuto fixesDescription
Project formulas with no referencesWarningDelete the formulaProject formulas that are not referenced anywhere in your project can lead to confusion and bloated projects. Nordcraft flags these unused formulas to help you keep your project clean and efficient.
Unknown project formula referenceErrorNoFinds references to project formulas that do not exist. This helps you identify and correct broken references in your project.
Legacy formulaWarningReplace formulaFinds known legacy formulas that should no longer be used.
Component formulas with no referenceWarningNoFinds component formulas that are not used by any other formulas in a component.
Unknown component formula inputWarningNoFinds invalid component formula inputs.
Unknown project formula inputWarningNoFinds invalid project formula inputs.
Unknown component formula referenceWarningNoFinds references to unknown component formulas.
Unknown repeat index formulaWarningNoFinds usage of repeat index formulas that are not within a valid repeat context.
Unknown repeat item formulaWarningNoFinds usage of repeat item formulas that are not within a valid repeat context.

Actions

RuleSeverityAuto fixesDescription
Project actions with no referencesWarningDelete the actionProject actions that are not referenced anywhere in your project can lead to confusion and bloated projects. This rule flags unused project actions to help keep your project clean and efficient.
Unknown project action referencesWarningNoFinds references to project actions that do not exist. This helps identify and correct broken references in projects.
Duplicate action argument nameWarningNoFinds duplicate action arguments.
Unknown action eventWarningDelete the eventFinds events in action references that are not declared in the referenced action.
Unknown action argumentWarningDelete the argumentFinds arguments in action references that are not declared in the referenced action.
Legacy actionWarningReplace the actionFinds known legacy actions that should no longer be used.
No consoleInfoNoDetects usage of the Log to console action in workflows. While useful for debugging, leaving console logs in production code can lead to performance issues and cluttered output.

Variables

RuleSeverityAuto fixesDescription
Variables with no referencesWarningDelete the variableVariables that are not referenced anywhere in a component can be safely removed.
Unknown variable referencesErrorNoFinds references to variables that do not exist. This helps identify and correct broken references in components.
Unknown variable setterWarningNoTrying to set a variable that doesn't exist will have no effect, but usually highlights an issue in the logic for a component.

Attributes

RuleSeverityAuto fixesDescription
Attributes with no referencesWarningDelete the attributeAttributes that are not referenced anywhere in a component are not needed and can be removed.
Unknown attribute referenceErrorNoFinds references to attributes that do not exist in a component. This helps you identify and correct broken references in your project.
Unknown component attributeErrorDelete the component attributeIdentifies attributes on component nodes that don't exist on the target component. These invalid attributes can safely be removed.

Events

RuleSeverityAuto fixesDescription
Duplicate event triggerWarningNoFlags duplicate event triggers on an element or component node. This usually happens in legacy projects.
Events with no referencesWarningDelete the eventFinds events in a component that are never triggered. These events can be removed to keep the component clean and efficient.
Unknown eventErrorNoFlags events declared on component nodes that don't exist in the target component.
Unknown event triggerErrorNoFinds event triggers in components that don't match any of the declared events in the component.

APIs

RuleSeverityAuto fixesDescription
APIs with no referencesWarningDelete the APIAPIs that are never referenced in their component are usually not needed and can be removed.
Unknown APIErrorNoFinds references to unknown APIs.
Legacy APIWarningNoFinds APIs that could be upgraded to the newer API v2 format. This conversion can be done from within the Nordcraft editor.
Invalid parser modeWarningNoFlags if an invalid parser mode is used in combination with SSR. The valid parser modes when fetching APIs during SSR are: json, text, and auto.
Invalid proxy bodyWarningNoFlags if an API is set to use templates (for cookie injection) in the body, but the API is not proxied.
Invalid proxy cookieWarningNoFlags APIs that are not proxied but are using a Get Http-Only Cookie formula. The template replacement will only work in the Nordcraft API proxy.
API inputs with no referencesWarningNoAPI inputs that are not used in the API (for headers, body etc.) are not needed.
Unknown API InputErrorNoFinds references to unknown/invalid API inputs.
Unused API servicesWarningDelete the API serviceAPI services that are not used by any API can safely be removed.
Unknown API serviceWarningNoFlags APIs that reference unknown API services. This means the API doesn't benefit from the schema provided by the API service and could indicate that a service was deleted by accident.

Context

RuleSeverityAuto fixesDescription
No context consumption possibleWarningNoFlags components that expose formulas or workflows in context, but don't have a slot element or a component as a child. This would mean that it was not possible for other components/elements to consume the context formulas/workflows.
Unknown context formulaErrorNoFinds references to unknown context formulas. This could happen if a context provider no longer had a formula by the name declared in the context consumer's reference.
Unknown context provider formulaErrorNoFinds references to un-exposed context formulas. This could happen if a context formula had previously been exposed in context, but is now no longer exposed.
Unknown context providerErrorNoFinds references to context providers (components) that don't exist in the project.

Style

RuleSeverityAuto fixesDescription
Invalid style syntaxErrorDelete the CSS propertyFinds invalid CSS properties/syntax on elements and components.
Unknown classnameErrorNoFlags style variants that reference unknown classnames on an element.
CSS variables with no referenceErrorNoFinds all global CSS variables that are never referenced in a project.

Slots

RuleSeverityAuto fixesDescription
Unknown component slotErrorNoFlags slotted elements/components that reference an unknown slot in the host component.

DOM

RuleSeverityAuto fixesDescription
Required direct childWarningNoFlags elements that have an invalid direct child element. For instance, a <ul> element can only have li, script or template elements as children.
Required direct parentWarningNoFlags elements that have an invalid direct parent element. For instance, a <li> element can only be a child of ul or ol elements.
Required element attributeWarningNoFlags elements that are missing required attributes. For instance, an <img> element must have a src attribute.
Required meta tagWarningNoFlags pages that have not declared a title or description meta tag.
Invalid interactive contentWarningNoFlags elements that are not allowed to include interactive content elements, but include one or more as children.
Image without dimensionWarningNoFlags <img> elements that do not have width, height or aspect-ratio attributes specified.
Non-empty void elementsWarningNoFlags void elements that have children declared.

Logic

RuleSeverityAuto fixesDescription
No static nodesWarningDelete condition | Delete nodeFlags elements that have a Show formula, but where the formula always evaluates to either true or false.
Unnecessary "And" formulaWarningNoFinds And formulas where one of its conditions is always falsy. This means that the And formula is always falsy.
Unnecessary "Or" formulaWarningNoFinds Or formulas where one of its conditions is always truthy. This means that the Or formula is always truthy.

Routing

RuleSeverityAuto fixesDescription
Duplicate routesWarningNoFlags pages that have duplicate route declarations (where the path parameters match).
Duplicate URL parameterWarningNoFlags if a query parameter and a path parameter have the same name.
Unknown set URL parameter (legacy)WarningNoFinds actions that try to set a URL parameter (path or query) that does not exist.
Unknown set URL parametersWarningNoFinds actions that try to set one or multiple URL parameters (path or query) that do not exist.
Unknown URL parameterErrorNoFinds references to URL parameters that do not exist.

Miscellaneous

RuleSeverityAuto fixesDescription
Node with no referencesWarningDelete the orphan nodeFinds nodes/elements that are not included by any other node/element. This can happen during copy/paste.
Require browser extensionInfoNoHighlights if the Nordcraft browser extension is not installed, but the project is setting/adding cookies in actions.
Unknown cookieInfoNoFlags cookies referenced by the Get Http-Only Cookie formula that are not found by the Nordcraft browser extension.
11/26/2025
Edit article
Help Forum