Difference between revisions of "Tips"
m (→Create a project by pointing to source code on disk) |
|||
Line 3: | Line 3: | ||
You can create a project by pointing to a source code directory in disk, or importing files in the Workbench workspace, which is more used by software engineers ready to refactor code. Importing files in the workspace can be done from files on disk or files in a source code control system, like CVS or SVN |
You can create a project by pointing to a source code directory in disk, or importing files in the Workbench workspace, which is more used by software engineers ready to refactor code. Importing files in the workspace can be done from files on disk or files in a source code control system, like CVS or SVN |
||
===Create a project by pointing to source code on disk=== |
===Create a project by pointing to source code on disk=== |
||
− | File > New > Project |
+ | File => New => Project => General => Project |
− | + | Uncheck '''Use Default Location''' and '''Browse''' to the location of your source code on disk. |
|
− | Name the project and click Finish. If this is the first project, there are no Globalyzer configurations created yet to associate to this project. click |
+ | Name the project and click '''Finish'''. If this is the first project, there are no Globalyzer configurations created yet to associate to this project. click '''New''' |
To associate scanning logic to the new project click |
To associate scanning logic to the new project click |
||
− | Scan > Manage Scan |
+ | Scan => Manage Scan |
and follow the wizard. |
and follow the wizard. |
||
===Check out a project === |
===Check out a project === |
||
− | File > New > Project... |
+ | File => New => Project... |
and select the source code control system, such as CVS or SVN if you have installed as an extension to the out of the box Workbench. |
and select the source code control system, such as CVS or SVN if you have installed as an extension to the out of the box Workbench. |
||
− | Note: |
+ | '''Note:''' To add an extension such as SVN, select: |
− | Help > Install |
+ | Help => Install New Software ... |
and, for SVN, add "Subclipse - http://subclipse.tigris.org/update_1.6.x/" or another plugin or your choice. |
and, for SVN, add "Subclipse - http://subclipse.tigris.org/update_1.6.x/" or another plugin or your choice. |
||
== Restrict the Scanning Results to a Directory or to a File == |
== Restrict the Scanning Results to a Directory or to a File == |
||
− | + | Select directory or file in Project Explorer, right click and choose: |
|
+ | Globalyzer => View Scan Results For |
||
Follow the above when you have a lot of results from scanning and you want to see only those issues relative to a sub-directory or even to one file. |
Follow the above when you have a lot of results from scanning and you want to see only those issues relative to a sub-directory or even to one file. |
||
== Showing the Rule Sets in a Browser or in the Workbench == |
== Showing the Rule Sets in a Browser or in the Workbench == |
||
− | Window > Preferences > General > Editor > Web Browser |
+ | Window => Preferences => General => Editor => Web Browser |
− | Choose |
+ | Choose '''Use internal web browser''' if you want to see the rule sets in the Workbench when you click '''View your Scan Rule Sets'''. |
− | Choose |
+ | Choose '''Use external web browser''' if you want to see the rule sets in a separate Web browser. |
== Spell Checking == |
== Spell Checking == |
||
− | Window > Preferences > General > Editors > Text Editor > Spelling |
+ | Window > Preferences => General => Editors => Text Editor => Spelling |
will allow you to configure how to apply spell checking in a text editor. |
will allow you to configure how to apply spell checking in a text editor. |
||
Line 39: | Line 40: | ||
Here are a couple of tips to avoid that error: |
Here are a couple of tips to avoid that error: |
||
====Prevent in-place OLE editors ==== |
====Prevent in-place OLE editors ==== |
||
− | Window > Preferences > General > Editors |
+ | Window => Preferences => General => Editors |
You can force OLE applications to open as stand-alone applications by unchecking the |
You can force OLE applications to open as stand-alone applications by unchecking the |
||
− | + | '''Allow in-place system editors''' option on the preference page. |
|
====Prevent opening by default the reports==== |
====Prevent opening by default the reports==== |
||
− | Window > Preferences > Globalyzer |
+ | Window => Preferences => Globalyzer |
− | and uncheck the |
+ | and uncheck the '''Display Report after Export''' |
====Change the file association==== |
====Change the file association==== |
||
− | Window > Preferences > General > Editors > File associations |
+ | Window => Preferences => General => Editors => File associations |
and associate the editor with the offending extension |
and associate the editor with the offending extension |
Revision as of 13:12, 29 May 2012
Contents
Create a new Project
You can create a project by pointing to a source code directory in disk, or importing files in the Workbench workspace, which is more used by software engineers ready to refactor code. Importing files in the workspace can be done from files on disk or files in a source code control system, like CVS or SVN
Create a project by pointing to source code on disk
File => New => Project => General => Project
Uncheck Use Default Location and Browse to the location of your source code on disk. Name the project and click Finish. If this is the first project, there are no Globalyzer configurations created yet to associate to this project. click New To associate scanning logic to the new project click
Scan => Manage Scan
and follow the wizard.
Check out a project
File => New => Project...
and select the source code control system, such as CVS or SVN if you have installed as an extension to the out of the box Workbench.
Note: To add an extension such as SVN, select:
Help => Install New Software ...
and, for SVN, add "Subclipse - http://subclipse.tigris.org/update_1.6.x/" or another plugin or your choice.
Restrict the Scanning Results to a Directory or to a File
Select directory or file in Project Explorer, right click and choose:
Globalyzer => View Scan Results For
Follow the above when you have a lot of results from scanning and you want to see only those issues relative to a sub-directory or even to one file.
Showing the Rule Sets in a Browser or in the Workbench
Window => Preferences => General => Editor => Web Browser
Choose Use internal web browser if you want to see the rule sets in the Workbench when you click View your Scan Rule Sets. Choose Use external web browser if you want to see the rule sets in a separate Web browser.
Spell Checking
Window > Preferences => General => Editors => Text Editor => Spelling
will allow you to configure how to apply spell checking in a text editor.
Generating Reports
Prevent possible OLE Error when generating reports
By default, on Windows, OLE applications like Microsoft Word or Excel open as in-place editors. When generating a report, It is possible to get an OLE error when using the default settings because of the specifics of your system. Here are a couple of tips to avoid that error:
Prevent in-place OLE editors
Window => Preferences => General => Editors
You can force OLE applications to open as stand-alone applications by unchecking the Allow in-place system editors option on the preference page.
Prevent opening by default the reports
Window => Preferences => Globalyzer
and uncheck the Display Report after Export
Change the file association
Window => Preferences => General => Editors => File associations
and associate the editor with the offending extension