sl count-lines

The CLI's count-lines command allows you to count the lines of code in a given directory. This information can help you determine if the workstation you're running NG SAST on can support code analysis.

The command will try to exclude directories that do not contain your application code directly (e.g., node_modules for NodeJS or vendor for Go).

Usage

To run: sl count-lines [command options] <path-to-directory>

Command Options

OptionDescription
--jsUse if your directory contains a JavaScript application
--csharpUse if your directory contains a C# application
--goUse if your directory contains a Go application
--javaUse if your directory contains a Java/Scala application

Sample Usage

$ sl count-lines --js sample-apps/sl-angular
552 lines for 28 JavaScript files in sample-apps/sl-angular