Isabell Long 279a4df6c3 Match the "formula name in description" on word boundaries
- The regexp for the "check if formula name is used in formula's
  description" cop matches every instance of the formula name if it
  exists, whether it's in a word or not.
- For example, the formula `mon` has the description "Monitor
  hosts/services/whatever and alert about problems". This makes
  `brew audit --strict` complain because it matches "Monitor",
  which isn't the formula name! The formula `pass` has the description
  "Password manager".  Again, the strict audit matches "Password",
  which isn't an issue.
- Instead, this change matches on a word boundary, so it will match
  `mon:`, or `mon `, but not "Monitor", or, for example, "harmony".
- I've changed the tests to account for this change.
2017-05-29 00:26:47 +01:00
..
2017-05-24 23:54:36 +02:00
2017-05-08 13:37:28 +02:00
2017-04-22 16:28:07 +01:00
2017-05-24 23:54:36 +02:00
2017-05-13 11:42:01 +01:00
2017-05-24 09:12:21 -07:00
2017-05-22 02:51:17 +02:00
2017-04-22 16:28:07 +01:00
2017-05-02 19:03:03 +01:00
2017-04-22 16:28:07 +01:00
2017-02-23 10:49:20 -08:00
2017-04-23 15:10:18 +01:00
2017-04-22 16:28:07 +01:00
2017-05-01 10:58:26 -07:00
2017-04-30 21:11:28 +02:00
2017-05-22 20:39:17 +01:00
2017-05-15 17:23:40 +02:00
2017-05-09 20:00:11 +01:00
2017-04-02 17:02:56 +01:00
2017-04-25 13:40:40 +01:00
2017-05-08 13:37:28 +02:00

Homebrew's Formula API

This is the (partially) documented public 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!