Adrian Ho 2d02c3950f diagnostic: elide stray filenames in subdirs
Usually, the subdirectory name is sufficient info, and the full file list is just noise.

This reduces `brew doctor` output clutter, making it easier for user to paste, and maintainers to parse.

Before:
```
$ brew doctor
[...]
Unexpected header files:
  /usr/local/include/node/cppgc/allocation.h
  /usr/local/include/node/cppgc/common.h
  /usr/local/include/node/cppgc/custom-space.h
  /usr/local/include/node/cppgc/garbage-collected.h
  /usr/local/include/node/cppgc/heap.h
  /usr/local/include/node/cppgc/internal/accessors.h
  /usr/local/include/node/cppgc/internal/api-constants.h
  /usr/local/include/node/cppgc/internal/compiler-specific.h
  /usr/local/include/node/cppgc/internal/finalizer-trait.h
  /usr/local/include/node/cppgc/internal/gc-info.h
  /usr/local/include/node/cppgc/internal/logging.h
  /usr/local/include/node/cppgc/internal/persistent-node.h
  /usr/local/include/node/cppgc/internal/pointer-policies.h
  /usr/local/include/node/cppgc/internal/prefinalizer-handler.h
[about 500 more files]
```
After:
```
$ brew doctor
Unexpected header files:
  /usr/local/include/node/...
```
The full list of stray files can still be viewed with `brew doctor -v`.
2025-01-19 23:19:03 +08:00
..
2025-01-19 11:14:24 +01:00
2024-12-08 10:28:10 -08:00
2024-12-31 00:15:10 +00:00
2025-01-19 12:32:55 +01:00
2025-01-07 17:40:18 +00:00
2025-01-19 12:32:55 +01:00
2025-01-14 08:14:39 -05:00
2025-01-16 15:12:03 -08:00
2025-01-07 16:27:44 +00:00
2025-01-08 14:10:55 +00:00
2024-10-02 10:03:12 -07:00
2024-08-18 19:03:26 -04:00
2024-11-05 16:44:12 +00:00
2024-09-26 14:32:55 -04:00
2024-11-26 14:09:13 -08:00
2024-09-26 14:48:32 -04:00
2024-11-22 21:04:51 -08:00
2025-01-14 08:14:39 -05:00
2025-01-14 08:14:39 -05:00
2025-01-07 17:40:18 +00:00
2024-10-07 19:45:48 -07:00
2024-10-05 12:18:29 -07:00
2024-12-11 11:04:55 -08:00
2025-01-07 17:40:18 +00:00
2024-10-31 15:35:58 +08:00
2024-09-26 16:19:11 -04:00
2024-12-05 14:01:37 +00:00
2024-09-04 22:54:21 +02:00
2025-01-07 17:40:18 +00:00
2024-09-17 12:43:28 +09:00
2024-12-07 10:35:33 -08:00
2025-01-07 17:40:18 +00:00
2024-09-25 16:49:46 +08:00
2024-08-19 09:56:50 -07:00
2024-09-27 12:31:59 -04:00

Homebrew Ruby API

This is the API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!