Skip to content

fix: update lint

fix: update lint #96

Triggered via push March 5, 2024 00:50
Status Failure
Total duration 44s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
lint: filesystem/filesystem.go#L176
Function 'Zip' is too long (131 > 60) (funlen)
lint: filesystem/filesystem.go#L311
Function 'Unzip' is too long (65 > 60) (funlen)
lint: statusbar/statusbar.go#L14
Comment should end in a period (godot)
lint: image/image.go#L112
Comment should end in a period (godot)
lint: filesystem/filesystem.go#L331
G305: File traversal when extracting zip/tar archive (gosec)
lint: filesystem/filesystem.go#L360
G110: Potential DoS vulnerability via decompression bomb (gosec)
lint: icons/glyphs.go#L201
line is 126 characters (lll)
lint: filesystem/filesystem.go#L224
`if info.IsDir()` has complex nested blocks (complexity: 13) (nestif)
lint: filesystem/filesystem.go#L78
calculated cyclomatic complexity for function GetDirectoryListingByType is 17, max is 10 (cyclop)
lint: filesystem/filesystem.go#L380
calculated cyclomatic complexity for function CopyFile is 13, max is 10 (cyclop)
lint: teacup.go#L1
package-comments: should have a package comment (revive)
lint: icons/glyphs.go#L18
unused-parameter: parameter 'f' seems to be unused, consider removing or renaming it as _ (revive)
lint: filesystem/filesystem.go#L257
unused-parameter: parameter 'err' seems to be unused, consider removing or renaming it as _ (revive)
lint: filesystem/filesystem.go#L465
unused-parameter: parameter 'path' seems to be unused, consider removing or renaming it as _ (revive)
lint: help/help.go#L17
exported: exported type TitleColor should have comment or be unexported (revive)
lint: filetree/filetree.go#L12
exported: exported type Model should have comment or be unexported (revive)
lint: filetree/filetree.go#L28
exported: exported function New should have comment or be unexported (revive)
lint: filetree/filetree.go#L41
exported: exported method Model.Init should have comment or be unexported (revive)
lint: filetree/filetree.go#L45
exported: exported method Model.Update should have comment or be unexported (revive)
lint: filetree/filetree.go#L73
exported: exported method Model.View should have comment or be unexported (revive)