Introducing KDE Activity Filter

Ingo Klöcker kloecker at kde.org
Mon Jul 20 10:25:19 BST 2020


On Sonntag, 19. Juli 2020 10:20:56 CEST Adriaan de Groot wrote:
> On Tuesday, 14 July 2020 10:57:41 CEST Ingo Klöcker wrote:
> > On Dienstag, 14. Juli 2020 10:20:33 CEST Kåre Särs wrote:
> > > Is there a way to verify that the yaml file is syntactically correct
> > > before
> > > pushing the change?
> > 
> > There are loads of YAML linters/validators, online and offline. In fact,
> > this would be an opportunity to test-drive the awesome GitLab CI/CD. I
> > volunteer to implement this, if sysadmin is okay with this.
> 
> There's a bunch of different tools for YAML validation indeed.

It has already been implemented and merged. I'm using the Python package 
yamllint.

> > Or do you mean "semantically correct", i.e. also checking for valid
> > projects?
> 
> (From a JSON-schema perspective) You might periodically generate a schema
> type that checks the repository-re, for the simple case of |-separated full
> repository names. Personally I'd be more inclined to follow Albert's
> original question, and change the tool not to eat a RE but a YAML
> list-of-repo-names.

I didn't implement any semantic validation. I agree that using a list would be 
more YAML-like.

Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20200720/ccf8b164/attachment.sig>


More information about the kde-core-devel mailing list