Comments (9)
A minor mode does not require any special “support” for Flycheck. If there is a special checker for Drupal code, open an issue in the Flycheck tracker, name the tool, show some example output, and I'll add it to Flycheck itself, so that Flycheck automatically works–given that the user enabled it.
from drupal-mode.
Actually what I had in mind was getting the code in flycheck/flycheck#71 into good shape - including adding the phpcs standard to be used as a flycheck-def-config-file-var
.
In my drupal-mode (which is - among other things - a minor mode for php-modeI) I would then set the "Drupal" standard as buffer local variable.
from drupal-mode.
flycheck-def-config-file-var
is not the right tool for this, as configuration files receive special handling that breaks with simple string values.
See flycheck/flycheck#72 for what is required to support coding standards. You'll have to wait until that issue is fixed.
from drupal-mode.
Good point. Guess I haven't studied flycheck enought yet 😃
Glad to see you plan to support this.
from drupal-mode.
@arnested Flycheck now supports coding standards for PHP CodeSniffer. If you can tell me, how to install the Drupal Standard, and how to detect in code whether the standard is installed, I can even try to enable Drupal rules automatically if drupal-mode
is active.
from drupal-mode.
@lunaryorn @arnested I'll write up some documentation on how to install the Drupal Standard and how to test it in the next few days, unless Arne beats me to it. Glad to hear this is working.
from drupal-mode.
I merged @xendk's pull request (and may a few minor changes).
I'm closing this issue now but @lunaryorn and @dhaley (and everyone else) are welcome to reopen or add new issues if you still miss stuff. I'm still not using flychk myself (probably should - @xendk has been trying to convince me several times at the office 😄).
from drupal-mode.
@arnested I commented on #35. I generally like the pull request, but how it enables the special Drupal syntax checker needs to be improved.
from drupal-mode.
Thank you for the comments, @lunaryorn.
@xendk is already looking into your comments I can see. Otherwise I'll nag him Friday when I see him at the office.
from drupal-mode.
Related Issues (20)
- Drupal.org documentation heads up HOT 2
- wrong type argument in drupal-convert-line-ending HOT 1
- Flycheck errors with drupal-mode HOT 4
- drupal-phpcs generates error with flycheck 'release-0.22' HOT 5
- Suppressing drupal-mode
- Access protection keywords in class methods confuse indentation HOT 4
- Async cache clear HOT 3
- symbol's value as variable is void: gtags-auto-update HOT 1
- Cannot open load file: no such file or directory, gtags HOT 5
- Drupal-mode adds drupal-phpcs to all supported modes. HOT 13
- Setting c-default-style to a string causes error. HOT 1
- Drupal mode stoped working HOT 6
- Make c-default-style local HOT 1
- Improved web-mode integration
- Drupal 8 info files
- drupal-mode-beginning-of-line obsoleted? HOT 3
- Failing installs via MELPA HOT 7
- drupal-mode slows down TRAMP HOT 1
- flymake-phpcs has been archived HOT 5
- Package cl is deprecated in Emacs-27
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 drupal-mode.