Inspecting configuration resources
Guidewire Studio analyzes your configuration resources to identify various errors and style-related issues in your project code. Studio performs this analysis by applying inspections to your project files, and then reports any issues found.
Studio provides many inspections for analyzing the code in your configuration resources. The available inspections include the following:
- Anonymous classes that can be replaced with block expressions
- Getter and setter methods that can be replaced with class properties
- Missing Gosudoc comments
- Hardcoded labels in PCF files
- Empty loop bodies
- Automatically, as you edit your code in the Gosu editor
- By explicitly running inspections by on one or more files
- By running inspections from the command line
See also
View inspection settings
View the descriptions of code inspections, and set whether an inspection is enabled.
About this task
Procedure
- In Guidewire Studio, click .
- In the Settings dialog, navigate to .
-
You can do one of the following:
- To view the description of an inspection, click on it.
- To change whether an inspection is enabled, set or clear the check box next to it.
What to do next
See also
Run inspections in Guidewire Studio
Run code inspections in Guidewire Studio to identify certain coding errors and style issues.
About this task
Procedure
- In Guidewire Studio, open the desired file, or select the desired files or folders in the Project tool window.
-
You can do one of the following:
- To run all inspections, click .
- To run a particular inspection, click .
What to do next
See also
Run inspections only on modified files
Create a new inspection profile that is defined to run inspections only on files that you have modified, or new files that you have added.
About this task
Procedure
- In Guidewire Studio, click .
- In the Settings dialog, navigate to .
- In the Profile drop-down list, click Project Default.
- Click Show Scheme Actions, and then click Duplicate.
- Type a name for the profile, and then press Enter.
- Click an inspection to include in the new profile.
- To enable the inspection, set the check box next to it.
- Next to Severity, click In All Scopes, and then click ClientModified.
- Repeat from step 6 to include all desired inspections in the profile. Also unset the check box next to any inspections to remove from the profile.
What to do next
See also
Run inspections from the command line
Run code inspections from the command line as part of your build or QA process.
Before you begin
About this task
Procedure
What to do next
See also
View command line inspection results
After running inspections from the command line, view the inspection results.
About this task
Procedure
- In Guidewire Studio, click .
- In the Select Path dialog, navigate to your PolicyCenter installation folder, and then click the inspection_results folder.
- Click OK.
- View the inspection results in the Inspection Results tool window.
What to do next
See also
