community-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: DOAP validation code (was DOAP format question)
Date Fri, 08 May 2015 11:36:23 GMT
On 8 May 2015 at 11:51, sebb <sebbaz@gmail.com> wrote:
> On 5 May 2015 at 16:57, Sergio Fernández <wikier@apache.org> wrote:
>> Hi,
>
> <snip/>
>
>> I didn't have much time today, but what I already did was implementing the
>> basics of how the DOAP processing could look like. For the moment is at
>> https://github.com/wikier/asf-doap until I'll get something more
>> functional, then I'll commit it to the asf repo.
>>
>> Basically what if currently does that simple code is to get all DOAP/PMC
>> files and report some basics (size). You can run it by yourself executing:
>>
>> $ python doap.py
>>
> <snip/>
>
> I've tried the code, and it does find some syntax errors.
>
> [The code needs to be tweaked so it catches & reports syntax errors
> rather than failing]
>
> However, it does not seem to detect asfext:PMC as an error - it seems
> to be case-blind.
>
> I cannot work out whether the library supports exact case checking,
> and if so, how to enable this.
>
> Nor does it appear to detect invalid tags (perhaps that's why case
> checking does not work).

Also, only the first error is reported.
Ideally the validation needs to find all the errors in one pass.

It would be OK if the code gave up for serious syntax errors such as
mismatched tags, but where there are multiple other errors these
should be reported without needing to fix them one by one.

Mime
View raw message