# Lint Tool We have a lint tool for catching common mistakes in test files. You can run it manually by running the `wpt lint` command from the root of your local web-platform-tests working directory like this: ``` ./wpt lint ``` The lint tool is also run automatically for every submitted pull request, and reviewers will not merge branches with tests that have lint errors, so you must either [fix all lint errors](#fixing-lint-errors), or you must [whitelist test files](#updating-the-whitelist) to suppress the errors. ## Fixing lint errors You must fix any errors the lint tool reports, unless an error is for something essential to a certain test or that for some other exceptional reason shouldn't prevent the test from being merged; in those cases you can [whitelist test files](#updating-the-whitelist) to suppress the errors. In all other cases, follow the instructions below to fix all errors reported. * **CONSOLE**: Test-file line has a `console.*(...)` call; **fix**: remove the `console.*(...)` call (and in some cases, consider adding an `assert_*` of some kind in place of it). * **CR AT EOL**: Test-file line ends with CR (U+000D) character; **fix**: reformat file so each line just has LF (U+000A) line ending (standard, cross-platform "Unix" line endings instead of, e.g., DOS line endings). * **EARLY-TESTHARNESSREPORT**: Test file has an instance of `` prior to ``; **fix**: flip the order. * **GENERATE_TESTS**: Test file line has a generate_tests call; **fix**: remove the call and call `test()` a number of times instead. * **INDENT TABS**: Test-file line starts with one or more tab characters; **fix**: use spaces to replace any tab characters at beginning of lines. * **INVALID-TIMEOUT**: Test file with `` element that has a `content` attribute whose value is not `long`; **fix**: replace the value of the `content` attribute with `long`. * **LATE-TIMEOUT**: Test file with `` element after `