SonarQube 6.4, deprecated rules and how to fix them - sonarqube

I'm looking for a way to change deprecated rules in SonarQube. I've got my own Quantity configuration, but Sonar shows that there are 2 deprecated rules, it suggest mi other ones, but I have no idea how to change/fix them. I've looked through internet and google, but there's no asnwer, can anyone help?

The suggested replacement rules should be linked. Click through. Now you're on the detail page of the suggested replacement. At the bottom next to "Quality Profiles", assuming you're logged in with the correct permissions, you'll see an "Activate" button. Use it to turn the replacement on in your profile. Now you can go back to the deprecated rule and remove it from your quality profile.

Related

SonarQube: Issues for one project are not displayed

In my SonarQube installation for one project the issues overview can't be displayed, it always shows "Still working..." at the top.
See http://didge.my-wan.de/sonar/component_issues/index?id=net.troja.eve%3Aproducersaid
When I navigate to the files directly I can see all the issues! Only the overview doesn't work.
Any suggestions?
PS: I change to logging to debug, but couldn't find anything useful.
It looks like a string escaping bug. If you rename your project to remove the quote character, the page will display correctly. I have created a JIRA issue to track this, will be fixed in 5.2 (and maybe backported to 5.1.x).

Wrong URL used when accessing article through a module

I have an annoying problem and am hoping someone will be able to help.
We use quite a few extensions on our Joomla site (Roksprocket mainly but also Global News Filter for instance).
The modules themselves are working fine however when I click on an article in one of these modules the article opens but it doesn't use the nice URL that should be displayed (we have Search Engine Friendly URLs set to Yes and Use URL rewriting set to Yes). This happens for all modules that draw off a category (so I don't think its linked to a specific extension).
For instance on our Case Studies page if you click on Read More on the RSA Case Study you get this URL
http://www.assima.net/en/resources/case-studies/99-home/resources/case-studies/ats-case-studies/649-case-study-rsa
but what you should get is the menu item URL associated with this article which is this
http://www.assima.net/en/resources/case-studies/ats-case-studies/rsa
I don't think there is anything wrong with our .htaccess as I reverted back to the default Joomla one and it still occured.
Also this used to work perfectly. I first noticed it around October or November last year.
If anyone has any ideas I would really appreciate it, I've googled the problem many times and not found any help.
Thanks
Emma
FIXED.
Due to a Joomla bug. Fixed by overwriting the route.php file as described in this post: http://forum.joomla.org/viewtopic.php?f=625&t=831007&start=30

Why won't Joomla render my PHP/Javascript tags on the front page?

This is my first project on website development using Joomla. I am trying to make a dashboard implementation. My problem is that whenever I edit my script in article using source tags, the changes are not reflected on my site immediately. I have even tried restarting my Wamp server, but in vain. Any tips that I should follow?
Thanks.
Depending on your Joomla-Version there are different options to check to suppress stripping or filtering of tags like <script> for the frontend. Here are some hints:
First of all your tags could be filtered out client-sided depending on the editor you selected. If you use the standard TinyMCE e.g. go to Extensions - Plugins - TinyMCE where you will find a list of prohibited Elements which may include script. Be exactly sure what you do though, always check who should be allowed to enter script tags in an article, this is almost always a major security risk if anybody else like you as an administrator has the right to use them. So another option could be to just set the editor for your administrator/author accout to plain text and leave TinyMCE untouched.
Another filtering is done server-sided by joomla itself which can be controlled in "Global Configuration" -> "Text filter". After a standard installation all groups will use Default Black List filtering which includes removing script tags. Here you could define "No Filtering" for the Super User group e.g.
Again, all this depends on your Joomla-Version (my examples are referring to 2.5) and are hints to get around the issue but without knowing your security concept.

Remove a page form recommendation box

I have recommendation box on my site.
There was one popular page, that doesn't exist any more.
But it still appears in recommendation box.
How can I remove this page from plugin?
Try going to Page settings > Basic Information, and unchecking Show this map where your location info is.
It doesn't make any sense, but seems to solve the problem.

Joomla - delay on publishing new things

If I disable the cache on Joomla 1.5 and I publish a new menu item or any other information on the site the new element don't appear immediately after.
If I enable the cache on Joomla 1.5 and I set it to 1 minute delay, and I publish a new menu item, I wait a minute, I do refresh, and I see no menu item.
I only see those new elements, after a certain period of time, regardless joomla configuration options on cache page.
What could this be?
Thanks a lot,
MEM
For anyone else that may have this same issue:
It seems that this is something related with Joomla 1.5.x only. Not sure on what configurations. The only way that we found to solve it was to:
If we go to Extensions (or addons not sure since this one is not in English).
Then we click under "plugin management" and then, we need to find the system-cache option, and disabled it.
This could be a broswer issue. I use firefox and used to have a delay in publishing so i got an addon that clears cache with one click.
https://addons.mozilla.org/en-US/firefox/addon/1801/ < that is the link to the one i use. I dont get any issues with delayed publishing.
They are other addons that clear cache and also cookie sessions.
Web developer toolkit is also worthy of a download to help you look at tags, image alts, etc.
Hope this helps.

Resources