Comments (2)
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.
Closing because I cannot reproduce. Feel free to reopen if you feel the problem persists.
from editorconfig-maven-plugin.
Related Issues (20)
- This project is not using .editorconfig
- No support for java files HOT 1
- insert_final_newline does not work
- Link to central.maven.org unreachable HOT 1
- 404 for maven goals on http://ec4j.github.io/editorconfig-maven-plugin/ HOT 3
- Support utf-8-bom encoding HOT 3
- Plugin not apply indent_style, indent_size to *.java files HOT 1
- Mark mojos as threadSafe HOT 2
- Links in the README broken after moving the linters to a separate git repo HOT 2
- Empty files should pass with insert_final_newline = true HOT 3
- Ignore files in .gitignore HOT 6
- YAML Linter HOT 1
- Default excludes are lost if supplied excludes are null
- Wrong tab indentation with XML linter HOT 6
- Sometimes check goal fails during a Jenkins build HOT 1
- standalone XML files
- [Query] Editor Config Maven Plugin for Java HOT 1
- Disable the check for single mvn calls HOT 1
- DirectoryScanner missing on Maven 3.9.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editorconfig-maven-plugin.