emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [RFC] Org linting library


From: Charles C. Berry
Subject: Re: [O] [RFC] Org linting library
Date: Sun, 19 Apr 2015 19:15:03 -0700
User-agent: Alpine 2.00 (OSX 1167 2008-08-23)

On Sun, 19 Apr 2015, Nicolas Goaziou wrote:

Hello,

The following library implements linting for Org syntax. The sole public
function is `org-lint', which see.


Nice!

Comments below.

Internally, the library defines a new structure: `org-lint-checker',
with the following slots:


[snip]


Checks currently implemented are:

 - duplicates CUSTOM_ID properties
 - duplicate NAME values
 - duplicate targets
 - duplicate footnote definitions
 - orphaned affiliated keywords

This generates an orphaned keyword warning, but seems innocuous and is what babel renders.

#+NAME: abc
#+BEGIN_SRC emacs-lisp
nil
#+END_SRC

#+RESULTS: abc


 - obsolete affiliated keywords
 - missing language in src blocks
 - NAME values with a colon
 - wrong header arguments in src blocks

IFF the header args are in the #+BEGIN_SRC line.

#+HEADER lines and header-arg properties are not screened AFAICS.

[snip]

Chuck



reply via email to

[Prev in Thread] Current Thread [Next in Thread]