Subject: [bug#75937] [PATCH v3 57/90] gnu: Add ruby-rubocop-factory-bot.

From: Nicolas Graves <[email-masked]>
Date: Fri, 31 Jan 2025 07:53:52 +0100

* gnu/packages/ruby.scm (ruby-rubocop-factory-bot): New variable.
---
 gnu/packages/ruby.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a8c5d3f119..f7664e6c49 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2058,6 +2058,25 @@ (define-public ruby-rubocop-capybara
            ruby-simplecov
            ruby-yard))))
 
+(define-public ruby-rubocop-factory-bot
+  (package
+    (name "ruby-rubocop-factory-bot")
+    (version "2.26.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "rubocop-factory_bot" version))
+       (sha256
+        (base32 "1aljadsjx7affcarzbhz7pydpy6fgqb8hl951y0cmrffxpa3rqcd"))))
+    (build-system ruby-build-system)
+    (arguments '(#:tests? #f))  ; No tests bundled.
+    (synopsis "Code style checking for factory_bot files")
+    (description
+     "This package provides a plugin for the @code{RuboCop} code style
+enforcing & linting tool for @code{factory_bot} files.")
+    (home-page "https://github.com/rubocop/rubocop-factory_bot")
+    (license license:expat)))
+
 ;;; A minimal variant used to build ruby-rubocop itself.
 (define ruby-rubocop-rake-minimal
   (package
-- 
2.48.1