Skip to content

SilasReinagel/WebLayoutReflowStaticAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Layout Reflow - Source Code Static Analysis

Web Layout Reflow - Source Code Static Analysis

This project is based on this gist

In the future, this may be evolved to be an npm-publish command-line tool.


Installation

  1. Clone this repository
  2. Browse to the repository folder
  3. Run npm install

Usage

  1. npm run scan [filePath]
  2. Reports will be output to folder report

Sample Report + Checklist

Checklist:

These represent files that should be inspected or changed to optimize web layout flow.

[
  "./utilities/escapeHTML.ts",
  "./utilities/getIsClampEnabled.ts",
  "./utilities/getScrollBarSize.js",
  "./utilities/index.ts"
]

Report:

These declare the specific files and lines that have flagged layout elements.

[ 
  {
    lines: [
      {
        filePath: './shared/TextField/TextField.tsx',
        line: 'if (isFocused) inputField?.current?.focus();',
        lineNo: 35
      }
    ]
  }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published