Linting Rules

Last updated on June 26, 2024.

The Insites CLI tool checks your codebase for programmatic and stylistic errors when deploying. This article provides a detailed list of the rules that the tool examines.

Errors

The tool checks if the code uses:

  • valid tags
  • valid filters

Performance

The tool checks if profilers are on.

Deprecation

Insites CLI performs the following checks:

  • Check for unnecessary brackets after the input name.
  • has now been replaced with .
  • The usage of the following keys has been changed:

    • has been replaced with .
    • has been replaced with .
    • has been replaced with .
  • has been renamed to .

Convention

Model names must use , not .

File Extensions

Directories must only contain files with the extensions they are supposed to have.

Duplicates

Insites CLI checks for multiple file names with the same partial path.

File Names

The tool checks for filenames that contain prohibited special characters.

Orphaned Partials

The tool checks for orphaned partials in the codebase.

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.