summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRaven Hallsby <karl@hallsby.com>2025-10-25 12:25:40 -0500
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-04 20:35:29 +0000
commit624e1f047c617072164887121cd24c41449f00de (patch)
tree23bf4a3f2499011ecc5b4a449c89be07d564d4bd /gnu
parent366d1d837f09ee3aa9ede58f51d0f4a63a8f9221 (diff)
gnu: Add editorconfig-checker.
* gnu/packages/text-editors.scm (editorconfig-checker): New variable. Change-Id: I1131e6bfa0d6a0e2c3b90dd2d8e5789431862a99 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/text-editors.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 4d1da38270c..b05ea1ee00e 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")