Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fecs support for js/html/css lint and format #2394

Merged
merged 3 commits into from
Apr 13, 2019

Conversation

harttle
Copy link
Contributor

@harttle harttle commented Mar 26, 2019

FECS is a lint tool for checking and fixing HTML/CSS/JavaScript code styles. I've been using the modified version locally, it works just fine. But I find that the ale-dev doc says:

ALE should check files with as many tools as possible by default, except where they cause security issues or make excessive use of resources on modern machines.

I would like to make it public. It's widely used here, hope the following links helpful:

Github: https://github.com/ecomfe/fecs
Wiki: https://github.com/ecomfe/fecs/wiki/CLI

I passed the tests locally but there's some warnings for the document checking, but it seems not related. BTW, thank you guys for this great repo, I migrate from syntastic with no regret.

Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I finally had a chance to look at this. Looks pretty good to me. Add some tests for the linter and fixer commands. See :help ale-tests and existing test files. You will probably have to configure the fixer to use something executable to get the command out in tests.

autoload/ale/fixers/fecs.vim Show resolved Hide resolved
doc/ale.txt Outdated
@@ -49,6 +49,7 @@ ALE supports the following key features for linting:
6. Using |echo| to show error messages when the cursor moves.
7. Setting syntax highlights for errors.


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the blank line here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it

@w0rp w0rp added this to In Review in Old Working List via automation Apr 10, 2019
@harttle harttle changed the title feat: fecs support for js/html/css lint and format, tests added feat: fecs support for js/html/css lint and format Apr 11, 2019
@harttle
Copy link
Contributor Author

harttle commented Apr 11, 2019

Along with test/handler/test_fecs_handler.vader, I added test/fixers/test_fecs_fixer_callback.vader and test/command_callback/test_fecs_command_callback.vader for format and check respectively.

@w0rp w0rp merged commit 784d1a9 into dense-analysis:master Apr 13, 2019
Old Working List automation moved this from In Review to Done Apr 13, 2019
@w0rp
Copy link
Member

w0rp commented Apr 13, 2019

Cheers! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants