Team Members

Launch Site

jQuery Defender

Defend your new Angular 2 application from unnecessary use of jQuery! jQuery Defender can scan a github repository or a .zip file and find unwanted uses of jQuery that can be replaced with built-in Angular functions.

V800 jquerydefender repo

Description

Defend your new Angular 2 application from unnecessary use of jQuery! jQuery Defender scans a Github-hosted or a zipped-up repository and finds common uses of jQuery functions that can be replaced with built-in Angular functions. jQuery Defender has multiple commonly-used jQuery methods programmed into it as rules. When a repository is selected the rules are run against it in the background. Then the user can view the different rule hits and source code side by side.

Instructions

On the homepage you will find two available actions. First, you can browse the implemented rules that the application will scan for. You can do this by clicking on the "Browse Rules" button at the top of the page. Second, you can start scanning an existing code repo in one of two ways: 1. Entering there public github repo information and selecting a tag or branch or entering a commit id. 2. Downloading a repo as a zip file and choosing it for your analysis.

A sample repo that can be used is enagler/defendagainstthis, which contains some sample HTML files that have jQuery in them.

When selected, you'll be taken to the main rules analysis screen where you can view the files that had matching rule hits, accompanied by the rules, and see examples on how to correct them.

On the main rule analysis screen, click on a file on the left hand picker that has number next to it to view the matching issues. Then, you can view the code on the right side along with the problems detected.

Built With

Feedback / Ratings (24)

All Feedback