Code Monkey home page Code Monkey logo

ghost's People

Contributors

elliotchance avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

forkkit

ghost's Issues

Ignore issue

Is there a way to tag a line with a comment to ignore a complex line if you consider it valid, similar to what you can do with gometalinter?

// nolint: gosec

panic: (*ast.ChanType) (0x10de580,0xc000067860)

Gave it a try, but can't run:

`ghost mlxsh.go router_interface.go shellmode.go shell_autocomplete.go
panic: (*ast.ChanType) (0x10de580,0xc000067860)

goroutine 1 [running]:
main.exprComplexity(0x1115f20, 0xc000067860, 0x0)
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:247 +0x66d
main.exprsComplexity(0xc0000a1ae0, 0x2, 0x2, 0xc0000b1de0)
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:165 +0x6c
main.exprComplexity(0x1115ea0, 0xc00004de80, 0x0)
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:198 +0x627
main.exprsComplexity(0xc000043190, 0x1, 0x1, 0x0)
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:165 +0x6c
main.LineComplexity(0x1115ca0, 0xc00004dec0, 0x0)
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:83 +0x808
main.checkLine(0x1115ca0, 0xc00004dec0, 0x2201)
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:68 +0x35
main.checkFunction(0xc0000b30e0)
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:63 +0x7e
main.main()
/Users/joerg/golang/src/github.com/elliotchance/ghost/main.go:50 +0x2f8`

blogpost: social share links are broken

on http://elliot.land/post/ghost-locate-and-fix-overly-complex-lines-of-code-in-go you have twitter/fb/google buttons

they are embedding relative, not absolute URI's, so when I clicked the twitter one, Twitter's input box contains only: Ghost: Locate And Fix Overly Complex Lines of Code In Go rather than post link and/or your twitter handle

that button's current URI is http://twitter.com/share?text=Ghost:%20Locate%20And%20Fix%20Overly%20Complex%20Lines%20of%20Code%20In%20Go&url=/permalink/359adf6386

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.