Two Different Projects on SonarQube using same plugin, but applying different rules from Plugin - plugins

So suppose on a single SonarQube instance, two different projects want to be onboarded and scanned. They are to be scanned using the same plugin, but we want to apply different custom rules (and perhaps even use different rules from the plugin for each project), is there a way to do this without having one project interfere with the other?
I'm fairly new to SonarQube, but my understanding is that you cannot have two different plugins target a different file extension, is there anyway to utilize the same plugin just with using different base plugin rules and custom rules as well?

You can create custom quality profiles with the set of rules you want to apply for each project.
Quality Profiles -> Create -> Enter a name and select the language -> Create
If you select a parent the profile will inherit all the rules from it but you can select 'None' for the parent and after the profile is created you will be redirected to the profile settings page. Press 'Activate More' and 'Activate' the desired rules.
Once you are done with the configuration of you custom Quality profiles access you project -> Project Settings -> Quality Profiles and select the custom Quality Profiles you configured before

Related

How do I create and deploy custom settings for Salesforce, in Eclipse?

I have some custom settings in my org, but I do not appear to be able to synchronise them with my project in Eclipse. I've scanned the 'Add/Remove Metadata Components', but I can't find anything related to custom settings. Nor can I find a new Force.com object of type Custom Settingngs.
I want to deploy my changes from Eclipse, to a different sandbox, but of course the custom settings are missing.
Is this just not possible or am I missing something?
The custom settings should be available as a custom object on the object's list.
Did you refresh your metadata definition from server? (take a look to marked button on the screenshot below)

What type of Eclipse 4 customization should I choose - Application or Plugin?

I would like to create an Eclipse 4 customization, but I'm new to this aspect of Eclipse development.
As a result, I would like to ask the community what they would recommend based on the following requirements for an SDK-style custom component/project:
show up as a new project type with it's own Wizard
the wizard may use some of the built-in java source/path dialogs, but would also provide some custom dialogs of its own
based on the user selection, the wizard would generate starter code from some template(s)
once the project has been created, it will be similar to a Java project. IN FACT, I would like to allow someone the ability to compile select java code into different jars if they want - all within this one project
finally, when in these new project types inside the project explorer, I need to be able to execute custom commands (with UI support) - such as "Prepare Custom Extension", which will create JARs (if applicable) and copy all relevant source/folders into a prep location, then zip it up
Thanks and let me know if I need to clarify anything!
Bob

Xcode Targets, projects and tests?

what does exactly the settings for target mean. and how does it differ from project and/or test settings (which makes the project a build-only state).
My doubt is the clarity among all three of these and i need to understand a perpetual scope of all of them.
THanks,.,
An application have a single build/test settings but it can have multiple targets.
Suppose you are creating an application. Now you are receiving same application with just UI theme changes. In that case no need to create another project but you can create another target in same project. In the same way a project can have multiple targets which produce framework, static library etc.
So, whatever target specific settings you need to make will be made under target settings. Common settings will be part of build settings. If you are putting values in both settings, target settings will get highest priority.
Hope this helps..

How to use Target Definition in Product Configuration?

I have a question related to Eclipse PDE development.
I'm using target definitions to manage my target platform, and would like to include all plugins from one particular target definition in one particular product configuration.
It seems like I'm missing an easier way than what I'm currently doing (manually selecting all the stuff from the target definition, and manually updating it whenever I add stuff to or remove stuff from the the target definition).
AFAIK, there is no direct way. I would encourage you to open an enhancement request. The indirect way of achieving this would be to use Launch Configurations. Create a plug-in based launch configuration and select whichever plug-ins you want from the Target. Now, create a new product configuration and chose the third option in the 'Initialize the file content' on the New Product Configuration wizard.

Is it possible to group projects in Eclipse?

Is it possible to group projects in Eclipse? Or maybe have a project with sub-projects?
Eclipse offers working sets. You can reduce the projects shown in the Package Explorer and other places to whichever projects you defined into the working set. You can also show the union of various sets, and similar gymnastics.
You can define/edit/delete working sets from the little triangle dropdown menu on the Package Explorer and similar directory views.
You have two options, as far as I know:
use the already suggested Working Set option: you can create custom groups, use them to focus on a particular area of a project, activate them through Mylin; a really powerful tool indeed
use the basic concept of workspace which allows you to work on many projects and relate them (via the Build path "Projects" tab, and "Java EE Module Dependencies") so that when you need resources from other projects or you need to deploy them along with your main web application Eclipse will do that for you
Using Working Sets, you can add and organize them as shown in the picture :
As you can see my Java projects are in Working sets like Sem1 and TPs.
When you create an all new Project, just add the project to your working set, like this :
What about eclipse working sets? You define a working set and then add some projects to it. Later you could select a working set and only the projects you selected earlier are shown in project explorer.
Simpl grouping to reduce clutter.
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/cworkset.htm
Since Eclipse Mars M5, you can see a hierarchical view of nested projects in the Project Explorer view. In the view menu, click "Projects Layout > Hierarchical". https://www.eclipse.org/mars/noteworthy/#_nested_hierarchical_view_of_projects
Working sets are great, but they don't work if the projects in one working set has the same name as in another, and such occurs in some TI C2000 chip examples that are in different directories.