aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-04-05 08:37:43 +0100
committerGitHub2017-04-05 08:37:43 +0100
commit3f5140621223780f03fd37c0c3ba3b883eb318ba (patch)
tree333d1de82180ebe1b773edbe4741642517ce634f /Library/Homebrew/dev-cmd
parentdbc9cd7aa37f3215efa834345445fc0af4df33e2 (diff)
parenta693ca332efcc56e0d7dbb3f43952226225ccf75 (diff)
downloadbrew-3f5140621223780f03fd37c0c3ba3b883eb318ba.tar.bz2
Merge pull request #2242 from GauthamGoli/audit_custom_cops
Port audit_desc audit rules to a cop
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 5f4eda08e..ba6c3f333 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -586,39 +586,6 @@ class FormulaAuditor
problem "New formulae should not use `deprecated_option`."
end
- def audit_desc
- # For now, only check the description when using `--strict`
- return unless @strict
-
- desc = formula.desc
-
- unless desc && !desc.empty?
- problem "Formula should have a desc (Description)."
- return
- end
-
- # Make sure the formula name plus description is no longer than 80 characters
- # Note full_name includes the name of the tap, while name does not
- linelength = "#{formula.name}: #{desc}".length
- if linelength > 80
- problem <<-EOS.undent
- Description is too long. \"name: desc\" should be less than 80 characters.
- Length is calculated as #{formula.name} + desc. (currently #{linelength})
- EOS
- end
-
- if desc =~ /([Cc]ommand ?line)/
- problem "Description should use \"command-line\" instead of \"#{$1}\""
- end
-
- if desc =~ /^([Aa]n?)\s/
- problem "Description shouldn't start with an indefinite article (#{$1})"
- end
-
- return unless desc.downcase.start_with? "#{formula.name} "
- problem "Description shouldn't include the formula name"
- end
-
def audit_homepage
homepage = formula.homepage
@@ -1281,7 +1248,6 @@ class FormulaAuditor
audit_class
audit_specs
audit_revision_and_version_scheme
- audit_desc
audit_homepage
audit_bottle_spec
audit_github_repository