#editorconfig #compare #validate #plain #tool #command-line #binary

bin+lib editorconfiger

Plain tool to validate and compare .editorconfig files

18 releases

0.4.6 Mar 17, 2024
0.4.3 Aug 30, 2023
0.4.2 Mar 13, 2023
0.3.1 Oct 23, 2022
0.1.9 Nov 25, 2021

#764 in Parser implementations

Download history 2/week @ 2024-02-15 10/week @ 2024-02-22 3/week @ 2024-02-29 4/week @ 2024-03-07 255/week @ 2024-03-14 47/week @ 2024-03-21 98/week @ 2024-03-28 78/week @ 2024-04-04

239 downloads per month

MIT license

54KB
1.5K SLoC

CI codecov

editorconfiger

editorconfiger is the plain tool to validate and compare .editorconfig files

Install the pre-compiled binary

homebrew (only on macOS and Linux for now):

Add my tap (do it once):

brew tap aegoroff/tap

And then install editorconfiger:

brew install editorconfiger

Update editorconfiger if already installed:

brew upgrade editorconfiger

scoop:

scoop bucket add aegoroff https://github.com/aegoroff/scoop-bucket.git
scoop install editorconfiger

AUR (Arch Linux User Repository):

install binary package:

 yay -S editorconfiger-bin

or if yay reports that package not found force updating repo info

yay -Syyu editorconfiger-bin

install using cargo so builiding on target machine:

 yay -S editorconfiger

or if yay reports that package not found force updating repo info

yay -Syyu editorconfiger

manually:

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:

  1. Install debtap from AUR using yay:
 yay -S debtap
  1. Create equivalent package using debtap:
 sudo debtap -u
 debtap editorconfiger_x.x.x_amd64.deb
  1. Install using pacman:
sudo pacman -U editorconfiger-x.x.x-1-x86_64.pkg.tar.zst

Command line syntax:

Usage: 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
  help        Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help information
  -V, --version  Print version information

Dependencies

~5–16MB
~179K SLoC