Douglas Eichelberger
89eb891891
Disable false positive
2023-04-25 09:26:24 -07:00
Douglas Eichelberger
08af78a2a5
brew style --fix
2023-04-25 09:26:24 -07:00
Sam Ford
942f419a48
ResourceAuditor: Fix #audit_head_branch error
...
The existing logic in `#audit_head_branch` for identifying the `HEAD`
branch in a Git repository will give an ```undefined method `[]' for
nil:NilClass``` error when a repository doesn't provide this
reference. Expected output is as follows:
```
ref: refs/heads/master HEAD
1a8f9ac700873d1a08de31a17a2fd654245d5085 HEAD
```
However, I encountered this error for a repository with the following
output (i.e., where no symref is provided for HEAD):
```
f86be659718c0cd0a67f88b42f07044c23d0d028 HEAD
```
This commit resolves the error by modifying the related logic to
account for a `nil` value.
2022-10-17 13:28:20 -04:00
Rylan Polster
ea1f2098ac
Move HOMEBREW_SIMULATE_MACOS_ON_LINUX
handling to SimulateSystem
2022-07-28 15:04:25 -04:00
Sam Ford
d649026c10
ResourceAuditor: Skip branch error when using tag
2021-10-20 12:46:53 -04:00
Bo Anderson
f0e4fb9cb8
resource_auditor: restore curl HTTP mirror auditing
2021-10-05 13:27:42 +01:00
Michka Popoff
07df4a7e70
Use Homebrew curl for audit and fetch when specified in the formula
...
Introduce new :using for urls
2021-08-17 13:35:55 +02:00
Nanda H Krishna
5191199957
resource_auditor: use if
instead of unless
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-08-12 19:28:06 +05:30
Nanda H Krishna
f69f9be233
Add allowlist, make branch:
mandatory
2021-08-12 12:43:22 +05:30
Nanda H Krishna
d75320069f
resource_auditor: add audit for HEAD default branch
2021-08-12 12:43:21 +05:30
Sam Ford
a1cf581118
ResourceAuditor: Allow only/except options
2021-06-16 10:30:52 -04:00
Kenneth Chew
af594739dc
audit: specify which URL has a content problem in problem message
2021-04-22 13:52:18 +01:00
Mike McQuaid
d73351251c
Deprecate, disable, delete code for next major/minor version.
...
Do the usual dance for bumping our major/minor version.
2021-04-09 09:30:36 +01:00
nandahkrishna
8e5451df2f
style: use parentheses for assignment in conditions
2021-02-12 18:33:37 +05:30
Rylan Polster
180d8ca2b2
utils/curl: use specs when checking http content problems
2021-01-23 17:30:59 -05:00
Alexander Bayandin
8717f82b9d
dev-cmd/audit: add audit for checksum
2020-12-08 23:42:46 +00:00
Markus Reiter
5be4c9b5e0
Upgrade typed
sigils.
2020-11-25 17:04:19 +01:00
Markus Reiter
dc11f02e16
Move auditor classes into separate files.
2020-11-18 11:22:27 +01:00