tidyall – code formatter and validator

tidyall is a command-line utility that brings multiple code formatters and validators together under a single interface. Rather than replacing established tools, it coordinates their execution according to the files being processed. Developers can configure different checks for different source files, allowing one project to apply consistent formatting and validation rules across several programming and markup languages.

The application distinguishes between tidiers, which modify files to improve formatting, and validators, which inspect files for problems. When both kinds of tool apply to the same file, tidyall runs the tidiers before the validators so that checks examine the resulting content. It also maintains a cache of previously processed files and creates backups before modifications. These features make it useful for enforcing coding standards in large projects without unnecessarily repeating every check on unchanged files.

This is free and open source software.

Key Features

  • Run multiple code formatters and validators through one command-line interface.
  • Configure which tools apply to individual file types and directory paths.
  • Process individual files, selected directories or complete project trees.
  • Select files using configurable patterns and exclusions.
  • Integrate with PerlTidy, PerlCritic and other Perl code-quality tools.
  • Support validation and formatting tools for JavaScript, JSON, CSS, PHP and POD.
  • Apply tidiers before validators when both match the same file.
  • Configure the order in which individual plugins are executed.
  • Prevent partial modifications when a sequence of plugins fails.
  • Cache processed-file signatures to avoid unnecessary repeated checks.
  • Process only added or modified files in a Git working directory.
  • Provide a check-only mode for validating files without changing them.
  • Create backups before modifying source files.
  • Configure backup retention and cache behaviour.
  • Read source content from standard input and write processed output to standard output.
  • Support Git pre-commit and pre-receive validation through companion integrations.
  • Provide integrations for Vim and Emacs editing workflows.
  • Allow additional formatters and validators to be implemented as plugins.
  • Expose a Perl API for invoking the processing engine from other applications.

Website: github.com/houseabsolute/perl-code-tidyall
Support:
Developer: Jonathan Swartz and Dave Rolsky
License: Artistic License 1.0 or GNU General Public License v1.0

tidyall is written in Perl. Learn Perl with our recommended free books and free tutorials.


Related Software

General Purpose Linter Tools
Super-linterCollection of linters and code analyzers
PrettierOpinionated code formatter
semgrepStatic analysis for many languages
ast-grepPerforms structural search, lint and rewriting
MegaLinterAnalyzes the consistency of your code
commitlintLint commit messages
tidyallAll-in-one code tidier and validator
Violations LibParse report files from static code analysis

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted