Skip to content

Commit

Permalink
chore: fix some typos in comments (#1897)
Browse files Browse the repository at this point in the history
Signed-off-by: deferdeter <deferdeter@outlook.com>
  • Loading branch information
deferdeter committed Apr 16, 2024
1 parent a6cafab commit cfbe47b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contrib/snmp2cpe/pkg/cpe/cpe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestConvert(t *testing.T) {
want: []string{"cpe:2.3:o:cisco:ios:15.1(4)m4:*:*:*:*:*:*:*"},
},
{
name: "Cisco IOS Vresion 15.5(3)M on Cisco 892J-K9-V02",
name: "Cisco IOS Version 15.5(3)M on Cisco 892J-K9-V02",
args: snmp.Result{
SysDescr0: `Cisco IOS Software, C890 Software (C890-UNIVERSALK9-M), Version 15.5(3)M, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Expand Down
2 changes: 1 addition & 1 deletion detector/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func DetectGitHubSecurityAlerts(r *models.ScanResult, owner, repo, token string,

// https://developer.github.com/v4/previews/#repository-vulnerability-alerts
// To toggle this preview and access data, need to provide a custom media type in the Accept header:
// MEMO: I tried to get the affected version via GitHub API. Bit it seems difficult to determin the affected version if there are multiple dependency files such as package.json.
// MEMO: I tried to get the affected version via GitHub API. Bit it seems difficult to determine the affected version if there are multiple dependency files such as package.json.
// TODO remove this header if it is no longer preview status in the future.
req.Header.Set("Accept", "application/vnd.github.package-deletes-preview+json")
req.Header.Set("Content-Type", "application/json")
Expand Down
2 changes: 1 addition & 1 deletion detector/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func getPlusDiffCves(previous, current models.ScanResult) models.VulnInfos {

// TODO commented out because a bug of diff logic when multiple oval defs found for a certain CVE-ID and same updated_at
// if these OVAL defs have different affected packages, this logic detects as updated.
// This logic will be uncomented after integration with gost https://github.com/vulsio/gost
// This logic will be uncommented after integration with gost https://github.com/vulsio/gost
// } else if isCveFixed(v, previous) {
// updated[v.CveID] = v
// logging.Log.Debugf("fixed: %s", v.CveID)
Expand Down
2 changes: 1 addition & 1 deletion reporter/syslog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestSyslogWriterEncodeSyslog(t *testing.T) {
for j, m := range messages {
e := tt.expectedMessages[j]
if e != m {
t.Errorf("test: %d, Messsage %d: \nexpected %s \nactual %s", i, j, e, m)
t.Errorf("test: %d, Message %d: \nexpected %s \nactual %s", i, j, e, m)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion reporter/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ func getPlusDiffCves(previous, current models.ScanResult) models.VulnInfos {

// TODO commented out because a bug of diff logic when multiple oval defs found for a certain CVE-ID and same updated_at
// if these OVAL defs have different affected packages, this logic detects as updated.
// This logic will be uncomented after integration with gost https://github.com/vulsio/gost
// This logic will be uncommented after integration with gost https://github.com/vulsio/gost
// } else if isCveFixed(v, previous) {
// updated[v.CveID] = v
// logging.Log.Debugf("fixed: %s", v.CveID)
Expand Down
2 changes: 1 addition & 1 deletion tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func RunTui(results models.ScanResults) subcommands.ExitStatus {
func keybindings(g *gocui.Gui) (err error) {
errs := []error{}

// Move beetween views
// Move between views
errs = append(errs, g.SetKeybinding("side", gocui.KeyTab, gocui.ModNone, nextView))
// errs = append(errs, g.SetKeybinding("side", gocui.KeyCtrlH, gocui.ModNone, previousView))
// errs = append(errs, g.SetKeybinding("side", gocui.KeyCtrlL, gocui.ModNone, nextView))
Expand Down

0 comments on commit cfbe47b

Please sign in to comment.