From 0302a6bc7cc72aed9b729e9d465856e65b6c8b2c Mon Sep 17 00:00:00 2001
From: Mike McQuaid
Date: Tue, 2 Aug 2016 10:59:39 +0100
Subject: audit: add --new-formula option.
Rather than nudge people to run `--strict` and then ignore some of the
results sometimes (e.g. GitHub repository notability) instead add a
dedicated `--new-formula` option that implies this is a one-time
advisory check.
---
Library/Homebrew/cmd/audit.rb | 21 ++++++++++++++-------
Library/Homebrew/cmd/create.rb | 2 +-
Library/Homebrew/dev-cmd/test-bot.rb | 2 +-
share/doc/homebrew/brew.1.html | 12 +++++++-----
share/man/man1/brew.1 | 11 ++++-------
5 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 5171ec711..5827c054c 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -1,15 +1,19 @@
-#: * `audit` [`--strict`] [`--online`] [`--display-cop-names`] [`--display-filename`] [
analytics (on|off)Turn on/off Homebrew's analytics.
analytics regenerate-uuidRegenerate UUID used in Homebrew's analytics.
audit [--strict] [--online] [--display-cop-names] [--display-filename] [formulae]Check formulae for Homebrew coding style violations. This should be +
audit [--strict] [--online] [--new-formula] [--display-cop-names] [--display-filename] [formulae]Check formulae for Homebrew coding style violations. This should be run before submitting a new formula.
If no formulae are provided, all of them are checked.
If --strict is passed, additional checks are run, including RuboCop
-style checks. This should be used when creating new formulae.
If --online is passed, additional slower checks that require a network
-connection are run. This should be used when creating for new formulae.
If --display-cop-names is passed, the RuboCop cop name for each violation
+connection are run.
+If --new-formula is passed, various additional checks are run that check
+if a new formula is eligable for Homebrew. This should be used when creating
+new formulae and implies --strict and --online.
+If --display-cop-names is passed, the RuboCop cop name for each violation
is included in the output.
If --display-filename is passed, every line of output is prefixed with the
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index b235f7662..877711103 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "BREW" "1" "July 2016" "Homebrew" "brew"
+.TH "BREW" "1" "August 2016" "Homebrew" "brew"
.
.SH "NAME"
\fBbrew\fR \- The missing package manager for OS X
@@ -56,20 +56,17 @@ Turn on/off Homebrew\'s analytics\.
Regenerate UUID used in Homebrew\'s analytics\.
.
.TP
-\fBaudit\fR [\fB\-\-strict\fR] [\fB\-\-online\fR] [\fB\-\-display\-cop\-names\fR] [\fB\-\-display\-filename\fR] [\fIformulae\fR]
+\fBaudit\fR [\fB\-\-strict\fR] [\fB\-\-online\fR] [\fB\-\-new\-formula\fR] [\fB\-\-display\-cop\-names\fR] [\fB\-\-display\-filename\fR] [\fIformulae\fR]
Check \fIformulae\fR for Homebrew coding style violations\. This should be run before submitting a new formula\.
.
.IP
If no \fIformulae\fR are provided, all of them are checked\.
.
.IP
-If \fB\-\-strict\fR is passed, additional checks are run, including RuboCop style checks\. This should be used when creating new formulae\.
+If \fB\-\-strict\fR is passed, additional checks are run, including RuboCop style checks\.
.
.IP
-If \fB\-\-online\fR is passed, additional slower checks that require a network connection are run\. This should be used when creating for new formulae\.
-.
-.IP
-If \fB\-\-display\-cop\-names\fR is passed, the RuboCop cop name for each violation is included in the output\.
+If \fB\-\-online\fR is passed, additional slower checks that require a network connection are run\. If \fB\-\-new\-formula\fR is passed, various additional checks are run that check if a new formula is eligable for Homebrew\. This should be used when creating new formulae and implies \fB\-\-strict\fR and \fB\-\-online\fR\. If \fB\-\-display\-cop\-names\fR is passed, the RuboCop cop name for each violation is included in the output\.
.
.IP
If \fB\-\-display\-filename\fR is passed, every line of output is prefixed with the name of the file or formula being audited, to make the output easy to grep\.
--
cgit v1.2.3