Giter Site home page Giter Site logo

Comments (5)

camilamacedo86 avatar camilamacedo86 commented on July 22, 2024 1

I think kind/cleanup is OK. 🥇

If the motivation came from the bump #3846
see that the fixes applied are accurate.

  • We should not use . to import but we have one exception then in this case we need configure to ignore
  • When args are not used we should use _

That are the only checks that the whole code and samples fails after the update and seems that is more related those files are been ignored before in the lint instead of changes in the lint persei.

I think that the only thing that we could do is to check if we can ignore the specific scenario

	// nolint:revive
	. "github.com/onsi/ginkgo/v2"
	// nolint:revive
	. "github.com/onsi/gomega"

Via config like

[rule.dot-imports]
  arguments = [{ allowedPackages = ["github.com/onsi/ginkgo/v2","github.com/onsi/gomega"] }]

As you suggested. But the checks shows fine.
Wdyt? Also, I agree with you. If the goal here is to do this change only I think it is a good-first-issue (adding the label :-) )

from kubebuilder.

Kavinjsir avatar Kavinjsir commented on July 22, 2024

@camilamacedo86 I'm not sure how to tag, this seems not suitable to be kind/feature. And we may consider it as good-first-issue :)

from kubebuilder.

prashantrewar avatar prashantrewar commented on July 22, 2024

Hey @camilamacedo86 and @Kavinjsir, I'm interested. Could you please guide me on this issue?

Thank you!

from kubebuilder.

prashantrewar avatar prashantrewar commented on July 22, 2024

/assign

from kubebuilder.

Kavinjsir avatar Kavinjsir commented on July 22, 2024

@camilamacedo86 Sounds good to me!

  • We should not use . to import but we have one exception then in this case we need configure to ignore

To stay align with your concern, we may add comment like:

[rule.dot-imports]
  # dot import should be ONLY allowed for ginkgo testing packages
  arguments = [{ allowedPackages = ["github.com/onsi/ginkgo/v2","github.com/onsi/gomega"] }]

from kubebuilder.

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.