Skip to content

Commit 5ef940b

Browse files
initial commit based on content from salvis.com
0 parents  commit 5ef940b

File tree

8 files changed

+106
-0
lines changed

8 files changed

+106
-0
lines changed

FAQ.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Frequently Asked Questions
2+
3+
## I cannot install any extension on macOS
4+
5+
Maybe you’ve run into a SQL Developer bug on macOS. See [this blog post](https://www.salvis.com/blog/2015/05/05/cannot-install-extensions-in-sql-developer-4-on-mac-os-x/) for problem details and solution.
6+
7+
## I cannot install any extension on Windows
8+
9+
Have you installed SQL Developer in “C:\Program Files” or “C:\Program Files(x86)”? In this case the files are read-only for a standard Windows user.
10+
11+
To solve the problem start SQL Developer as Administrator or install SQL Developer in an user folder. While the former requires local administrator rights, the latter is always feasible.
12+
13+
## I’ve got errors in the extensions log after installation. What’s wrong?
14+
15+
You are probably using an outdated version of SQL Developer. In this case you see after a restart an error message in the Extensions-Log similar to the following:
16+
17+
![Extensions Log](images/extensions-log.png)
18+
19+
SQL Developer 1.x, 2.x and 3.x are based on the Extension Software Development Kit (ESDK) version 1. SQL Developer 4.x requires the use of ESDK version 2. Unfortunately these versions are not compatible. So we decided to support the newest SQL Developer version only.
20+
21+
Please update to SQL Developer 4.x or later since this is a prerequisite for this extension.
22+
23+
## What are the limitations?
24+
25+
See [parser limitations](parser-limitations.md) and [validator limitations](validator-limitations.md).
26+
27+
## What has changed in the latest version?
28+
29+
See the [release information](https://github.com/Trivadis/plsql-cop-sqldev/releases) for each version.
30+
31+
## What is the difference between "PL/SQL Cop" and "PL/SQL Cop for SQL Developer"?
32+
33+
*PL/SQL Cop* is a standalone command line utility. It processes SQL*Plus scripts within a directory tree and produces an HTML report and an Excel workbook. It reports metrics on file and PL/SQL unit level as well as violations of the [Trivadis PL/SQL & SQL Coding Guidelines Version 3.6](https://trivadis.github.io/plsql-and-sql-coding-guidelines/v3.6/).
34+
35+
*PL/SQL Cop for SQL Developer* is a cost-free extension to Oracle’s SQL Developer. It processes the content of an editor window and produces a HTML report which is similar to the one of PL/SQL Cop but reduced and adapted to the scope of a single editor window. Additionally the violations of the [Trivadis PL/SQL & SQL Coding Guidelines Version 3.6](https://trivadis.github.io/plsql-and-sql-coding-guidelines/v3.6/) are presented in a dedicated tab pane linked to the editor window to support quick navigation to the corresponding code.
36+
37+
## What are the licensing terms?
38+
39+
The preview/trial version of PL/SQL Cop is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. You may obtain a copy of the License at https://creativecommons.org/licenses/by-nc-nd/3.0/.
40+
41+
![CC-BY_NC-ND](images/CC-BY-NC-ND.png)

README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# PL/SQL Cop for SQL Developer
2+
3+
## Introduction
4+
5+
Trivadis PL/SQL Cop for SQL Developer is a free extension to check an editor content for compliance violations of the [Trivadis PL/SQL & SQL Coding Guidelines Version 3.6](https://trivadis.github.io/plsql-and-sql-coding-guidelines/v3.6/).
6+
7+
PL/SQL Cop calculates metrics per PL/SQL unit, such as:
8+
9+
- McCabe’s cyclomatic complexity
10+
- Halstead’s volume
11+
- The maintainability index
12+
- Lines
13+
- Commands (SQL*Plus and SQL)
14+
- Statements (within a PL/SQL unit)
15+
- etc.
16+
17+
And aggregates them on file level.
18+
19+
The results are presented in an additional tabbed panel. One tab shows all guideline violations to quickly navigate to the corresponding code position. The other tab contains a full HTML report, which also may be opened in your external browser.
20+
21+
## Examples
22+
23+
Open an Oracle PL/SQL or SQL script in a SQL Developer editor and press Ctrl-Shift-C to check your code against the Trivadis PL/SQL & SQL guidelines.
24+
25+
![Check](images/tvdcc-sqldev-check.png)
26+
27+
Navigate through the issues using the cursor keys to highlight the related code section in the linked editor.
28+
29+
![Issues](images/tvdcc-sqldev-issues.png)
30+
31+
Dock the PL/SQL Cop output window on your favorite position within SQL Developer and click on the report tab to reveal some additional metrics. Open the report in an external browser to print or save the report.
32+
33+
![Report](images/tvdcc-sqldev-report.png)
34+
35+
## Configure Update Center
36+
37+
Click the “Help” menu and select “Check for Updates…”. Press the “Add” button to register the update center http://update.salvis.com/ . If you have troubles to configure the proxy settings, because your company requires some additional authentication or similar, then I suggest to download PL/SQL Cop for SQL Developer via the “Download” button below and use the “Install From Local File” option.
38+
39+
![Update Center](images/salvis-update-center.png)
40+
41+
## Releases
42+
43+
You find all releases and release information [here](https://github.com/Trivadis/plsql-cop-sqldev/releases).
44+
45+
## Issues
46+
Please file your bug reports, enhancement requests, questions and other support requests within [Github's issue tracker](https://help.github.com/articles/about-issues/).
47+
48+
* [Questions](https://github.com/trivadis/plsql-cop-sqldev/issues?q=is%3Aissue+label%3Aquestion)
49+
* [Open enhancements](https://github.com/trivadis/plsql-cop-sqldev/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement)
50+
* [Open bugs](https://github.com/trivadis/plsql-cop-sqldev/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
51+
* [Submit new issue](https://github.com/trivadis/plsql-cop-sqldev/issues/new)
52+
53+
## Frequently Asked Questions
54+
55+
see [Frequently Ased Questions](FAQ.md).
56+
57+
## Further Information
58+
59+
Please find further information about PL/SQL Cop on the [Trivadis](https://www.trivadis.com/en/plsql-cop) website.
60+
61+
## License
62+
63+
PL/SQL Cop for SQL Developer is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. You may obtain a copy of the License at https://creativecommons.org/licenses/by-nc-nd/3.0/.
64+
65+
![CC-BY_NC-ND](images/CC-BY-NC-ND.png)

images/CC-BY-NC-ND.png

1.66 KB
Loading

images/extensions-log.png

16.5 KB
Loading

images/salvis-update-center.png

141 KB
Loading

images/tvdcc-sqldev-check.png

184 KB
Loading

images/tvdcc-sqldev-issues.png

203 KB
Loading

images/tvdcc-sqldev-report.png

121 KB
Loading

0 commit comments

Comments
 (0)