Re: Turning off the style check for tabs
Try M-x jde-checkstyle-customize -- Ed Charles Curley wrote: My client likes tabs in files. How do I turn off the style check for tabs in JDEE? I've already found out that you can, but I don't see anything in the checkstyle or jdee docs that say how you do this. Thanks.
Re: Turning off the style check for tabs
On Thu, Jun 09, 2005 at 12:54:15PM -0400, Ed Mooney wrote: Try M-x jde-checkstyle-customize Right, been there. The closest thing I could find was Jde Checkstyle Style, but how do you use it? How do you define a style? Where is the Sun style defined? -- Ed Charles Curley wrote: My client likes tabs in files. How do I turn off the style check for tabs in JDEE? I've already found out that you can, but I don't see anything in the checkstyle or jdee docs that say how you do this. Thanks. -- Charles Curley /\ASCII Ribbon Campaign Looking for fine software \ /Respect for open standards and/or writing? X No HTML/RTF in email http://www.charlescurley.com/ \No M$ Word docs in email Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB pgp2TYmI7SsSZ.pgp Description: PGP signature
Re: Turning off the style check for tabs
I don't know. This may be relevant: ^H v indent-tabs-mode -- Ed Charles Curley wrote: On Thu, Jun 09, 2005 at 12:54:15PM -0400, Ed Mooney wrote: Try M-x jde-checkstyle-customize Right, been there. The closest thing I could find was Jde Checkstyle Style, but how do you use it? How do you define a style? Where is the Sun style defined? [ ... ]
Re: Turning off the style check for tabs
On Thu, Jun 09, 2005 at 01:19:30PM -0400, Ed Mooney wrote: I don't know. This may be relevant: ^H v indent-tabs-mode Found that. Right now I have it set to nil (meaning no tabs, spaces only, the preferred style). The problem is the client wants tabs. So I'd like to be able to use tabs not have the style checker complain about them. Thanks -- Charles Curley /\ASCII Ribbon Campaign Looking for fine software \ /Respect for open standards and/or writing? X No HTML/RTF in email http://www.charlescurley.com/ \No M$ Word docs in email Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB pgpNCMVWYNiVM.pgp Description: PGP signature
Re: Turning off the style check for tabs
On Thu, Jun 09, 2005 at 04:32:35PM -0400, Paul Kinnucan wrote: Charles Curley writes: On Thu, Jun 09, 2005 at 01:19:30PM -0400, Ed Mooney wrote: I don't know. This may be relevant: ^H v indent-tabs-mode Found that. Right now I have it set to nil (meaning no tabs, spaces only, the preferred style). The problem is the client wants tabs. So I'd like to be able to use tabs not have the style checker complain about them. Hi Charles, The JDEE is set up to use the Sun coding style by default. The Sun coding style frowns on the use of tab characters in Java source files. The JDEE provides a set of customization options that allow you to specify any coding style that you want. To use these options intelligently, you need to know how CheckStyle works. See the doc for CheckStyle, which is available at http://checkstyle.sourceforge.net. A way to do what you want would be to copy the sun_checks.xml configuration file in the JDEE's JDEROOT/java/lib directory to a location of your choosing, rename it to something like my_checks.xml, and delete the line module name=TabCharacter/ from the copy. In effect, you've created your own custom style that differs from the Sun style only in that you allow tabs in source code. Finally, you should customize the jde_checkstyle_style variable to point to my_checks.xml Thank you for putting things together for me. That's what I needed to know. One other item: use a fully qualified path to your custom file, e.g. /home/ccurley/.emacs.d/site-lisp/jde/java/lib/foo_checks.xml -- Charles Curley /\ASCII Ribbon Campaign Looking for fine software \ /Respect for open standards and/or writing? X No HTML/RTF in email http://www.charlescurley.com/ \No M$ Word docs in email Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB pgpmScMT6dz0l.pgp Description: PGP signature