From 624e1f047c617072164887121cd24c41449f00de Mon Sep 17 00:00:00 2001 From: Raven Hallsby Date: Sat, 25 Oct 2025 12:25:40 -0500 Subject: [PATCH] gnu: Add editorconfig-checker. * gnu/packages/text-editors.scm (editorconfig-checker): New variable. Change-Id: I1131e6bfa0d6a0e2c3b90dd2d8e5789431862a99 Signed-off-by: Sharlatan Hellseher --- gnu/packages/text-editors.scm | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 4d1da38270c8dcf75b8bc102cf9ea59376dbf9ab..b05ea1ee00eb7a0404ff70fcf137434d44405f06 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -1197,6 +1197,45 @@ various text editors which allow this file format to be read and used by those editors.") (license license:bsd-2))) +(define-public editorconfig-checker + (package + (name "editorconfig-checker") + (version "3.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/editorconfig-checker/editorconfig-checker") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "147kykawss6ld4xcd0v3v7xibnw8mz0n5vgfa4vr9vz0dsqch1d9")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:unpack-path "github.com/editorconfig-checker/editorconfig-checker/v3" + #:import-path (string-append "github.com/editorconfig-checker/" + "editorconfig-checker/v3/" + "cmd/editorconfig-checker") + #:build-flags + #~(list (format #f "-ldflags=~a" + (string-append "-X main.version=" #$version))))) + (native-inputs + (list go-github-com-editorconfig-editorconfig-core-go-v2 + go-github-com-gabriel-vasile-mimetype + go-github-com-gkampitakis-go-snaps + go-github-com-baulk-chardet + go-golang-org-x-text)) + (home-page "https://editorconfig-checker.github.io/") + (synopsis "Tool to verify that project files match @code{.editorconfig}") + (description + "@code{editorconfig-checker} is a lint tool to verify that a project +matches the specifications in @{.editorconfig} file. It runs quickly, +providing a frequent style check and the output format can be configured to +interface with CI pipeline UIs.") + (license license:expat))) + (define-public texmacs (package (name "texmacs")