In Python world, one of the most widely-used static code analysis tools, pylint
has a special check, that detects typos in comments and docstrings.
Is there a way to detect typos in JavaScript code using static code analysis?
To make the question more specific, here is an example code I want to cause a warning:
// enter credntials and log in
scope.loginPage.logIn(browser.params.regularUser.login, browser.params.regularUser.password);
Here credntials
is misspelled.
eslint
plugin that's really easier to configure. Worked right out of the box for me. – Shaefer