fix(query): windows: explicitly open CONIN/CONOUT when I/O is not a t… #1917
Annotations
30 errors and 6 warnings
lint / lint-soft (macos-latest):
color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 7) (nestif)
|
lint / lint-soft (macos-latest):
query.go#L35
`if runtime.GOOS == "windows"` has complex nested blocks (complexity: 6) (nestif)
|
lint / lint-soft (macos-latest):
color.go#L218
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
|
lint / lint-soft (macos-latest):
compat/color.go#L51
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
|
lint / lint-soft (macos-latest):
query.go#L40
Magic number: 0o644, in <argument> detected (mnd)
|
lint / lint-soft (macos-latest):
query.go#L47
Magic number: 0o644, in <argument> detected (mnd)
|
lint / lint-soft (macos-latest):
terminal.go#L32
Magic number: 11, in <case> detected (mnd)
|
lint / lint-soft (macos-latest):
color.go#L78
Magic number: 16, in <condition> detected (mnd)
|
lint / lint-soft (macos-latest):
color.go#L80
Magic number: 256, in <condition> detected (mnd)
|
lint / lint-soft (macos-latest):
terminal.go#L34
Magic number: 2, in <condition> detected (mnd)
|
lint / lint-soft (ubuntu-latest):
color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 7) (nestif)
|
lint / lint-soft (ubuntu-latest):
query.go#L35
`if runtime.GOOS == "windows"` has complex nested blocks (complexity: 6) (nestif)
|
lint / lint-soft (ubuntu-latest):
color.go#L218
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
|
lint / lint-soft (ubuntu-latest):
compat/color.go#L51
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
|
lint / lint-soft (ubuntu-latest):
query.go#L40
Magic number: 0o644, in <argument> detected (mnd)
|
lint / lint-soft (ubuntu-latest):
query.go#L47
Magic number: 0o644, in <argument> detected (mnd)
|
lint / lint-soft (ubuntu-latest):
terminal.go#L32
Magic number: 11, in <case> detected (mnd)
|
lint / lint-soft (ubuntu-latest):
color.go#L78
Magic number: 16, in <condition> detected (mnd)
|
lint / lint-soft (ubuntu-latest):
color.go#L80
Magic number: 256, in <condition> detected (mnd)
|
lint / lint-soft (ubuntu-latest):
terminal.go#L34
Magic number: 2, in <condition> detected (mnd)
|
lint / lint-soft (windows-latest):
color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 7) (nestif)
|
lint / lint-soft (windows-latest):
query.go#L35
`if runtime.GOOS == "windows"` has complex nested blocks (complexity: 6) (nestif)
|
lint / lint-soft (windows-latest):
color.go#L218
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
|
lint / lint-soft (windows-latest):
compat/color.go#L51
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
|
lint / lint-soft (windows-latest):
query.go#L40
Magic number: 0o644, in <argument> detected (mnd)
|
lint / lint-soft (windows-latest):
query.go#L47
Magic number: 0o644, in <argument> detected (mnd)
|
lint / lint-soft (windows-latest):
terminal.go#L32
Magic number: 11, in <case> detected (mnd)
|
lint / lint-soft (windows-latest):
color.go#L78
Magic number: 16, in <condition> detected (mnd)
|
lint / lint-soft (windows-latest):
color.go#L80
Magic number: 256, in <condition> detected (mnd)
|
lint / lint-soft (windows-latest):
terminal.go#L34
Magic number: 2, in <condition> detected (mnd)
|
lint / lint-soft (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
|
lint / lint (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
|
lint / lint-soft (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
|
lint / lint (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
|
lint / lint (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\lipgloss\lipgloss. Supported file pattern: go.sum
|
lint / lint-soft (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\lipgloss\lipgloss. Supported file pattern: go.sum
|