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

Check syntax and semantics quickly and automatically #22

Open
rhysd opened this issue Oct 5, 2015 · 1 comment
Open

Check syntax and semantics quickly and automatically #22

rhysd opened this issue Oct 5, 2015 · 1 comment
Assignees

Comments

@rhysd
Copy link
Member

rhysd commented Oct 5, 2015

Crystal compiler can check syntax and semantics of the code using --no-codegen. I set the check on BufWritePost event here using vim-quickrun but it is incomplete because of the entry point of the program. (Pointed out in #15)

I think it is the best to generate temporary file which requires both current file and spec (if exists). vim-crystal can support it.

  • Add CrystalLint {file} command to use this feature explicitly.
  • Add auto linting at BufWritePost. It can be controlled by g:crystal_auto_lint.
@rhysd rhysd self-assigned this Oct 5, 2015
@rhysd rhysd changed the title Syntax and semantics check quickly and automatically Check syntax and semantics quickly and automatically Oct 5, 2015
@rhysd
Copy link
Member Author

rhysd commented Nov 6, 2015

At least this repository already has a config for syntastic. Only :CrystalLint may need.

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

No branches or pull requests

1 participant