38
Views
2
Comments
How to create a custom linter for OutSystems project?

Greetings, community!

What is the way to create custom ruled code validation in OutSystems studio project.

F.e. if we have custom code standards on the project, how can i setup studio to validate or mark the code standards that i set up?


Thanks

2024-09-17 18-14-33
Miguel Defavari da Silva

Hello!

If you use JavaScript code for this validation then you can implement it in your app.

Please check this documentation on how to add javascript nodes in your logic flow.

You can also add an entire script from the interface tab in Service Studio:

And then use it on Screens and Blocks with the Required Scripts feature:

I hope this helps you!

Best regards,

Miguel


2022-09-30 11-07-58
Andrii Voinalovych

Greetings!
Thank you for the answer, this should help.
But the question was in creating linter for actions(naming, constructs), variables, structures naming.
Should I gather raw JS code from compiled page and work with it in linter or it can be done natively in OutSystems?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.