Skip to content

dpembo/sonar-flow-plugin

 
 

Repository files navigation

The sonar-flow-plugin project

This project provides a SonarQube plugin for the webMethods flow language.

Currently the plugin comes with following predefined rules:

  1. TryCatchCheck
  • A top-level service schould contain a try-catch. The top-level services should be able to catch exceptions and log, transform and obscure data from them.
  1. SavePipelineCheck
  • Services should not contain any save- or restorePipeline services.
  1. DisableCheck
  • Services should not contain any disabled elements.
  1. InterfaceCommentsCheck
  • Interface elements should contain comments. This allows for correct creation of documentation.
  1. QualityNameCheck
  2. ExitCheck
  • Services with interface element 'EXIT' step need to be configured correctly. The "Exit from " property needs to be configured and the failure message needs to be added if the "Signal" property is set to "Failure".
  1. EmptyMapCheck
  • Empty 'MAP' interface elements should be removed from the service.
  1. EmptyFlowCheck
  • Empty services should be removed.
  1. BranchPropertiesCheck
  • If the switch property of a BRANCH step is not defined, then the 'evaluate labels' property should be set to true. This indicates that the branching conditions are defined in the labels of the child step. If the switch is defined then the 'evaluate labels' property should be false or null.

Quick setup guide

Here you'll find a quick setup.

Develop your own flow code checks

You can find the documentation to develop you own rules here.

License

The sonar-flow-plugin is available under the GNU Lesser General Public License v3.0.

Packages

No packages published

Languages

  • Java 96.9%
  • HTML 3.1%