Get Started with P42 for GitHub
Welcome
P42 is a JavaScript and TypeScript code scanner. It analyzes your GitHub repositories to provide code modernization and refactoring suggestions.
With P42, you can:
- Identify areas of your JavaScript and TypeScript codebase that can be refactored and modernized,
- Get automated code reviews for your pull requests that identify possible refactorings, and
- Apply refactorings to files and folders in bulk (using the P42 JS Assistant for VS Code).
đĄÂ  P42 is particularly useful for teams of developers who need to modernize a codebase or work with legacy JavaScript code.
Requirements
It is easy to get started with P42. All you need is a GitHub account with JavaScript (.js) and/or TypeScript (.ts) source code in your repositories.
Limits and Boundaries
Repository size
The maximum GitHub repository size that can be supported is 500 MB. Any repository larger than 500 MB will not be analyzed, and this will be indicated in the Repositories Page.
Analysis Runtime
The maximum codebase analysis runtime for a repository is ten minutes. The analysis will automatically time out if the runtime exceeds ten minutes. If a timeout happens, you will see the "Analysis timed out" status in the Repository Page.
File Size
The maximum file size for source code files is 512 KB. Files that are larger than 512 KB will not be analyzed.
Diff Size Per File
The maximum raw diff data for a file is 256 KB. The source file will not be analyzed if the diff size exceeds 256 KB.
Supported Languages
Currently P42 supports the following languages and file types:
- JavaScript (.js, .jsx, .mjs, .cjs)
- TypeScript (.ts, .tsx, .mts, .cts)
đ  Source code files containing non-standard elements that cannot be parsed are excluded from analysis.
Everything other than the formats listed above will be skipped and excluded during analysis of a repository.
Workflow
See How P42 Works for more information.
Navigation
The P42 interface features a simple top navigation bar containing the following elements:
- Home button to get back to the P42 homepage.
- Help link. Takes you to the documentation for the current page.
- Sign out button. Ends the current P42 session.
- Repositories - Go to the Repositories Page for your P42 account.