Contents 13 sections
- What are linter messages?
- Why should developers use linter tools?
- Linter & Analysis Tools for HTML
- Linter Tools for JavaScript
- Linter Tools for PHP
- Linter Tools for Python
- Linter Tools for Laravel
- Linter Tools for MySQL
- Linter Tool for XML Files
- Linter tools for validating the sitemap.xml
- Linter tool for structured data
- Linter extensions for editors and development environments
- Does the use of linter tools also help with SEO measures?
In this post, I would like to give an overview of common linter & analysis tools for various areas, some of which we also use to improve and validate code. After the relaunch of TutKit.com in November 2021, we spent about 1.5 years on bug fixing and refactoring, and somehow it feels like it just won't stop. TutKit.com is a custom development based on the PHP framework Laravel and the JavaScript framework vue.js. Anyone who professionally operates a portal or software will sooner or later have no choice but to use such linter and analysis tools as well. Even for smaller websites or special requirements, these code checkers and validators are a good fit, because they offer a quick way to point out errors and problems.
What are linter messages?
Linter messages refer to error messages, warnings, or notes generated by a linter tool. A linter is an analysis program or analysis software that analyzes source code to detect potential errors, style issues, faulty syntax, potential security vulnerabilities, or other problems in the code. It is often used in app, website, and software development to ensure that the code meets certain standards and is well written.
Linter messages can be output in various formats, e.g. as text, XML, or JSON. They can also occur at various severity levels, e.g. as errors, warnings, or notes.
Here are some common types of linter messages:
Error messages: These messages point to serious problems in the code that can cause the program to not work correctly or to crash. These errors are so serious that they can make the code invalid or lead to unexpected behavior. Errors must be fixed before the code can be compiled or executed. Examples of errors are syntax errors, undefined variables, or invalid functions.
This is what such a linter error message could look like:
Error: Variable 'undefined' is not defined
This error message indicates that a variable is being used that has not yet been defined.
Warnings: Warnings point to potential problems that do not lead to errors immediately, but can still cause undesired behavior or inefficient code. For example, warnings could point to unused variables or unused imports. Warnings can be ignored, but should generally be fixed to improve the quality of the code.
This is what a linter warning could look like:
Warning: Use of deprecated function 'foo()'
This warning indicates that a function is being used that is outdated and could be removed in future versions of the programming language.
Notes or recommendations: This type of message points to improvements or best practices that can make the code more readable, maintainable, or efficient. They are less critical than errors or warnings and often serve to raise the code quality standard.
- Error messageSerious, must be fixed before execution
- WarningPossible problem, should generally be fixed
- NoteImprovement for more readable, more efficient code
This is what a linter note could look like:
Note: Code could be more efficient
This note indicates that the code could be improved, e.g. by using more efficient algorithms.
Why should developers use linter tools?
Developers should use linter tools for various reasons, as they offer a number of benefits that can help improve code quality, increase productivity, and reduce errors. Here are some of the main reasons why developers use linter tools & code checkers:
- Error detection: Linter tools can identify potential errors in the code before they lead to runtime errors. This enables developers to fix errors early, which saves time and effort in troubleshooting.
- Compliance with coding standards: Linter tools can ensure that the code complies with established coding standards and style guidelines. This makes it easier to maintain the code and collaborate in a team, as the code becomes more consistent.
- Readability and maintainability: Linter tools can pay attention to the readability and maintainability of the code. This leads to code that is easier to understand and maintain, and that is more accessible both to the developer and to other team members.
- Best practices: Most linter tools can check for best practices and design patterns and ensure that they are used in the code. This contributes to the development of high-quality code.
- Efficiency: By identifying inefficient sections of code, linter tools can help improve the performance of the code by uncovering inefficient algorithms or waste of resources.
- Automation: Linter tools automate the code review process, which saves developers time and effort. They can be integrated into development workflows and run continuously to check the code in the background.
- Avoiding security vulnerabilities: Some linter tools can uncover potential security vulnerabilities in the code, which helps minimize security risks.
- Consistency in the team: Linter tools promote adherence to shared conventions and standards in the team, which makes the codebase more homogeneous and reduces discussions about coding styles.
- Documentation and training: Linter tools can give developers hints and advice on improving their code, which helps expand the knowledge and skills in the team.
- Detect errors early, before they occur at runtime
- Consistent style according to defined coding standards
- Better readability and maintainability of the code
- Automatic checking in the development workflow
- Uncover potential security vulnerabilities
- Fewer discussions about coding styles in the team
Overall, linter tools can help increase the quality and reliability of software and web projects and make development more efficient and less error-prone. They are an important part of the modern development process and are used in a wide variety of programming languages and development platforms.
Linter & Analysis Tools for HTML
There are several linter tools and code review tools for HTML for identifying errors and style problems in HTML code and for improving code quality. These linter tools can help developers check HTML code for various types of errors, such as:
- Missing or incorrectly nested HTML tags.
- Invalid attributes or values.
- Unclosed HTML tags.
- Missing mandatory HTML elements.
- Style guidelines and best practices for HTML.
Here are two of the best-known linter tools for HTML:
The Nu HTML Checker is an online HTML validation service from the W3C that checks HTML documents for conformity with the HTML5 standards. It is free and available online. Here you simply enter your URL and receive the check result - also activate the options to additionally see the issues directly in the code:

HTMLHint: HTMLHint is a widely used linter tool for HTML that is based on Node.js. It checks HTML files for errors and warns about best practices and coding standards. You can use it as an online tool, install it as a CLI tool (Command Line Interface), or activate it as an IDE extension for Visual Studio Code, Atom, Sublime Text, or other editors. In the online tool, you enter your code and receive hints marked with a cross at the beginning of the line - on mouseover you can see what is inconsistent.

There are also HTML plugins for other linters that focus on JavaScript, for example. You will also find suitable extensions for most editors, see below. Using an HTML linter helps you ensure that your HTML documents comply with common standards, are correctly validated, and are well written, which improves the readability and maintainability of your website.
Linter Tools for CSS
What applies to HTML naturally has its counterpart for CSS (Cascading Style Sheets) as well. Linter tools for CSS help developers detect various types of errors and style problems, including:
- Missing or faulty CSS selectors.
- Invalid CSS properties or values.
- Unused CSS rules or selectors.
- Style guidelines and best practices for CSS and CSS preprocessors such as SCSS or LESS.
- Consistent formatting and indentation.
Here are two linter tools for CSS for you:
stylelint: stylelint is one of the most frequently used linter tools for CSS and SCSS. It checks CSS files for errors and style guidelines and allows extensive customization of rules and configurations. stylelint ensures that CSS style guidelines and best practices are followed.

Prettier: Although Prettier is primarily a code formatter, it can also be used to check and format CSS code to ensure consistent formatting and indentation.

Using a CSS linter thus helps make CSS code more readable, maintainable, and error-free, which leads to better quality of websites and web applications. It also facilitates teamwork, as consistent and well-written CSS code is easier to understand and maintain.
Linter Tools for JavaScript
There are linter tools for JavaScript, but also directly for JavaScript frameworks such as vue.js, which we use here at TutKit.com. They help you detect various types of errors and style issues, including:
- Syntax errors and logical errors.
- Unused variables or functions.
- Invalid or undeclared variables and objects.
- Compliance with coding standards and style guidelines.
- Potentially error-prone constructs and best practices.
ESLint is one of the most widely used linter tools for JavaScript. It offers comprehensive checking of JavaScript code for errors and style guidelines. ESLint is extremely configurable in a sensible way and allows you to define your own rules and conventions. You can also extend ESLint with plugins for linting HTML & CSS in order to check HTML data and CSS files for errors.

JSHint is a simpler JavaScript linter that checks code for errors and style guidelines. It is less configurable than ESLint, but still useful for basic linting requirements.
Flow is a typing solution for JavaScript that can also be used to detect errors in code caused by missing or incorrect typing.

Likewise, StandardJS is a relatively simple linter tool for JavaScript that is based on the idea of promoting a uniform coding style for JavaScript. It enforces a specific set of rules and conventions without configuration.
Linter Tools for PHP
There are several linter tools for PHP (Hypertext Preprocessor) that help backend developers identify errors, style problems and best practices in their PHP code and improve code quality, including:
- Syntax errors and logical errors.
- Compliance with coding standards and style guidelines.
- Typing errors and potential security vulnerabilities.
- Code metrics and best practices for code quality.
Take a look at one of these linter tools for PHP to improve your backend projects:
PHPStan is a static analysis linter for PHP that checks code for type hints, potential errors and security issues. It offers high accuracy in error detection and can contribute to improving code quality. You can also use it online. The nice thing is that, on the one hand, it is friendly toward outdated legacy code. On the other hand, it is also very useful when used with PHP frameworks such as Laravel, which TutKit.com is also based on, or Symfony.

We also use the paid tool SymfonyInsight (for our Laravel project). It is not free, but it works with gamification and scores, etc., so that the developers stay in good spirits and are motivated to make certain code improvements for more security.

Other PHP linters you should take a look at are:
- PHP_CodeSniffer: PHP_CodeSniffer is one of the most widely used linter tools for PHP. It checks PHP code for compliance with coding standards and offers a variety of predefined or customizable coding standards, including PSR standards (PHP-FIG). PHP_CodeSniffer consists of two PHP scripts: the main script phpcs, which tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second script phpcbf, which automatically corrects violations of the coding standard. PHP_CodeSniffer is an indispensable development tool that ensures your code stays clean and consistent.
- Psalm: Psalm is another static analysis linter for PHP that specializes in typing and security. It offers strong static analysis of code and can also be used to identify type problems.
- PHPMD (PHP Mess Detector): PHPMD checks PHP code for code metrics, DRY violations (Don't Repeat Yourself), coupling and cohesion, as well as other potential problems in the code.
- PHPLint: PHPLint is a simple PHP linter that checks for syntax errors and basic coding problems.
- Xdebug: Although Xdebug is normally used for troubleshooting and debugging, it can also be used to review PHP code in order to collect code coverage and runtime information.
- PHP-CS-Fixer: Although PHP-CS-Fixer is primarily a code formatter, it can also be used to check and adjust coding standards in order to improve PHP code.
Our developers on the team use PhpStorm for backend development. The integration of external PHP linters is easily possible there.
This overview of further tools for quality assurance of PHP projects is also useful.
Linter Tools for Python
Python is the most popular programming language overall, with 28 percent of user interest, measured by search volume on Google for tutorials according to the PYPL Index (PopularitY of Programming Language)
Accordingly, there is also a whole range of linter tools for Python with which you can check your Python code for
- Syntax errors and logical errors.
- Unused variables or functions.
- Compliance with coding standards and style guidelines.
- Type checking and static analysis of types (in projects with type annotations).
Just check out one of the following linter tools for Python, which you can use to improve your projects depending on your focus:
- pylint: pylint is a widely used linter tool for Python. It checks Python code for errors, style guidelines, and coding standards. Pylint is highly configurable and can be adapted to the specific requirements of a project.
- pyflakes: pyflakes is a simple and lightweight linter tool that checks Python code for errors and potential problems. It focuses mainly on static code analysis.
- Black: Although Black is primarily a code formatter, it can also be used as a linter tool to ensure that Python code has consistent formatting and indentation.

Other Python linters are mypy, isort, Prospector, and also Bandit, which is designed specifically for security vulnerabilities in Python.
Linter Tools for Laravel
There are linter tools and code review tools developed specifically for the Laravel PHP framework to check Laravel applications for errors and style problems. We are very grateful for this because we have specialized as an agency for Laravel.
Larastan: Larastan is a static analysis linter for Laravel applications based on PHPStan. It enables static type checking of Laravel-specific code to detect errors and problems related to Laravel.
Laravel Shift: Laravel Shift is a service that checks Laravel applications for updates, security vulnerabilities, and outdated packages and recommends how these can be updated or fixed.
PHP Insights: PHP Insights is a code analysis tool developed specifically for Laravel. It checks Laravel applications for coding standards, performance problems, code complexity, and other code quality metrics.
Laravel Shift Linter: This is a special linter from Laravel Shift that specializes in style guidelines and best practices for Laravel development. It checks the code for compliance with Laravel conventions.
Laravel IDE Helper: Although Laravel IDE Helper is not directly a linter, it is a helpful tool that makes Laravel-specific code visible in your development environment such as PhpStorm, thus making the development and understanding of Laravel code easier.
Laravel Debugbar: Although this package is not a linter, it is useful for helping developers review and optimize the performance of Laravel applications. It displays detailed information on request and response time as well as database query performance.
- LarastanStatic type checking for Laravel code, based on PHPStan
- Laravel ShiftChecks for updates, security vulnerabilities, and outdated packages
- PHP InsightsChecks code standards, performance, and complexity
- Laravel IDE HelperMakes Laravel code visible in PhpStorm
- Laravel DebugbarShows request time and database queries
Here are more tools specifically for the Laravel ecosystem: https://madewithlaravel.com/
Linter Tools for MySQL
Compared to other programming languages, there are fewer traditional linter tools for MySQL and SQL in general that are used in the same way as for source code in programming languages. SQL is a query language for database manipulation, and the way SQL queries are written and optimized is different from other languages.
However, there are still tools and approaches for checking SQL code with regard to its performance and security:
MySQL Shell (mysqlsh): The MySQL Shell offers some checking functions that can help check SQL queries for syntax errors and some basic problems.
MySQL Query Analyzer: MySQL has a built-in query analyzer that can be used to identify slow or inefficient queries and analyze query performance.
Code Reviews: A proven method for checking SQL code is to carry out code reviews by other developers or database administrators. This can help uncover potential problems and opportunities for improvement in the SQL code.
SQL Performance Tuning Tools: There are third-party tools and services that specialize in optimizing SQL queries and identifying performance problems. Examples include Percona Toolkit and Query Analyzer services.
SQL Linter Plugins: Some developer IDEs and database management tools offer linter plugins that can check SQL queries for syntax errors and some common problems.
- MySQL Shell for syntax errors
- Query analyzer for slow queries
- Linter plugins in IDEs
- Code reviews by other developers
- Percona Toolkit
- Query Analyzer services
While there are no specific linter tools for MySQL that correspond to the traditional understanding of linting tools, the approaches and tools mentioned above are helpful for checking SQL code for performance problems, security vulnerabilities, and syntax errors. Identifying and fixing problems in SQL queries is important to optimize database performance and ensure that database operations are carried out efficiently and securely.
Linter Tool for CSV
There are also linter tools and validation tools developed specifically for CSV (Comma-Separated Values) files to ensure that the data in the CSV files is correctly formatted and valid. Here are some examples of linter tools and validation tools for CSV files:
- csvlint is a command-line tool and an online platform that can be used to check CSV files for syntax errors and validity. It displays errors and warnings in the CSV format and allows users to validate and analyze the file.
- csvkit is a suite of command-line tools for working with CSV files in Python. It includes the tool csvclean, with which you can check CSV files for duplicates and inconsistent data.
- OpenRefine is open-source software used for data cleaning and transformation. It also offers functions for validating and checking CSV files for inconsistent data.
- CSVLint is an online service for validating CSV files. You can upload a CSV file, and the tool checks it for syntax errors and inconsistencies.
These tools can be helpful for ensuring that CSV files are correctly formatted and valid, especially if you use CSV files for data exchange or data processing.
Linter Tool for XML Files
There are linter tools and validation tools developed specifically for XML (eXtensible Markup Language) to ensure that XML documents are correctly structured and valid. Here are some examples of linter tools and validation tools for XML:
XMLLint is a command-line tool that is part of the libxml2 package and is used to check XML documents for syntax errors and validity. It is widely used and can be used on various platforms.
There are many online XML validation services that can be used to upload XML documents and check them for validity. One example is this Online XML Validator.
- On the command lineXMLLint from the libxml2 package
- In the browserOnline XML validator
- In the editorExtension for XML validation
Furthermore, the typical editors also offer extensions for XML validation.
Linter tools for validating the sitemap.xml
There are also linter tools and validation tools developed specifically for sitemap.xml files to ensure that they comply with the Sitemaps protocol standards and are correctly formatted. Here are some examples of linter tools and validation tools for sitemap.xml files:
Google Search Console: In the Search Console, Google offers you an integrated tool for validating sitemaps. You can upload your sitemap.xml file and have it checked for errors or problems. Submission is then always also linked to the request for indexing by Google.

There are various online XML sitemap validation services that can be used to check sitemap.xml files for syntax errors and validity. These include the XML-Sitemap Validator (online tool). Here you enter a URL to your sitemap and find out whether it is valid or where errors exist.

With XMLLint, which I mentioned earlier, you can simply paste in the code of your sitemap.xml file and check its validity right away.

Screaming Frog SEO Spider: This paid SEO tool offers a function for validating sitemaps. You can import your sitemap.xml file into the tool and have it checked for errors.
Using sitemap.xml validation tools is important to ensure that search engines such as Google and Bing can interpret your sitemap correctly. Invalid or faulty sitemaps can cause search engines to have problems crawling and indexing your website. It is therefore advisable to check your sitemap.xml file before using it or when making changes, to ensure that it complies with the Sitemaps protocol standards.
Linter tool for structured data
There are linter tools and validation tools developed specifically for structured data. Structured data is information that exists in a standardized format and is used to help search engines and other applications better understand the content of a web page. Here are some examples of linter tools and validation tools for structured data:
Google Structured Data Testing Tool: This tool from Google allows you to check structured data on a web page. It helps ensure that the structured data complies with the standards recommended by Google.

Structured Data Linter: This online tool allows you to check structured data in various formats, including JSON-LD, Microdata and RDFa. It displays warnings and errors in the structured data markup.

Schema.org Generator: This tool helps with creating structured data in JSON-LD format by assisting you in selecting schemas and creating markup code. It is useful for generating structured data for specific content. In the example here, it immediately becomes clear that isbn is not recognized as a property. After some research, it becomes clear that the correct markup is gtin13 instead of isbn .

These linter tools and validation tools are helpful for ensuring that structured data on your website is correctly formatted and created in accordance with the standards and recommendations of search engines and the Schema.org specifications. This helps improve the visibility and understanding of the content by search engines and optimize the rich snippets in the search results. So use them!
Linter extensions for editors and development environments
For most editors and development environments, there are also options for enabling the linter tools mentioned above. Here you will find the most important links for this:
Sublime Text:
https://www.sublimelinter.com/en/latest/
Visual Studio Code:
https://marketplace.visualstudio.com/search?term=lint&target=VS&category=All%20categories&vsVersion=&sortBy=Relevance
Adobe Dreamweaver:
https://helpx.adobe.com/de/dreamweaver/using/linting-code.html
Atom:
https://atomlinter.github.io/
PhpStorm:
https://www.jetbrains.com/help/phpstorm/linters.html
https://www.jetbrains.com/help/phpstorm/php-code-quality-tools.html

Does the use of linter tools also help with SEO measures?
The use of linter tools and search engine optimization (SEO) are normally not directly related. Linter tools are development and code review tools used to identify errors and style problems in source code, while SEO focuses on optimizing websites and content for search engines such as Google in order to improve visibility and ranking in the search results.
Nevertheless, faulty or inefficient coding practices on a website can have indirect effects on SEO:
- Loading times: Poorly optimized code can increase a website's loading times, which in turn negatively affects the user experience. Slow loading times can impact SEO, as search engines such as Google prefer websites with faster loading times.
- Mobile optimization: Mobile optimization is an important factor for SEO. If the code is not responsive or has problems with display on mobile devices, this can negatively affect the SEO ranking.
- Content and structure: Although linter tools primarily target the code itself, they can also point out structural problems or missing metadata that can affect SEO. For example, they can alert you when important meta tags such as the title or the meta description are missing.
- Usability: Clean and efficient code can help improve a website's usability. If users have a positive experience on the website, this can indirectly lead to a lower bounce rate and a longer time spent on the website, which in turn can improve SEO.
- Poorly optimized codeLonger loading times
- Non-responsive codeNegative ranking possible for mobile use
- Missing meta tagsLinters can point them out
- Unclean, inefficient codeWorse user experience
Overall, linter tools and SEO are different aspects of website development and optimization, but they can influence each other when inefficient code or structural problems impair the performance or user experience of a website. It is therefore important to pay attention to both code quality and SEO optimization factors in order to create a well-functioning and highly visible website.
My conclusion:
Developers use linter tools to ensure that their code meets the defined quality standards and conventions that apply in a project or in the developer community. If your programming language or framework was not included in the list of linter tools above, just do some research. There is certainly the right tool for linting for your preferred programming language as well.
Ultimately, the use of linter tools helps to detect errors early, make code more readable and better, and safeguard the code quality, reliability, and maintainability of software and web projects overall. Linter messages are therefore an important part of the development process and help ensure the reliability and maintainability of software projects.
Comments
Register and comment.
Continue reading
