Query module ClassifyFiles

name
Classify files
description
This query produces a list of all files in a snapshot that are classified as generated code, test code, externs declarations, library code or template code.
kind
file-classifier
id
js/file-classifier

Imports

FrameworkLibraries

Provides classes for identifying popular framework libraries.

GeneratedCode

Provides classes for detecting generated code.

Templating

Provides predicates for working with templating libraries.

Testing

Provides classes for working with JavaScript testing frameworks.

Predicates

classify

Holds if f is classified as belonging to category.

maybeCausedByTemplate

Holds if e may be caused by parsing a template file as plain HTML or JavaScript.