Mar 27

Inspection Framework

Inspection framework is available since WaveMaker 10.0. Inspection Framework helps you locate errors, custom code or any unsupported methods in your project. For example, you can use this feature for the project migration process to identify unsupported methods. Using the inspection framework, you can perform tests and include this feature in your QA cycle to help you find code errors. Also, with this, you can point to the project’s custom code and edit and fix any code errors you may have. 

How to use Inspection Framework

You can locate Inspection framework from the More options menu located on the bottom-left corner when you open a project. See the image below:

To initiate the inspection framework, you click the More options menu and click Run. When you run the inspection framework from your project, if there are any unsupported methods or errors in your code, it shows them on the screen immediately.

The following guide helps you with each rule that Inspection Framework will help you identify and fix the issues in your project.

No AngularJS Service

This rule attempts to catch and prevent any usage of AngularJS Service.

Rule Details

If you want to remove AngularJS service this rule can help you by warning you of any usage of AngularJS service in your app.

That includes:

For replacing AngularJS service, we can use objects defined on the App.

Examples of incorrect code for this rule

Use

Examples of correct code for this rule

Use

No AngularJS Controller

This rule attempts to catch and prevent any usage of the AngularJS controller.

Rule Details

If you want to remove AngularJS controller this rule can help you by warning you of any usage of AngularJs controller in your app.

That includes:

Use

Examples of correct code for this rule:

Create a prefab with all the properties and methods. Export the prefab to the project where it needs to be used.

Use

No AngularJS Factory

This rule attempts to catch and prevent any usage of AngularJS Factory.

Rule Details

If you want to remove AngularJS Factory this rule can help you by warning you of any usage of AngularJS factory in your app.

That includes:

For replacing the AngularJS factory, we can use objects defined on the App.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

Define the factory in app.js. Any AngularJS dependency being used in the factory will NOT work. That has to be defined separately in app.js before defining the factory.

Use

No AngularJS Config

This rule attempts to catch and prevent any usage of AngularJS config.

Rule Details

If you want to remove AngularJS config this rule can help you by warning you of any usage of AngularJS config in your app.

That includes:

Examples of incorrect code for this rule:

Examples of correct code for this rule:

Not supported in Wavemaker 10.x.

No AngularJS Run

This rule attempts to catch and prevent any usage of AngularJS run.

Rule Details

If you want to remove AngularJS run this rule can help you by warning you of any usage of AngularJS run in your app.

That includes:

Examples of incorrect code for this rule:

Examples of correct code for this rule:

Not supported in Wavemaker 10.x.

No AngularJS Constant

This rule attempts to catch and prevent any usage of AngularJS constant.

Rule Details

If you want to remove AngularJS constant this rule can help you by warning you of any usage of AngularJS constant in your app.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

No AngularJS Value

This rule attempts to catch and prevent any usage of AngularJS value.

Rule Details

If you want to remove AngularJS value this rule can help you by warning you of any usage of AngularJS value in your app.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

No AngularJS $scope

This rule attempts to catch and prevent any usage of AngularJS $scope.

Rule Details

If you want to remove AngularJS $scope this rule can help you by warning you of any usage of AngularJS $scope in your app.

That includes:

For replacing AngularJS $scope, we can context for defining variables and methods.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

$scope is not supported in 10.x. Instead of $scope, current context can be used.

Use

No AngularJS Arrow Function

This rule attempts to catch and prevent any usage of AngularJS Arrow functions.

Rule Details

If you want to remove AngularJS Arrow functions this rule can help you by warning you of any usage of AngularJS arrow functions in your app.

That includes:

For replacing the AngularJS arrow function, we can normal functions.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

Arrow functions are not supported in 10.x. Normal functions can be defined and used.

Use

No AngularJS $location

This rule attempts to catch and prevent any usage of AngularJS $location.

Rule Details

If you want to remove AngularJS $location, this rule can help you by warning you of any usage of AngularJS $location in your app.

Examples of incorrect code for this rule:

Examples of correct code for this rule:

No AngularJS $apply

This rule attempts to catch and prevent any usage of AngularJS $apply.

Rule Details

If you want to remove AngularJS $apply this rule can help you by warning you of any usage of AngularJS $apply in your app.

Examples of incorrect code for this rule:

Examples of correct code for this rule:

Not supported in Wavemaker 10.x.

No AngularJS $watch

This rule attempts to catch and prevent any usage of AngularJS $watch.

Rule Details

If you want to remove AngularJS $watch this rule can help you by warning you of any usage of AngularJS $watch in your app.

Examples of incorrect code for this rule:

Examples of correct code for this rule:

Widget/ Variable events can be used instead of $watch.

No AngularJS $filter

This rule attempts to catch and prevent any usage of the AngularJS $filter.

Rule Details

If you want to remove AngularJS $filter this rule can help you by warning you of any usage of AngularJS $filter in your app.

Examples of incorrect code for this rule:

Examples of correct code for this rule:

Not supported in Wavemaker 10.x

No AngularJS $window

This rule attempts to catch and prevent any usage of AngularJS $window.

Rule Details

If you want to remove AngularJS $window this rule can help you by warning you of any usage of AngularJS $window in your app.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

$window is not supported in 10x. “Window” can be used in 10x instead of $window.

No AngularJS Component

This rule attempts to catch and prevent any usage of AngularJS components.

Rule Details

If you want to remove AngularJS components this rule can help you by warning you of any usage of AngularJS components in your app.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

Components are not supported in wavemaker 10.x. You can yse Prefabs instead of the component.
Drag and drop the prefab where you want to use instead of the component.

No AngularJS Directive

This rule attempts to catch and prevent any usage of AngularJS directives.

Rule Details

If you want to remove AngularJS directives this rule can help you by warning you of any usage of AngularJS directives in your app.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

Directives are not supported in wavemaker 10.x. You can use Prefabs instead of a directive.
Drag and drop the prefab where you want to use instead of a directive.

No AngularJS Provider

This rule attempts to catch and prevent any usage of AngularJS providers.

Rule Details

If you want to remove AngularJS Provider this rule can help you by warning you of any usage of AngularJS Provider in your app.

Examples of incorrect code for this rule:

Examples of correct code for this rule:

Not supported in 10x. You can use Prefabs with outbound properties.

No AngularJS $parent

This rule attempts to catch and prevent any usage of AngularJS $parent.

Rule Details

If you want to remove AngularJS $parent this rule can help you by warning you of any usage of AngularJS $parent in your app.

Examples of incorrect code for this rule:

Use

Examples of correct code for this rule:

$parent is not supported in Wavemaker 10.x.
Use App or App.activePage based on the requirement.

No AngularJS RouteParams

This rule attempts to catch and prevent any usage of AngularJS RouteParams.

Rule Details

If you want to remove AngularJS RouteParams this rule can help you by warning you of any usage of AngularJS RouteParams in your app.

Examples of incorrect code for this rule:

Examples of correct code for this rule:

Not supported in Wavemaker 10.x

 
We use cookies to provide you with a better experience. By using our website you agree to the use of cookies as described in our Privacy Policy.