Jswatchdog (JavaScript code checker)

Introduction

jswatchdog is an online service for effectively improving the quality of JavaScript customizations.
It works on the browser, and uses ESLint and JSHint to check through and validate code.
For those who have already set up ESLint or JSHint in their coding environment, this is not necessary. But for those who haven't, jswatchdog can help to:

  • reduce the cost of code reviews
  • understand which parts of a code have vulnerabilities

When writing customizations for Kintone, try passing the code through jswatchdog first to see what areas can be improved.

How to use jswatchdog

jswatchdog can be accessed from the following link: https://kintone.github.io/jswatchdog/

  1. Paste the JavaScript program in the online editor on the left side.
  2. Lines that need attention will be displayed on the right hand side. Editing code on the online editor will take immediate effect on the right hand side.

jswatchdog.png

Examples of jswatchdog errors

JavaScript source code

Errors that are commonly displayed

Other types of errors that are displayed

Reference

Was this article helpful?
1 out of 1 found this helpful
Do you have any questions or issues related to this article?
Please share your views with us in the Community forums!