elliotchance / ghost Goto Github PK
View Code? Open in Web Editor NEW๐ป Locate and fix overly complex lines of code in Go.
๐ป Locate and fix overly complex lines of code in Go.
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
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`
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.