Skip to content

refactor: add more linters#24

Merged
dhth merged 21 commits intomainfrom
add-more-linters
Sep 17, 2024
Merged

refactor: add more linters#24
dhth merged 21 commits intomainfrom
add-more-linters

Conversation

@dhth
Copy link
Owner

@dhth dhth commented Sep 14, 2024

No description provided.

Repository owner deleted a comment from github-actions bot Sep 14, 2024
@github-actions
Copy link

github-actions bot commented Sep 14, 2024

dstlled-diff

5c52f68..515efa9 -- **.go

expand
diff --git a/5c52f685/cmd/root.go b/515efa97/cmd/root.go
index 7e245d5..a1c36f6 100644
--- a/5c52f685/cmd/root.go
+++ b/515efa97/cmd/root.go
@@ -1,2 +1 @@
-func die(msg string, args ...any)
-func Execute()
+func Execute() error
diff --git a/5c52f685/cueitup.go b/515efa97/main.go
similarity index 100%
rename from 5c52f685/cueitup.go
rename to 515efa97/main.go
diff --git a/5c52f685/ui/model/cmds.go b/515efa97/ui/model/cmds.go
index 35aaf4d..e429709 100644
--- a/5c52f685/ui/model/cmds.go
+++ b/515efa97/ui/model/cmds.go
@@ -1,2 +1,2 @@
-func DeleteMessages(client *sqs.Client, queueUrl string, messages []types.Message) tea.Cmd
-func GetQueueMsgCount(client *sqs.Client, queueUrl string) tea.Cmd
+func DeleteMessages(client *sqs.Client, queueURL string, messages []types.Message) tea.Cmd
+func GetQueueMsgCount(client *sqs.Client, queueURL string) tea.Cmd
@@ -8 +8 @@ func hideHelp(interval time.Duration) tea.Cmd
-func (m model) FetchMessages(maxMessages int32, waitTime int32) tea.Cmd
+func (m Model) FetchMessages(maxMessages int32, waitTime int32) tea.Cmd
diff --git a/5c52f685/ui/model/initial.go b/515efa97/ui/model/initial.go
index 1381c76..7654528 100644
--- a/5c52f685/ui/model/initial.go
+++ b/515efa97/ui/model/initial.go
@@ -1 +1 @@
-func InitialModel(sqsClient *sqs.Client, queueUrl string, msgConsumptionConf MsgConsumptionConf) model
+func InitialModel(sqsClient *sqs.Client, queueURL string, msgConsumptionConf MsgConsumptionConf) Model
diff --git a/5c52f685/ui/model/model.go b/515efa97/ui/model/model.go
index 30e48cb..992323e 100644
--- a/5c52f685/ui/model/model.go
+++ b/515efa97/ui/model/model.go
@@ -8 +8 @@ type MsgConsumptionConf struct {
-type model struct {
+type Model struct {
@@ -11 +11 @@ type model struct {
-	queueUrl             string
+	queueURL             string
@@ -38 +38 @@ type model struct {
-func (m model) Init() tea.Cmd
+func (m Model) Init() tea.Cmd
diff --git a/5c52f685/ui/model/msgs.go b/515efa97/ui/model/msgs.go
index 38d7c0c..48a036f 100644
--- a/5c52f685/ui/model/msgs.go
+++ b/515efa97/ui/model/msgs.go
@@ -1,2 +1,4 @@
-type MsgCountTickMsg struct{}
-type HideHelpMsg struct{}
+type (
+	MsgCountTickMsg struct{}
+	HideHelpMsg     struct{}
+)
diff --git a/5c52f685/ui/model/update.go b/515efa97/ui/model/update.go
index bf16682..3a8f3d0 100644
--- a/5c52f685/ui/model/update.go
+++ b/515efa97/ui/model/update.go
@@ -1 +1 @@
-func (m model) Update(tea.Model, tea.Cmd)
+func (m Model) Update(tea.Model, tea.Cmd)
diff --git a/5c52f685/ui/model/view.go b/515efa97/ui/model/view.go
index c62ab48..80c398e 100644
--- a/5c52f685/ui/model/view.go
+++ b/515efa97/ui/model/view.go
@@ -1 +1 @@
-func (m model) View() string
+func (m Model) View() string
diff --git a/5c52f685/ui/ui.go b/515efa97/ui/ui.go
index f8e0ecf..ebdc12a 100644
--- a/5c52f685/ui/ui.go
+++ b/515efa97/ui/ui.go
@@ -1 +1 @@
-func RenderUI(sqsClient *sqs.Client, queueUrl string, msgConsumptionConf model.MsgConsumptionConf)
+func RenderUI(sqsClient *sqs.Client, queueURL string, msgConsumptionConf model.MsgConsumptionConf) error

@dhth dhth merged commit 11a0436 into main Sep 17, 2024
@dhth dhth deleted the add-more-linters branch September 17, 2024 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant