SonarQube Frequently asked questions (FAQ) | SonarQube FAQs

sonarqube-faqs

 

SonarQube Frequently asked questions (FAQ)

Is SonarQube Replacement for Checkstyle, PMD, FindBugs?
————————————————————–

Answers – YES and NO

Why Yes?
Sonar will run CheckStyle, FindBugs and PMD, as well as a few other “plugins” such as Cobertura (code coverage) by default for Java projects. The main added value, however, is that it stores the history in a database. You can then see the trend. Are you improving the code base or are you doing the opposite? Only a tool with memory can tell you that.
Why No?
SonarQube is currently on the way to deprecate PMD, Checkstyle and Findbugs and use their own technology to analyze Java code (called SonarJava). They do it, because they don’t want to spend their time fixing, upgrading (or waiting on it) those libraries (e.g. for Java 8), which for example uses outdated libraries. Well at least since SonarQube 6.3+ it seems to be that Findbugs is (at the moment) no longer supported as a plugin.

 

What is the SonarQube Plugins available which can be integrated with Eclipse, IntelliJ IDEA, Visual Studio, Visual Studio Code, and Atom?
————————————————————–
Answer –
SonarLint is an extension to your favorite IDE that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.
Reference

 

Where i can get the Support related to SonarQube?
————————————————————–
Google Grops
Facebook Groups
Linkedin Groups
Public Forum

 

Top 10 Lessons Learned from 2 Years Work with Codehaus Sonar
————————————————————–

 

Configure Sonar to exclude files from Maven pom.xml
————————————————————–

 

Does Sonar support multiple language in same project ex. sonar.language=java,grvy?
————————————————————–
Starting with SonarQube 4.2, multi-language projects are supported.
This automatically happens when sonar.language is not set.

 

How to exclude the directory in SonarQube?
————————————————————–
try something like this:
sonar.exclusions=src/java/test/**

sonar.exclusions=system/**, test/**, application/third_party/**, application/logs/**

How to Increase SonarQube Heap Size?
————————————————————–
Whenever you get a issues like “SonarQube analysis failed java.lang.OutOfMemoryError: Java heap space”, you may following options to follow.
Option 1 – Reduce the analyze scope by either reducing the project size(split your project in smaller sub projects/modules) or reducing the set of rules that are analyzed.
Option 2 – Increase the memory size that can be consumed by the JVM.  This can be done by adding the following Environment Variable:
SONAR_RUNNER_OPTS=”-Xmx3062m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m”
e.g Linux
> export SONAR_SCANNER_OPTS=”-Xmx3062m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m”
e.g Windows
> set SONAR_SCANNER_OPTS=”-Xmx3062m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m”

 

Reference
Tagged : / / / / /

DevOps Course Training FAQs | Online | Classroom | scmGalaxy

devops-training-faqs

scmGalaxy Training FAQ

Can I attend a Demo Session?

You can go through the sample class recording and it would give you a clear insight about how the classes are conducted, quality of instructors and inter-activeness in a class.
Can we have a demo class?
We do not have any demo class of concept. In case if you want to get familiar with our training methodology and process, you can request a pre recorded sessions videos before attending a live class?
Who are the training Instructors?
All our instructors are working professionals from the Industry and have at least 10-12 yrs of relevant experience in various domains. They are subject matter experts and are trained for providing online training so that participants get a great learning experience.
Do you provide placement assistance?
No, But we help you to get prepared for the interview. Since there is a big demand for this skill, we help our students for resumes preparations, work on real life projects and provide assistance for interview preparation.
What are the system requirements for this course?
The system requirements include Windows / Mac / Linux PC, Minimum 2GB RAM and 20 GB HDD Storage with Windows/CentOS/Redhat/Ubuntu/Fedora.
How will I execute the Practicals?
In Cloud, We can help you setup the instance in cloud (AWS, Cloudshare & Azure), the same VMs can be used in this training.
Also, We will provide you with step-wise installation guide to set up the Virtual Box Cent OS environment on your system which will be used for doing the hands-on exercises, assignments, etc.
What are the payment options?
You can pay using NetBanking from all the leading banks. For USD payment, you can pay by Paypal or Wired.
What if I have more queries?
Please email to info@scmGalaxy.com
What if I miss a class?
You will never lose any lecture. You can choose either of the two options:
1. View the class presentation and recordings that are available for online viewing through our site.
2. You can attend the missed session, in any other live batch free of cost. Please note, access to the course material will be available for lifetime once you have enrolled into the course. If we provide only one time enrollment and you can attend our training any number of times of that specific course free of cost in future
Do we have classroom training?
We can provide class room training only if number of participants are more than 6 in that specific city.
What is the location of the training?
Its virtual led training so the training can be attended using Webex | GoToMeeting
How is the virtual led online training place?
What is difference between DevOps and Build/Release courses?
Do you provide any certificates of the training?
We are not authorized for providing any officials certificates but we help all the students to get official certificates through proper assistant.
What if you do not like to continue the class due to personal reason?
You can attend the missed session, in any other live batch free of cost. Please note, access to the course material will be available for lifetime once you have enrolled into the course. If we provide only one time enrollment and you can attend our training any number of times of that specific course free of cost in future
Do we have any discount in the fees?
Our fees are very competitive. Having said that if we get courses enrollment in groups, we do provide following discount
One Students – 5% Flat discount
Two to Three students – 10% Flat discount
Four to Six Student – 15% Flat discount
Seven & More – 25% Flat Discount
Refund Policy

If you are reaching to us that means you have a genuine need of this training, but if you feel that the training does not fit to your expectation level, You may share your feedback with trainer and try to resolve the concern. We have no refund policy once the training is confirmed.

Why we should trust scmGalaxy for online training
You can know more about us on Web, Twitter, Facebook and linkedin and take your own decision. Also, you can email us to know more about us. We will call you back and help you more about the trusting scmGalaxy for your online training.

How to get fees receipt?
You can avail the online training reciept if you pay us via Paypal or Elance. You can also ask for send you the scan of the fees receipt.

 

Mode of Payment – Online Bank Transfer using NEFT | Paypal | Elance.com | Wired Transfer | TransferWise

Registration is based on First Come basis and only confirmed registration would be considered.

Course Materials – Would be shared everyday end of the session every day

Lab – 70% of the training consist of lab.

Demo Class –  ScmGlaxy team does not believe in demo class concept as this is very difficult to evaluate any training/trainer very first day in 90 mins. Still, if you want to experience our training before enrollment, we may add you in any on-going live class based on your special request. If you want to know more about us – Click here

What if you miss the scheduled class? – If you miss the scheduled class, you can be a part of other ongoing batches any time in future free of cost.

scmGalaxy Advantage – If you enroll for our courses, you can attend for our training any number of times of that specific course free of cost

Tagged : / / / / / / / /

Rational ClearCase Frequently Asked Questions – ClearCase Faqs

clearcase-faq

1. How do I find all view private files in my view?

cleartool ls -r -view_only

This restricts the listing to objects that belong logically to the view: view-private files, view-private directories; checked-out files.
NOTE: Checked-out directories are not listed.
For more information run “cleartool man lscheckout” from the command line.

2. How do I find all view private files in my view with a particular pattern?

cleartool ls -r -view_only | find “.java”

3. How do I find all files on my private branch?

cleartool find -all -version “version(…/private_branch/LATEST)” -print

For more information run “cleartool man find” from the command line.

4. How do I find the all file elements under a directory?

cleartool find . -type f -print

5. How do I find all sym links under a directory?

cleartool find . -type l -print

6. How do I find all checkouts on a specific branch?

From Clearcase Explorer if you have a view that is referencing the branch right click on the view name and click “Find Checkouts”.

From the command line (within a VOB/view context – the view does not have to reference the branch):

cleartool lsco -brtype branch_name -r -l

cleartool lsco -brtype branch_name -r -l -cvi (checkouts which are in the current view only)

cleartool lsco -brtype branch_name -r -l -me (only my checkouts)

For more information run “cleartool man lscheckout” from the command line.

8. How do I see the changes made to a branch between two specific dates?

From the command line

cleartool find -all -ver “brtype(branch_name) && created_since() && !created_since(” -print

e.g.

cleartool find -all -ver “brtype(test_3.1_main) && created_since(12-Dec-03.01:00) && !created_since(30-Dec-03)” -print

and created by Mark:

cleartool find -all -ver “brtype(ep_3.1_main) && created_since(12-Dec-03.01:00) && !created_since(30-Dec-03) && created_by(Mark)” -print

9. How do I find all changes made on a integration branch since the last release?

If the label associated with the last release it known then run the following command in a view context.

cleartool find -all -ver “version(…/integration_branch_name/LATEST) && !lbtype(LABEL_NAME) && !version(…/integration_branch_name/0)” -print

e.g. cleartool find -all -ver “version(…/test_5.1_main/LATEST) && !lbtype(TEST_5.1.0.0) && !version(…/test_5.1_main/0)” -print

10. How do I find the differences between two labels?

From the command line in a view context run the following command:

cleartool find -all -ver “lbtype(LABEL1) && !lbtype(LABEL_2)” -print

11. How do I find all file elements with zero length in my view?

cleartool find -all -cvi -nxname -type f -print | ccperl -ne “chomp; print qq($\n) if -z ($); “

12. How do I see all recent modifications to a VOB

ct lshistory -all -since -user
e.g.

since a certain date by all users of the VOB

ct lshistory -all -since 12-Jan-05

since yesterday by all users of the VOB

ct lshistory -all -since yesterday

list only those modifications made by mark (note userid is case sensitive):

ct lshistory -all -since yesterday -user mark

13. How do I find checkouts by a single user?

For an individual

Right click on the VOB name in Clearcase Explorer > History

From the toolbar select File> Open > Go to any view directory > Select>
Check “Recurse through subdirectories” > OK

From the first pull down menu on the toolbar select the user’s private branch.

14. How do I set my config spec to look at elements with a particular label?

Set your config spec to look like this

element * CHECKEDOUT

element * LABEL_NAME -nocheckout

element * /main/0

Line 1: Select any checkouts in my view. This line is always required by clearcase even if you do not plan to checkout any elements in the view.
Line 2: For all other elements in the VOB select any elements which have label LABEL_NAME attached to them. Do not allow me to checkout elements with this label.
Line 3: For all other elements in the VOB select version zero – the empty version of the element.

15. How do I find all elements associated with a label?

Run the following from within a view

cleartool find -all -version “lbtype(MY_LABEL)” -print

16. What are reserved and unreserved checkouts?

In some version-control systems, only one user at a time can reserve the right to create a new version on a branch. In other systems, many users can compete to create the same new version. Rational Clearcase supports both models by allowing two kinds of checkouts: reserved and unreserved.
The view with a reserved checkout has the exclusive right to check in a new version for a branch. Many views can have unreserved checkouts. An unreserved checkout does not guarantee the right to create the successor version. If several views have unreserved checkouts, the first view to check in the element on a branch creates the successor; developers who are working in other views must merge the checked-in changes into their own work before they can check in.
The figure below illustrates checked-out versions created by reserved and unreserved checkouts, and the effects of subsequent checkins.

With a reserved checkout, a checkin of version 3 creates the latest version on the branch, version 4. With an unreserved checkout, the first checkin creates the latest version on the branch, version 4. But a subsequent checkin of version 3 is blocked until the user merges the latest version, version 4, with the checked-out version.

17. What is a hijacked file?

When Rational Clearcase loads a file element into a snapshot view, it applies the file system read-only attribute to the file. If you change this attribute and modify a loaded file without checking it out, Clearcase considers the file hijacked. Only loaded files can be hijacked; view-private files are not under Clearcase control and you can modify them without involving Clearcase.
Hijacking takes a file outside direct Clearcase control. Although the update operation detects whether you have hijacked a file, we recommend that you do not hijack files as standard practice.
Note: You can hijack files only in a snapshot view; you cannot modify a version in a dynamic view until you check it out.

Directories and Hijacking
Hijacking does not apply to directory elements. You can create view-private files and directories without having to check out the parent directory. However, the only way to add or remove elements from source control is to check out the parent directory.

18. How do I find hijacked files in my snapshot view?

In CC Explorer right click on the view name and select “Find Modified Files”

Under “Details” check “Display results when closed”. When finished a View Update

Window will appear with details of any hijacked files.

19. How do I compare a hijacked file to the version in the VOB?

In the right pane of the Snapshot View Update window, right-click a hijacked file.
On the shortcut menu, click Compare with Original Version.

20. How do I check out a hijacked file/save the changes made to a file while hijacked?

To keep the modifications in a hijacked file, check out the file:
1 In the right pane of the Snapshot View Update window, right-click a hijacked file.
2 On the shortcut menu, click “Check Out”.
3 Clearcase treats a checked-out hijacked file as it does any other checkout.
When you are ready, you can check in the file.

21. How do I undo a hijacked file?

If, for specific hijacked files, you want to discard your changes and get a fresh copy of the version from the VOB, you can undo the hijack.
1 In the right pane of the Snapshot View Update window, select one or more hijacked files.
2 Right-click the selected files, and click “Undo Hijacked File”.
Clearcase overwrites the hijacked file with the version that was loaded originally in the view. Update the snapshot view if you want the very latest version of the element as specified by your config spec.

22. How does Clearcase determine if a file is hijacked?

To keep track of file modifications in a snapshot view, Clearcase stores the size and last-modified time stamp of a loaded file (as reported by the Windows file system). Clearcase updates these values each time you check out a file, check in a file, or load a new version into the view.
To determine whether a file is hijacked, Clearcase compares the current size and last-modified time stamp of a non-checked-out file with the size and time stamp recorded in the view database. If either value is different from the value in the view database, Clearcase considers the file hijacked.
Changing the read-only attribute of a non-checked-out file does not necessarily mean Clearcase considers the file hijacked.

23. What does “Checked out but removed” mean?

SYMPTOM:

In Clearcase Explorer, I see a file with coloured questions marks next to it. When I hover over it, it say’s “Checked Out but Removed”.

ANSWER:

“Checkedout but removed” indicates that a file is recorded as having been checkedout by the VOB database, but that its corresponding view private file was subsequently removed.

This usually happens because the file (FILE1) is actually a symlink to another file (FILE2), which is checked out.

If this is the case

When FILE2 is checked out, Clearcase copies a view private copy of the checked out file to the file that was checked out (FILE2 in this case). However, because FILE 1and FILE2 in reality reference the same internal storage element, Clearcase therefore thinks that FILE1 has been checked out (which is correct) and removed (which is technically correct, since Clearcase did not copy a view private version of the checked out file to FILE1).

RESOLUTION:

Right click on the element name> Symlinks > Symlink Target Operations

Checkin or uncheckout the target element.

If the element is not a symlink then one way to recover from this is to do a ‘cleartool unco’. The other way is to copy a file with the same name into that directory. Note that any work on the checked out copy of the file cannot be saved, because there was no view private copy of the file in which the contents were stored.

Tagged : / / / / / / /