fix: Adds comments to formula template to conform to 'brew audit --strict --online' (#2001)

* fix: Adds comments to formula template to conform to 'brew audit'

* Adding expected output to formula testdata files
This commit is contained in:
Justin Hammond
2021-01-07 09:14:50 -03:00
committed by GitHub
parent a52b1482b4
commit 49c17befcf
13 changed files with 40 additions and 1 deletions
+4 -1
View File
@@ -29,7 +29,10 @@ type downloadable struct {
SHA256 string
}
const formulaTemplate = `# This file was generated by GoReleaser. DO NOT EDIT.
const formulaTemplate = `# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
{{ if .CustomRequire -}}
require_relative "{{ .CustomRequire }}"
{{ end -}}
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class BinaryOverridden < Formula
desc "A run pipe test formula"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CustomBlock < Formula
desc "A run pipe test formula and FOO=foo_is_bar"
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CustomDownloadStrategy < Formula
desc "A run pipe test formula and FOO=foo_is_bar"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
require_relative "custom_download_strategy"
class CustomRequire < Formula
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Default < Formula
desc "A run pipe test formula and FOO=foo_is_bar"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class DefaultGitlab < Formula
desc "A run pipe test formula and FOO=foo_is_bar"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class FooIsBar < Formula
desc ""
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class MultipleArmv5 < Formula
desc "A run pipe test formula and FOO=foo_is_bar"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class MultipleArmv6 < Formula
desc "A run pipe test formula and FOO=foo_is_bar"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class MultipleArmv7 < Formula
desc "A run pipe test formula and FOO=foo_is_bar"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Test < Formula
desc "Some desc"
+3
View File
@@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Test < Formula
desc "Some desc"