Git Product home page Git Product logo

Comments (5)

sds avatar sds commented on July 21, 2024

Hey @stevedowney,

You could create a rake task that runs both tools for you.

I'm not sure it would make sense to have haml-lint run when rubocop runs, since rubocop works on .rb files while haml-lint works on .haml files, so it doesn't make sense to run one with the other.

from haml-lint.

stevedowney avatar stevedowney commented on July 21, 2024

We have guard running which runs rspec and rubocop every time a a file is saved. Having haml-lint run when a haml file is saved is in line with that. The idea is to have all the checks run automatically.

I will look into having guard handle. If anyone has a guard solution I'd be interested in seeing what you have.

from haml-lint.

stevedowney avatar stevedowney commented on July 21, 2024

And I am really not trying to be contentious, but in the README for this project it says: "...it integrates with RuboCop ...". I'm not understanding what integration there is.

from haml-lint.

lencioni avatar lencioni commented on July 21, 2024

I believe that the integration mentioned there means that haml-lint will run Rubocop on the Ruby that is in your haml files.

from haml-lint.

bensheldon avatar bensheldon commented on July 21, 2024

@stevedowney I'm running haml-lint via guard-shell. It's not as elegant as a real guard plugin for haml-lint, but it does the job.

guard :shell do
  watch(/.*\.haml/) { |m| `haml-lint --color #{m[0]}` }
end

from haml-lint.

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.