hiroyuki-sato commented on code in PR #45417:
URL: https://github.com/apache/arrow/pull/45417#discussion_r1938920762


##########
.pre-commit-config.yaml:
##########
@@ -141,6 +141,18 @@ repos:
           (
           ?^r/src/arrowExports\.cpp$|
           )
+  - repo: https://github.com/rubocop/rubocop
+    rev: "v1.71.0"
+    hooks:
+      - id: rubocop
+        name: Ruby Format
+        alias: ruby-format
+        args: [--autocorrect]
+        exclude: >-
+          (
+          ?^dev/tasks/homebrew-formulae/.*\.rb$|
+          )
+        files: .*\.rb$

Review Comment:
   Removed `files` part. It seems to work well.
   
   ```
   pre-commit run --verbose --all-files --color=always --show-diff-on-failure 
ruby-format
   Ruby 
Format..............................................................Passed
   - hook id: rubocop
   - duration: 1.66s
   
   Inspecting 84 files
   
....................................................................................
   
   84 files inspected, no offenses detected
   Inspecting 84 files
   
....................................................................................
   
   84 files inspected, no offenses detected
   Inspecting 84 files
   
....................................................................................
   
   84 files inspected, no offenses detected
   Inspecting 84 files
   
....................................................................................
   
   84 files inspected, no offenses detected
   Inspecting 84 files
   
....................................................................................
   
   84 files inspected, no offenses detected
   Inspecting 84 files
   
....................................................................................
   
   84 files inspected, no offenses detected
   Inspecting 84 files
   
....................................................................................
   
   84 files inspected, no offenses detected
   Inspecting 77 files
   .............................................................................
   
   77 files inspected, no offenses detected
   
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to