Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

JSCS on Web Essentials, excludeFiles with absolute path, generate parse error #232

Closed
ChrisTorng opened this issue Feb 6, 2014 · 4 comments
Labels

Comments

@ChrisTorng
Copy link

I am new to JSCS, just because of Web Essentials 1.8.
I don't know if this is actually an issue of JSCS, or issue of Web Essentials, or just because I don't know how to set it correctly.

From JSHint/JSCS Errors on .min files and others?.

Web Essentials 1.8 start to generate more than 10000 informations, make VS stop respond for several minutes.

Except for stop Web Essentials to Run on Save/Build, I found another way to set excludeFiles.

But I only find it accept absolute path, no relative path. And path divider should be '/', '' is not allowed.
For example:

"excludeFiles": ["C:/Solution/Project/Scripts/*", "C:/Solution/Project/Scripts/kendo/*"]

After set correct absolute path, with '/', build message appears new message per js:

JSCS parse error: <?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
</checkstyle>
JSCS: x.js compilation failed: <?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
</checkstyle>

And new information item per js:

<?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
</checkstyle>

And no other JSCS information items.

I think maybe I don't know how to use excludeFiles correctly, or it is a bug about JSCS or Web Essentials.

@nschonni
Copy link
Contributor

nschonni commented Feb 6, 2014

The paths are relative and shouldn't start withC:/ on Windows either.

"excludeFiles": [ "Scripts/**" ]

You can see https://github.com/isaacs/minimatch for how to build other globbing patterns.

@ChrisTorng
Copy link
Author

I don't understand the content of https://github.com/isaacs/minimatch.

I have test

"Scripts/**"
"Scripts/*"
"*"
"**"
"***"
"*.js"
"x.js"
"Scripts\*"
"Scripts\\*"
"Scripts\\**"

all without luck.

I think the JSCS excludeFiles should be ok, I guess the problem is the integration piece of Web Essentials.

@nschonni
Copy link
Contributor

nschonni commented Feb 7, 2014

Minimatch is the library that both JSCS and JSHint use for the globbing (matching) patterns for the ignore files. This is the same format as your regular .gitignore files.

@markelog
Copy link
Member

markelog commented Feb 7, 2014

All right then, ping us, if we could provide help on our side

@markelog markelog closed this as completed Feb 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants