thestrukture/IDE

View on GitHub
api/methods/legacy.go

Summary

Maintainability
A
55 mins
Test Coverage
F
7%

Function Zipit has 9 return statements (exceeds 4 allowed).
Open

func Zipit(source, target string) error {
    zipfile, err := os.Create(target)
    if err != nil {
        return err
    }
Severity: Major
Found in api/methods/legacy.go - About 55 mins to fix

    exported method Reader.OnError should have comment or be unexported
    Open

    func (r *Reader) OnError(b []byte) bool {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function GetApps should have comment or be unexported
    Open

    func GetApps() []types.App {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function GetPlugins should have comment or be unexported
    Open

    func GetPlugins() []string {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function AddConnection should have comment or be unexported
    Open

    func AddConnection(c *websocket.Conn) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function GetLogs should have comment or be unexported
    Open

    func GetLogs(pkg string) []types.DebugObj {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    comment on exported function Zipit should be of the form "Zipit ..."
    Open

    // http://blog.ralch.com/tutorial/golang-working-with-zip/
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function FindinString should have comment or be unexported
    Open

    func FindinString(data string, match string) int {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function GenerateComposeFile should have comment or be unexported
    Open

    func GenerateComposeFile(r *http.Request) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported method Reader.OnTimeout should have comment or be unexported
    Open

    func (r *Reader) OnTimeout() {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function SaveKanBan should have comment or be unexported
    Open

    func SaveKanBan(pkg, raw string) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function PushGit should have comment or be unexported
    Open

    func PushGit(pkg string) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function Walk should have comment or be unexported
    Open

    func Walk() {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported type Reader should have comment or be unexported
    Open

    type Reader struct {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function ProcessLog should have comment or be unexported
    Open

    func ProcessLog(pkg, buildLog string) types.DebugObj {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported var DockerSmall should have comment or be unexported
    Open

    var DockerSmall = `FROM %s as builder
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function GetKanBan should have comment or be unexported
    Open

    func GetKanBan(pkg string) (ret map[string]interface{}) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function SaveApps should have comment or be unexported
    Open

    func SaveApps(app interface{}) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function CommitGit should have comment or be unexported
    Open

    func CommitGit(pkg, message string) bool {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function Broadcast should have comment or be unexported
    Open

    func Broadcast(m []byte) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported var Addjsstr should have comment or be unexported
    Open

    var Addjsstr = ` <script type="text/javascript">
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported method Reader.OnData should have comment or be unexported
    Open

    func (r *Reader) OnData(b []byte) bool {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function ClearLogs should have comment or be unexported
    Open

    func ClearLogs(pkg string) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function SavePlugins should have comment or be unexported
    Open

    func SavePlugins(plugins []string) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function FindString should have comment or be unexported
    Open

    func FindString(fname string, match int) string {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported var DockerLarge should have comment or be unexported
    Open

    var DockerLarge = `FROM %s
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function FindLine should have comment or be unexported
    Open

    func FindLine(fname string, match string) int {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    exported function AddtoLogs should have comment or be unexported
    Open

    func AddtoLogs(log types.DebugObj) {
    Severity: Minor
    Found in api/methods/legacy.go by golint

    There are no issues that match your filters.

    Category
    Status