Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed deadcode as per https://github.com/overmindtech/golangci-lint_config/pull/4 #658

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ jobs:
- name: Go Init
uses: ./.github/actions/go_init

- name: find deadcode
run: |
go install golang.org/x/tools/cmd/deadcode@latest
deadcode . | tee out && [ ! -s out ]

# get .golangci.yml from github.com/overmindtech/golangci-lint_config
- name: Get .golangci.yml from github.com/overmindtech/golangci-lint_configs
run: |
Expand Down
5 changes: 0 additions & 5 deletions cmd/changes_submit_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ type TfData struct {
Values map[string]any
}

type plannedChangeGroups struct {
supported map[string][]*sdp.MappedItemDiff
unsupported map[string][]*sdp.MappedItemDiff
}

func changeTitle(arg string) string {
if arg != "" {
// easy, return the user's choice
Expand Down
10 changes: 0 additions & 10 deletions cmd/logging.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
package cmd

import (
"os"

"github.com/mattn/go-isatty"
"github.com/ttacon/chalk"
)

var tty bool

func init() {
// Detect if we're in a TTY or not
tty = isatty.IsTerminal(os.Stdout.Fd())
}

var (
// Styles
Underline = TextStyle{chalk.Underline}
Expand Down
6 changes: 0 additions & 6 deletions cmd/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,6 @@ func MarkdownStyle() ansi.StyleConfig {
}
}

var titleStyle = lipgloss.NewStyle().Foreground(ColorPalette.BgMain).Bold(true)
var textStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelBase)
var addedLineStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelControl).Background(ColorPalette.BgSuccess)
var deletedLineStyle = lipgloss.NewStyle().Background(ColorPalette.BgDanger).Foreground(ColorPalette.LabelControl)
var containerStyle = lipgloss.NewStyle().PaddingLeft(2).PaddingTop(2)

func styleH1() lipgloss.Style {
return lipgloss.NewStyle().
Foreground(lipgloss.Color("#ffffff")).
Expand Down
Loading