CodeInspector`
CodeInspector`

CodeInspect

CodeInspect["code"]

inspects a string of WL code returning a list of issues.

CodeInspect[File[src]]

inspects a file of WL code returning a list of issues.

Details and Options

  • All issues that are found are returned.
  • CodeInspect has these options:
  • PerformanceGoal "Speed"aspects of performance to try to optimize

Examples

open allclose all

Basic Examples  (1)

Options  (1)

PerformanceGoal  (1)

Using "LineColumn" convention:

Using "SourceCharacterIndex" convention:

Possible Issues  (1)

A string representing a file path is treated as code.

File paths must use the File wrapper.