Giter VIP home page Giter VIP logo

Comments (7)

jonase avatar jonase commented on June 8, 2024

I'll be working on the plugin part of kibit the next couple of days. I have lots of ideas and I'll definitely keep this in mind. Currently, I'm aiming for something like:

$ lein kibit ;; Must be run inside a project. Will check all namespaces found in :source-paths

$ lein kibit some.namespace ;; Must be run inside a project and will only check some.namespace
                            ;; for example `$ lein kibit clojure.core.logic` would run kibit on 
                            ;; the clojure.core.logic namespace (if core.logic is one of the 
                            ;; dependencies specified in project.clj)

$ lein kibit "path/to/file.clj" ;; can be run outside a project to check any .clj file 

from kibit.

swannodette avatar swannodette commented on June 8, 2024

Sounds good though for the last one I think specifying directories should work too.

from kibit.

ohpauleez avatar ohpauleez commented on June 8, 2024

Agreed with the directory lookup.

Jonas, want me to tackle the plugin while you tackle the rules?

from kibit.

jonase avatar jonase commented on June 8, 2024

@ohpauleez - Thanks! Go for it!

Make sure you understand the difference between

  • running with or without a project.clj,
  • within the project process or within the leiningen process.

It's all very well described in the plugin guide. I think a "good" patch would also solve issue #26.

When running kibit in the project's process you could look at the very first released version of kibit on how to find a source file given a namespace symbol (note, this was broken only because I ran it within the leiningen process).

from kibit.

pparkkin avatar pparkkin commented on June 8, 2024

Is this issue dead, or implemented already?

I was looking at the documentation for Kibit, and didn't see a way to run it on a Clojure source file without using Leiningen, and came here. Is this functionality available, or planned?

from kibit.

danielcompton avatar danielcompton commented on June 8, 2024

Here's the status of the tasks

  • Able to call lein kibit with one or more filenames or globbed filenames inside and outside a project
  • Able to call lein kibit with a directory inside and outside a project
  • Able to call lein kibit with one or more namespaces (not implemented currently)
  • Update README with documentation on running in these modes

from kibit.

danielcompton avatar danielcompton commented on June 8, 2024

Most of this is implemented, I've put calling kibit with namespaces into #114.

from kibit.

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.