GithubHelp home page GithubHelp logo

Comments (6)

robertmeta avatar robertmeta commented on July 30, 2024 1

Yep -- we are planning to do a gometalinter over the whole codebase in the near future and chase down all the issues.

from cayley.

kortschak avatar kortschak commented on July 30, 2024 1

I'd suggest a stronger approach to linting that what you have there. The golangci-lint metalinter does a good job and allows exclusions. The SAAS that they used to provide doesn't exist anymore, but it can be replicated in your CI. We do it like so: https://github.com/gonum/gonum/blob/master/.travis/script.d/check-lint.sh

from cayley.

iddan avatar iddan commented on July 30, 2024

Now there are only documentation warnings:

imports.go:5:2: a blank import should be only in a main or test package, or have a comment justifying it
imports.go:8:2: a blank import should be only in a main or test package, or have a comment justifying it
imports.go:12:2: exported var StartMorphism should have comment or be unexported
imports.go:18:6: exported type Iterator should have comment or be unexported
imports.go:19:6: exported type QuadStore should have comment or be unexported
imports.go:20:6: exported type QuadWriter should have comment or be unexported
imports.go:22:6: exported type Path should have comment or be unexported
imports.go:24:6: exported type Handle should have comment or be unexported
imports.go:29:1: exported method Handle.Close should have comment or be unexported
imports.go:35:1: exported function Triple should have comment or be unexported
imports.go:39:1: exported function Quad should have comment or be unexported
imports.go:43:1: exported function NewGraph should have comment or be unexported
imports.go:55:1: exported function NewMemoryGraph should have comment or be unexported

Once they will be resolved we can CI on golint to make sure we don't introduce new errors.

from cayley.

iddan avatar iddan commented on July 30, 2024

Actually, I ran only on the top level

from cayley.

iddan avatar iddan commented on July 30, 2024

Lint should be done by bash lint.sh as it has defined ignored patterns.

from cayley.

iddan avatar iddan commented on July 30, 2024

This looks really cool. If you'd like to integrate this approach it would be very welcome.

from cayley.

Related Issues (20)

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.