Giter Site home page Giter Site logo

Comments (8)

jgable avatar jgable commented on July 30, 2024

Can you give me some steps to reproduce this, or point me at your project where this problem is happening?

from grunt-lesslint.

andrew-ml avatar andrew-ml commented on July 30, 2024

I've created a repo for testing issues, https://github.com/andrew-ml/testingless
There I have main.less, which has 'less/component.less' import.
So, 'component.less' contains test code with too many !important declarations,

After running lesslint task in grunt I got an error:

[main.less] (1)
'Too many !important declarations ...'

As you see, it shows that the error is in 'main.less' instead of 'less/component.less', which is quite inconvenient.

Is there any way to output the error log with right import file names?

from grunt-lesslint.

magicjohnson avatar magicjohnson commented on July 30, 2024

+1

from grunt-lesslint.

jgable avatar jgable commented on July 30, 2024

The fix for this is now published as 1.1.8 on NPM.

from grunt-lesslint.

magicjohnson avatar magicjohnson commented on July 30, 2024

@jgable it seems that problem is not solved, now I see file path for every error like

>> less/base.less [Line 237, Column 9]:  padding: 1px;

but the problem is that I don't have line 237 in base.less since it has only @import imported.less; statement.
So basically this error should be linked to imported.less file with correct line number.

I'm using it with jenkins-violation plugin (lint-xml formatter), and jenkins can't render report correctly because of incorrect issue mapping (issue - file & linenumber)

from grunt-lesslint.

jgable avatar jgable commented on July 30, 2024

Woops, you're right, I was not using the source but the original file name. Published a hotfix as 1.1.9 up on npm, give it another try.

from grunt-lesslint.

magicjohnson avatar magicjohnson commented on July 30, 2024

@jgable you're almost there =)
terminal output is fine now, could you also fix xml report please?

from grunt-lesslint.

jgable avatar jgable commented on July 30, 2024

You'll have to put together a PR for it yourself. I'm a little busy with
other things.

from grunt-lesslint.

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.