Skip to content

Commit f3b93ae

Browse files
committed
fixed typos and co-pilot recommendations.
1 parent 7beddf7 commit f3b93ae

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

cmd/apply_overlay.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023-2024 Princess Beef Heavy Industries, LLC / Dave Shanley
1+
// Copyright 2023-2025 Princess Beef Heavy Industries, LLC / Dave Shanley
22
// https://pb33f.io
33

44
// Copyright 2022 Dave Shanley / Quobix
@@ -257,14 +257,14 @@ func runApplyOverlay(cmd *cobra.Command, args []string) error {
257257
return nil
258258
}
259259

260-
// maxOverlaySize is the maximum size for remote overlay downloads (1GB)
260+
// maxOverlaySize is the maximum size for remote overlay downloads (1 GiB)
261261
const maxOverlaySize = 1024 * 1024 * 1024
262262

263263
// defaultHTTPTimeout is the timeout for HTTP requests when no custom client is configured
264264
const defaultHTTPTimeout = 30 * time.Second
265265

266266
// fetchOverlay reads overlay content from a local file or remote URL.
267-
// Remote URLs are limited to http/https schemes and 10MB maximum size.
267+
// Remote URLs are limited to http/https schemes and 1 GiB maximum size.
268268
func fetchOverlay(urlOrPath string, httpClientConfig utils.HTTPClientConfig) ([]byte, error) {
269269
// Check if it's a remote URL (only http/https allowed)
270270
if strings.HasPrefix(urlOrPath, "http://") || strings.HasPrefix(urlOrPath, "https://") {

cmd/lint_render_summary_view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func renderResultBox(errors, warnings, informs, fixesApplied int) {
406406
} else if warnings > 0 {
407407
message := fmt.Sprintf("\u25B2 Passed, but with %s warnings and %s informs.%s",
408408
humanize.Comma(int64(warnings)), humanize.Comma(int64(informs)), addFixCount(fixesApplied))
409-
style := createResultBoxStyle(color2.RBGYellow, color2.RGBDarkYellow)
409+
style := createResultBoxStyle(color2.RGBYellow, color2.RGBDarkYellow)
410410
fmt.Println(style.Render(messageStyle.Render(message)))
411411
} else if informs > 0 {
412412
message := fmt.Sprintf("\u25CF Passed, with %s informs.%s", humanize.Comma(int64(informs)), addFixCount(fixesApplied))

color/styles.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ var (
1717
StyleColumnNumber = lipgloss.NewStyle().Foreground(RGBLightGrey)
1818
StyleLocationSeparator = lipgloss.NewStyle().Foreground(RGBLightGrey)
1919
StyleLogError = lipgloss.NewStyle().Foreground(RGBRed).Bold(true)
20-
StyleLogWarn = lipgloss.NewStyle().Foreground(RBGYellow).Italic(true)
20+
StyleLogWarn = lipgloss.NewStyle().Foreground(RGBYellow).Italic(true)
2121
StyleLogInfo = lipgloss.NewStyle().Foreground(RGBBlue).Italic(true)
2222
StyleLogDebug = lipgloss.NewStyle().Foreground(RGBGrey).Italic(true)
2323
StyleSeverityError = lipgloss.NewStyle().Foreground(RGBRed)
24-
StyleSeverityWarning = lipgloss.NewStyle().Foreground(RBGYellow)
24+
StyleSeverityWarning = lipgloss.NewStyle().Foreground(RGBYellow)
2525
StyleSeverityInfo = lipgloss.NewStyle().Foreground(RGBBlue)
2626
StyleSelectedRow = lipgloss.NewStyle().Foreground(RGBMutedPink)
2727
StylePathQuoted = lipgloss.NewStyle().Foreground(RGBLightGrey).Italic(true)
2828
StylePathArrow = lipgloss.NewStyle().Foreground(RGBRed)
2929
StylePathRef = lipgloss.NewStyle().Foreground(RGBLightGrey)
3030
StyleSyntaxKey = lipgloss.NewStyle().Foreground(RGBBlue).Bold(true)
3131
StyleSyntaxString = lipgloss.NewStyle().Foreground(RGBGreen)
32-
StyleSyntaxNumber = lipgloss.NewStyle().Foreground(RBGYellow).Bold(true)
32+
StyleSyntaxNumber = lipgloss.NewStyle().Foreground(RGBYellow).Bold(true)
3333
StyleSyntaxBool = lipgloss.NewStyle().Foreground(RGBGrey).Italic(true).Bold(true)
3434
StyleSyntaxComment = lipgloss.NewStyle().Foreground(RGBPink).Italic(true)
3535
StyleSyntaxDash = lipgloss.NewStyle().Foreground(RGBPink)
3636
StyleSyntaxDefault = lipgloss.NewStyle().Foreground(RGBPink)
3737
StyleSyntaxSingleQuote = lipgloss.NewStyle().Foreground(RGBPink).Italic(true)
3838
StyleSyntaxRef = lipgloss.NewStyle().Foreground(RGBGreen).Background(RGBDarkGrey).Bold(true)
3939
StyleStatusOK = lipgloss.NewStyle().Foreground(RGBGreen)
40-
StyleStatusWarn = lipgloss.NewStyle().Foreground(RBGYellow)
40+
StyleStatusWarn = lipgloss.NewStyle().Foreground(RGBYellow)
4141
StyleActionRemove = lipgloss.NewStyle().Foreground(RGBRed)
4242
)
4343

color/terminal_colors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var (
8888
RGBPink = OrigRGBPink
8989
RGBRed = OrigRGBRed
9090
RGBDarkRed = OrigRGBDarkRed
91-
RBGYellow = OrigRGBYellow
91+
RGBYellow = OrigRGBYellow
9292
RGBDarkYellow = OrigRGBDarkYellow
9393
RGBGreen = OrigRGBGreen
9494
RGBDarkGreen = OrigRGBDarkGreen
@@ -744,7 +744,7 @@ func DisableColors() {
744744
RGBPink = lipgloss.NoColor{}
745745
RGBRed = lipgloss.NoColor{}
746746
RGBDarkRed = lipgloss.Color("238")
747-
RBGYellow = lipgloss.NoColor{}
747+
RGBYellow = lipgloss.NoColor{}
748748
RGBDarkYellow = lipgloss.Color("238")
749749
RGBGreen = lipgloss.NoColor{}
750750
RGBDarkGreen = lipgloss.Color("238")

tui/lint_dashboard.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ func (m *ViolationResultTableModel) buildTableView() string {
555555
builder.WriteString(" ")
556556

557557
// Warnings (yellow triangle)
558-
warningStyle := lipgloss.NewStyle().Foreground(color.RBGYellow)
558+
warningStyle := lipgloss.NewStyle().Foreground(color.RGBYellow)
559559
builder.WriteString(warningStyle.Render(fmt.Sprintf("▲ %d", warningCount)))
560560

561561
builder.WriteString(" ")
@@ -586,7 +586,7 @@ func (m *ViolationResultTableModel) buildTableView() string {
586586

587587
// Modifications (yellow tilde)
588588
if m.changeStats.Modified > 0 {
589-
modifiedStyle := lipgloss.NewStyle().Foreground(color.RBGYellow)
589+
modifiedStyle := lipgloss.NewStyle().Foreground(color.RGBYellow)
590590
builder.WriteString(modifiedStyle.Render(fmt.Sprintf("~ %d", m.changeStats.Modified)))
591591
builder.WriteString(" ")
592592
}

tui/styled_box.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ func RenderStyledBox(message string, boxType BoxType, noStyle bool) {
7474
case BoxTypeWarning:
7575
boxStyle = lipgloss.NewStyle().
7676
Width(boxWidth).
77-
Foreground(color.RBGYellow).
77+
Foreground(color.RGBYellow).
7878
BorderStyle(lipgloss.NormalBorder()).
79-
BorderForeground(color.RBGYellow).
79+
BorderForeground(color.RGBYellow).
8080
Bold(true)
8181
case BoxTypeInfo:
8282
boxStyle = lipgloss.NewStyle().

tui/text_utilities.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func GetSeverityInfo(severity string) SeverityInfo {
3737
return SeverityInfo{
3838
Icon: "▲",
3939
Text: "▲ warning",
40-
IconStyle: lipgloss.NewStyle().Foreground(color.RBGYellow).Bold(true),
41-
TextStyle: lipgloss.NewStyle().Foreground(color.RBGYellow),
40+
IconStyle: lipgloss.NewStyle().Foreground(color.RGBYellow).Bold(true),
41+
TextStyle: lipgloss.NewStyle().Foreground(color.RGBYellow),
4242
}
4343
default: // model.SeverityInfo and others
4444
return SeverityInfo{
@@ -64,8 +64,8 @@ func GetSeverityInfoFromText(severityText string) SeverityInfo {
6464
return SeverityInfo{
6565
Icon: "▲",
6666
Text: severityText,
67-
IconStyle: lipgloss.NewStyle().Foreground(color.RBGYellow).Bold(true),
68-
TextStyle: lipgloss.NewStyle().Foreground(color.RBGYellow),
67+
IconStyle: lipgloss.NewStyle().Foreground(color.RGBYellow).Bold(true),
68+
TextStyle: lipgloss.NewStyle().Foreground(color.RGBYellow),
6969
}
7070
case "● info":
7171
return SeverityInfo{

0 commit comments

Comments
 (0)