Skip to content

Add oneline-require and is-minified flags #325

Closed
@fraxken

Description

@fraxken

The goal of the task is to refactor and break API responses of the AstAnalyser class by using the newly introduced flags property (see #324).

  • Remove isOneLineRequire from AstAnalyser.analyse method response and include oneline-require in flags Set.
  • Remove isMinified from AstAnalyser.analyseFile and AstAnalyser.analyseFileSync response and include is-minified in flags Set (previous flags from analyse must be preserved).

Note

flags property is missing in the analyseFileSync response (i forgot to add it in my previous PR). Do not hesitate to open a PR and add a test to avoid faling for the same mistake.

I would recommend opening multiple PR (do not attempt to achieve everything in one).

A bunch of tests will break and will require refactoring to use the flags property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions