GithubHelp home page GithubHelp logo

Comments (19)

sils avatar sils commented on August 26, 2024

From @AbdealiJK on February 9, 2016 5:43

The skip condition to be to check if go help vet returns 0 or not

from coala-bears.

sils avatar sils commented on August 26, 2024

From @NalinG on February 9, 2016 10:11

Hi, I would like to work on this issue.
I checked the GoVetBear.py file but is just called the self.lint method.
Do we have to change the lint method or I am missing something.

Thank You

from coala-bears.

sils avatar sils commented on August 26, 2024

From @AbdealiJK on February 9, 2016 10:30

The ship condition is in GoVetBearTest
The @SkipIf checks for go, not for go vet

-----Original Message-----
From: "Nalin Goel" [email protected]
Sent: ‎09-‎02-‎2016 15:41
To: "coala-analyzer/coala" [email protected]
Cc: "AbdealiJK" [email protected]
Subject: Re: [coala] GoVetBear - skip condition invalid (#1329)

Hi, I would like to work on this issue.
I checked the GoVetBear.py file but is just called the self.lint method.
Do we have to change the lint method or I am missing something.
Thank You

Reply to this email directly or view it on GitHub.

from coala-bears.

sils avatar sils commented on August 26, 2024

@NalinG please work only on one newcomer issue, we don't have a lot of them because they take a lot of work to create.

from coala-bears.

sils avatar sils commented on August 26, 2024

From @NalinG on February 9, 2016 18:41

Sorry for the trouble.
I will take care in the future.

from coala-bears.

sils avatar sils commented on August 26, 2024

no problem

from coala-bears.

manu-chroma avatar manu-chroma commented on August 26, 2024

Hey @sils1297, I'd like to work on this issue! :)

from coala-bears.

manu-chroma avatar manu-chroma commented on August 26, 2024

@AbdealiJK using which('go help vet ') returns None even though I have go vet installed.

I can use os.system('go help vet') in place for checking installation. Thoughts ?

from coala-bears.

AbdealiLoKo avatar AbdealiLoKo commented on August 26, 2024

'which' doesn't work like that. It only accepts 1 arg. What were you expecting 'which go vet bear' to give???

Instead of os.system() we use sub process.check_call or subprocess.check_output. Look at other bears and how it's implemented in them.

from coala-bears.

manu-chroma avatar manu-chroma commented on August 26, 2024

I realised that after posting the comment. Sure, I'll do that!
Thanks.

from coala-bears.

jayvdb avatar jayvdb commented on August 26, 2024

Please see the new GoRequirement . Each bear should not do their own package management checks - they will be buggy.

from coala-bears.

jayvdb avatar jayvdb commented on August 26, 2024

(Go vet is a bit special, but its specialness should be in GoRequirement)

from coala-bears.

manu-chroma avatar manu-chroma commented on August 26, 2024

@jayvdb I'm not sure if you're pointing to any specific part of the documentation.
Can you give a link for where I can see the GoRequirement..

from coala-bears.

AbdealiLoKo avatar AbdealiLoKo commented on August 26, 2024

@jayvdb but we need to ensure it works for the test skipping right? Or has that been offloaded to GoRequirements?
CC @Adrianzatreanu

from coala-bears.

jayvdb avatar jayvdb commented on August 26, 2024

See coala/coala#2752 , which fixed GoRequirement.is_installed for the general case. Special tests might be needed for go vet.

Test skipping should be done using GoRequirement.is_installed, and can probably be done dynamically in LocalBearTestHelper as the requirement is declared in the bear.

from coala-bears.

manu-chroma avatar manu-chroma commented on August 26, 2024

@AbdealiJK @jayvdb So the condition for checking go vet should be implemented in GoRequirement.is_installed or should I put it in GoVetBear.py inplace of which(go) implementation ?

from coala-bears.

sils avatar sils commented on August 26, 2024

Ideally it'd be in GoRequirement.is_installed done properly and then the Bear class should automatically use those. CC @Makman2 and @Udayan12167 as this affects the Bear and LintBase classes

from coala-bears.

manu-chroma avatar manu-chroma commented on August 26, 2024

@sils Since @Makman2 is working on this issue, should I pick a different newcomer issue ?

from coala-bears.

sils avatar sils commented on August 26, 2024

@manu-chroma sure, if you like. Not sure what @Makman2 is planning

from coala-bears.

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.