Hi Florian, I just found out that there are also checkstyle configurations in the tool settings, maybe you can try them. Therefore, navigate to settings -> Tools -> Checkstyle.
Please let me know if this worked. Cheers, Philipp Von: Florian Micklich <[email protected]> Datum: Montag, 31. Oktober 2022 um 11:33 An: [email protected] <[email protected]> Betreff: Re: AW: [DISCUSS] Automatic Typescript model generation Hi Philipp, so far so good. I also select "rules" -> "active configuration" but after I open a file, the run button is still grayed out. But If I select the other options like "SUN CHECKS" or "Google Checks", the button is available. To be sure, I use the ``` ../incubator-streampipes/tools/maven/checkstyle.xml ``` in the git repository. Does anyone else have a similar behavior? I use 2022.2.3 UE. Unfortunately I don't have write access to the conf page atm, due "An internal error occurred when trying to change your password." Florian Am Montag, dem 31.10.2022 um 08:13 +0000 schrieb Philipp Zehnder: > Hi Florian,<br> > > It could be that something is still missing in the instructions.<br> > After I added the checkstyle rules I navigate to the checkstyle toolbar.<br> > Then I can select "rules" -> "active configuration".<br> > When I then open a file, I can click the run button in the checkstyle > toolbar.<br> > > If something is missing in the manual, please add it or we can discuss it > here.<br> > > Cheers,<br> > Philipp<br> > > Von: Florian Micklich <[[email protected]](mailto:[email protected])><br> > Datum: Freitag, 28. Oktober 2022 um 21:45<br> > An: [[email protected]](mailto:[email protected]) > <[[email protected]](mailto:[email protected])><br> > Betreff: Re: AW: [DISCUSS] Automatic Typescript model generation<br> > > Hi,<br> > I added the checkstyle.xml as mentioned [1]. Is there anythink else I have to > do to start the check?<br> > > If I do "check all modified files in the checkStyle toolbar, and set Rules to > <active configurations> I get "No Rules file has been configured".<br> > > Greetings<br> > Florian<br> > > [1] > [https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)<br<https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr>> > > > > > Am Mittwoch, dem 26.10.2022 um 09:52 +0000 schrieb Philipp Zehnder:<br> > > Hi Tim,<br><br> > > > > thanks for providing the links.<br><br> > > I added a short description for Java in [1]. Maybe we can use this as the > > central place for best practices. You are welcome to change and customize > > anything.<br><br> > > > > I will also add a similar description for Typescript & Angular.<br><br> > > > > > > [1] > > [[https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java))<br<[https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr)>><br<https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java))%3cbr%3c%5bhttps:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr)%3e%3e%3cbr>> > > > > …………………………………………………<br><br> > > Philipp Zehnder<br><br> > > > > Bytefabrik.AI GmbH<br><br> > > Haid-und-Neu-Str. 10–14<br><br> > > 76131 Karlsruhe<br><br> > > Tel.: +49 721 9654-805<br><br> > > > > [[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected]))<br><br> > > [[www.bytefabrik.ai](http://www.bytefabrik.ai](http://www.bytefabrik.ai](http://www.bytefabrik.ai)<[http://www.bytefabrik.ai](http:/www.bytefabrik.ai](http://www.bytefabrik.ai](http:/www.bytefabrik.ai<http://www.bytefabrik.ai](http:/www.bytefabrik.ai%5d(http:/www.bytefabrik.ai%5d(http:/www.bytefabrik.ai)%3c%5bhttp:/www.bytefabrik.ai%5d(http:/www.bytefabrik.ai%5d(http:/www.bytefabrik.ai%5d(http:/www.bytefabrik.ai>)>) > > > > <[[https://www.bytefabrik.ai/](https://www.bytefabrik.ai/](https://www.bytefabrik.ai/](https://www.bytefabrik.ai/)<[https://www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/](https://www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/<https://www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/)%3c%5bhttps:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/>)>)> > > | > > [[www.twitter.com/bytefabrik](http://www.twitter.com/bytefabrik)](http://www.twitter.com/bytefabrik](http://www.twitter.com/bytefabrik))<[[https://www.bytefabrik.ai/](https://www.bytefabrik.ai/)](https://www.bytefabrik.ai/](https://www.bytefabrik.ai/))><br<[http://www.twitter.com/bytefabrik%5d(http:/www.twitter.com/bytefabrik)%3c%5bhttps:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/)%3e%3cbr](http://www.twitter.com/bytefabrik%5d(http:/www.twitter.com/bytefabrik)%3c%5bhttps:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/)%3e%3cbr)>><br<http://www.twitter.com/bytefabrik%5d(http:/www.twitter.com/bytefabrik)%5d(http:/www.twitter.com/bytefabrik%5d(http:/www.twitter.com/bytefabrik))%3c%5b%5bhttps:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/)%5d(https:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/))%3e%3cbr%3c%5bhttp:/www.twitter.com/bytefabrik%5d(http:/www.twitter.com/bytefabrik)%3c%5bhttps:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/)%3e%3cbr%5d(http:/www.twitter.com/bytefabrik%5d(http:/www.twitter.com/bytefabrik)%3c%5bhttps:/www.bytefabrik.ai/%5d(https:/www.bytefabrik.ai/)%3e%3cbr)%3e%3e%3cbr>> > > > > …………………………………………………<br><br> > > Bytefabrik.AI GmbH<br><br> > > Sitz der Gesellschaft: Karlsruhe<br><br> > > Registergericht: Amtsgericht Mannheim, HRB 741226<br><br> > > Geschäftsführer: Dr.-Ing. Dominik Riemer, Dr.-Ing. Philipp Zehnder<br><br> > > …………………………………………………<br><br> > > > > > > Von: Tim > > <[[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected]))><br><br> > > Datum: Dienstag, 25. Oktober 2022 um 21:47<br><br> > > An: > > [[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected])) > > > > <[[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected]))><br><br> > > Cc: Philipp Zehnder > > <[[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected]))><br><br> > > Betreff: Re: AW: [DISCUSS] Automatic Typescript model generation<br><br> > > Hi,<br><br> > > > > yes that would be benefial.<br><br> > > I've notices that we already have confluence pages for that: [1] [2]<br><br> > > it's just up to us to fill them with live ;)<br><br> > > > > Let's see whether we can use these tools in a pre-commit hook, but > > that<br><br> > > shouldn't be an issue since any executable can be defined as git > > hook.<br><br> > > Usually, you add a pre-commit hook file to the repository.<br><br> > > This file then needs to be configured by each developer as > > pre-commit<br><br> > > hook but this really simple and can be done with one git command.<br><br> > > When describing it properly in the development guide and/or README, > > this<br><br> > > shouldn't be a high bar for any developer.<br><br> > > > > I would be happy to move this topic forward with you.<br><br> > > > > Best<br><br> > > Tim<br><br> > > > > [1]<br><br> > > [[https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java))<br<[https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr)>><br<https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java))%3cbr%3c%5bhttps:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Java)%3cbr)%3e%3e%3cbr>> > > [2]<br><br> > > [[https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript)](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript))<br<[https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript)%3cbr](https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript)%3cbr)>><br<https://cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript)%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript))%3cbr%3c%5bhttps:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript)%3cbr%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Code+Style+-+Typescript)%3cbr)%3e%3e%3cbr>> > > > > Am 24.10.2022 22:21 schrieb Philipp Zehnder:<br><br>> > > > Hi Tim,<br><br> > > > > > > I really like the idea.<br><br> > > > For this we need a uniform style guide, right?<br><br> > > > For the UI we recently switched to ESLint with Prettier as a > > > formatter<br><br> > > > and for Java we use checkstyle. Are those configurations then used > > > by<br><br> > > > the pre-commit hook?<br><br> > > > And what kind of formatting can be done with it?<br><br> > > > > > > Where do we need to configure the pre-commit hooks, is that > > > something<br><br> > > > each developer needs to configure, or can we configure it in the<br><br> > > > repository?<br><br> > > > > > > Cheers,<br><br> > > > Philipp<br><br> > > > > > > > > > Von: Tim > > > <[[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected]))><br><br> > > > Datum: Sonntag, 23. Oktober 2022 um 13:48<br><br> > > > An: > > > [[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected])) > > > > > > <[[[email protected]](mailto:[email protected])](mailto:[[email protected]](mailto:[email protected]))><br><br> > > > Betreff: Re: [DISCUSS] Automatic Typescript model generation<br><br> > > > Hi Philipp,<br><br> > > > > > > I don't know if this can be solved with the maven plugin used for > > > the<br><br> > > > TypeScript generation.<br><br> > > > An alternative idea of mine would be to use a git-hook for this.<br><br> > > > We could create a git-hook for StreamPipes that checks each > > > committed<br><br> > > > file for the presence of the Apache header and adds it if it is<br><br> > > > missing.<br><br> > > > Pre-commit hooks could also be used for style checks and so on. > > > I'm<br><br> > > > already planning to have a discussion about that approach in general > > > on<br><br> > > > our mailing list, but apparently you have been faster ;) So this > > > could<br><br> > > > be a good first use case for it.<br><br> > > > > > > What do you think about this idea?<br><br> > > > > > > Best<br><br> > > > Tim<br><br> > > > > > > Am 19.10.2022 22:39 schrieb Philipp Zehnder:<br>><br>> > > > > > Hi all,<br><br> > > > > > > > > the TypeScript model for our UI is automatically generated from > > > > the<br><br> > > > > Java classes as described in [1].<br><br> > > > > So far this had to be done manually. I added a small script to<br><br> > > > > automate the process [2].<br><br> > > > > > > > > This already eases to update process, however the license > > > > headers<br><br> > > > > still must be inserted manually.<br><br> > > > > Does anyone have an idea how we could automate this step as > > > > well?<br><br> > > > > > > > > Here is the link to the corresponding issue [3].<br><br> > > > > > > > > Cheers,<br><br> > > > > Philipp<br><br> > > > > > > > > [1]<br><br> > > > > [[https://cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization](https://cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization)](https://cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization](https://cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization))<br<[https://cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization)%3cbr](https://cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization)%3cbr)>><br<https://cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization)%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization))%3cbr%3c%5bhttps:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization)%3cbr%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization%5d(https:/cwiki.apache.org/confluence/display/STREAMPIPES/Core-UI+Serialization)%3cbr)%3e%3e%3cbr>> > > > > [2]<br><br> > > > > [[https://github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh](https://github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh)](https://github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh](https://github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh))<br<[https://github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh)%3cbr](https://github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh)%3cbr)>><br<https://github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh)%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh))%3cbr%3c%5bhttps:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh)%3cbr%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh%5d(https:/github.com/apache/incubator-streampipes/blob/dev/create-client-model.sh)%3cbr)%3e%3e%3cbr>> > > > > [3]<br><br> > > > > [[https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600](https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600)](https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600](https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600))<br<[https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600)%3cbr](https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600)%3cbr)>><br<https://issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600)%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600))%3cbr%3c%5bhttps:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600)%3cbr%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600%5d(https:/issues.apache.org/jira/projects/STREAMPIPES/issues/STREAMPIPES-600)%3cbr)%3e%3e%3cbr>>
