editorconfiger is the plain tool to validate and compare .editorconfig files
homebrew (only on macOS and Linux for now):
Add my tap (do it once):
brew tap aegoroff/tapAnd then install editorconfiger:
brew install editorconfigerUpdate editorconfiger if already installed:
brew upgrade editorconfigerscoop:
scoop bucket add aegoroff https://github.com/aegoroff/scoop-bucket.git
scoop install editorconfigerAUR (Arch Linux User Repository):
install binary package:
yay -S editorconfiger-binor if yay reports that package not found force updating repo info
yay -Syyu editorconfiger-bininstall using cargo so builiding on target machine:
yay -S editorconfigeror if yay reports that package not found force updating repo info
yay -Syyu editorconfigermanually:
Download the pre-compiled binaries from the releases and copy to the desired location. RPM and DEB packages are available to install under RedHat or Debian based Linux distros.
install deb package on Arch Linux:
- Install debtap from AUR using yay:
yay -S debtap- Create equivalent package using debtap:
sudo debtap -u
debtap editorconfiger_x.x.x_amd64.deb- Install using pacman:
sudo pacman -U editorconfiger-x.x.x-1-x86_64.pkg.tar.zstUsage: editorconfiger [COMMAND]
Commands:
vf Validate single .editorconfig file
vd Validate all found .editorconfig files in a directory and all its children
c Compare two .editorconfig files
completion Generate the autocompletion script for the specified shell
bugreport Collect information about the system and the environment that users can send along with a bug report
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help information
-V, --version Print version information