Static code analyzers for JavaScript, PHP, Python, and the Linux shell

Script Doctor

© Lead Image © Ewa Walicka, Fotolia.com

© Lead Image © Ewa Walicka, Fotolia.com

Article from Issue 188/2016
Author(s):

Admins daily use scripts to automate tasks, generate web content, collect and parse data, and perform many other tasks. A few sophisticated tools can tell admins where script problems lurk.

Administrators are likely to throw together a shell script quickly during the stress of everyday admin life, but sometimes it takes only a few days before the script self-destructs. Meticulous, time-consuming, and typically hectic troubleshooting commences. Thank goodness for static code analyzers.

Code analyzers examine source code for errors and typical problems, such as typos that a human is likely to overlook – from uninitialized variables to incorrectly used semicolons. Predefined test rules decide whether an error exists, and programmers can specify their own test criteria in some cases.

These code analyzers are referred to as "static" because they only see the source code; they cannot make any guesses about future performance. Some tools that perform data flow analysis and track variables through the program code can find unused or unnecessary variables.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Code Analysis: Open Source Keeps on Improving

    The security and quality of Open Source software just keeps on improving, as code analysis by Coverity reveals.

  • JavaScript Alternatives

    JavaScript is the stuff of which many interactive web clients is made, but it comes with a fair amount of historical ballast. The creators of four alternative scripting languages seek to ditch the ballast.

  • Helma

    The powerful Helma application server brings new powers to the JavaScript language. We'll show you how to use Helma to build a simple RSS reader.

  • Code Analysis

    Linux offers some sophisticated tools for understanding how malware can slip through the gaps in an unsuspecting application.

  • Shell Scripts in Waiting: the Waitmax Tool

    Linux consultant Matthias Kettner has just released Version 1.0 of his Waitmax Software. It gives programs a specified time to complete after terminating them.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News