Git Product home page Git Product logo

Comments (3)

oliverklee avatar oliverklee commented on July 21, 2024

I have to add a .rubocop.yml and set the (same) maximum line length there to get haml-lint to complain about my lines that are 100 characters or so.

from haml-lint.

sds avatar sds commented on July 21, 2024

@oliverklee I don't see the issue you are describing with the latest version of haml-lint (0.6.0 at time of writing).

Are you sure you're not confusing the Rubocop LineLength cop with haml-lint's LineLength linter?

Rubocop's LineLength cop is disabled by default, since it doesn't make sense in the context of HAML documents since haml-lint auto-generates Ruby code to pass to Rubocop.

You need to add the following to your .haml-lint.yml configuration file (or whichever file you pass in via the -c option) in order to adjust the maximum line length allowed:

linters:
  LineLength:
    max: 400

I know you mentioned all of this in your issue, but I mention it here for posterity's sake. This definitely works as intended on my system. (is Eclipse running haml-lint in a different working directory?)

from haml-lint.

sds avatar sds commented on July 21, 2024

Nevermind. Your other issue better explained the problem you were seeing. I'll address it there.

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.