Giter VIP home page Giter VIP logo

Comments (2)

ppalaga avatar ppalaga commented on July 27, 2024

I tried to reproduce in my branch i41 where I have added your rule and two min.css files into one of the projects against which we run our integration tests. But everything seems to work properly there.

git clone [email protected]:ppalaga/editorconfig-maven-plugin.git
git checkout -b i41 origin/i41

cd src/test/projects/defaults

cat .editorconfig 
...
root = true

[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.min.css]
insert_final_newline = unset


mvn mvn editorconfig:check
....
[INFO] --- editorconfig-maven-plugin:0.0.10:check (default-cli) @ defaults ---
[ERROR] src/main/resources/indent.xml@23,5: Delete 1 character - violates indent_style = space, indent_size = 2, reported by org.ec4j.linters.XmlLinter
[ERROR] src/main/resources/indent.xml@24,3: Delete 2 characters - violates indent_style = space, indent_size = 2, reported by org.ec4j.linters.XmlLinter
[ERROR] src/main/resources/trailing-whitespace.txt@1,7: Delete 2 characters - violates trim_trailing_whitespace = true, reported by org.ec4j.linters.TextLinter
[ERROR] README.adoc@2,1: Delete 2 characters - violates trim_trailing_whitespace = true, reported by org.ec4j.linters.TextLinter
[INFO] Checked 8 files

Note that no errors is reported for any of the two min.css files.

When I remove your rule from .editorconfig, the errors are reported:

...
[INFO] --- editorconfig-maven-plugin:0.0.10:check (default-cli) @ defaults ---
...
[ERROR] src/main/resources/style.min.css@1,85: Insert lf - violates insert_final_newline = true, reported by org.ec4j.linters.TextLinter
...
[ERROR] style.min.css@1,85: Insert lf - violates insert_final_newline = true, reported by org.ec4j.linters.TextLinter
[INFO] Checked 8 files
[

Could you please try to reproduce on your machine?

from editorconfig-maven-plugin.

ppalaga avatar ppalaga commented on July 27, 2024

Closing because I cannot reproduce. Feel free to reopen if you feel the problem persists.

from editorconfig-maven-plugin.

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.