How to resolve line of code limit issue in sonarqube? - msbuild

I am running sonar-scanner msbuild on my vb.net project .
Since i didn't provide sonar.language properties during analysis it has analysed the .js files too. And now I am getting the error "Analyses suspended. You reached your 250000 lines of code limit allowed by your current license.Go to License page." on the sonarqube dashboard .
Now ,when i am running analysis by skipping the .js files though the analysis is successful the results are not getting reflected .
What can I do to view new results of analysis on sonarqube dashboard ?
Does deleting the project free-up that much lines of code , so that i can run analysis again ?
Also, can we use sonar.language property in command line while running analysis using scanner for msbuild ?
Thanks in Advance !!

You have to delete one or more projecs to get below the threshold of 250'000 lines of code so that the suspending of analysis is lifted. (Or, if the project you are analysing is the only one, delete this project) That is a kind of deadlock situation, your changes (skipping the .js-file) cannot be honored by the server, because he declined taking the analysis results due to being over the threshold.

Related

The specified procedure could not be found - how to identify?

I'm developing plugins for a program. Whenever I try to load my plugin in that program it crashes with an the specified procedure could not be foundbut nothing more.
Well to have an insight I tracked with Process Monitor (or ProcMon). I set the filter to just print messages for the process of my main program. However that application shows me including the libraries ends (after wandering through PATH) at the right file - i.e. Result: SUCCESS.
So my computer left me pretty clueless, yet refuses to work. Has anyone an idea how identify the missing procedure?
N.B.: Additionally I ran the DependencyWalker which gave me the usual error message because it's deprecated (dependency walker gives me errors on the system that runs correctly) - which could indicate that all dependencies are found.

Good data - debugging a graph (grf file)

I've got a graph that isn't behaving as it should in CloudConnect.
I'm running it locally, and it's completing, but not doing its work.
In an effort to figure out why this is, I've added printLog calls in many places, like the following
printLog(warn, 'transfrom from file ' + $in.0.fileName);
printLog(debug, 'joining etc');
The Phase consists of a FileList into a SimpleCopy, into a LookupJoin, a Reformat (produce SQL) and a DBInsert.
However, while I see logs for phases above, I'm not seeing anything produced in the log for any part of my phase. All parts of the phase do report running successfully in log. I've also done Enable Debugging on all connections in this phase.
Am I missing something to enable logging? Is there a better way to debug processing in CloudConnect?
Discovered the problem - the FileList will succeed if the source file cannot be found, but none of the subsequent steps will then fire. It's somewhat unintuitive, since the log files says 'succeeded'.
For debugging, after run you can access the data by right clicking on the connection, and selecting "View Data"
Sorry for the elementary question, but documentation didn't seem to cover this clearly, at least for a GoodData noob. I'll leave it up for anyone with the same problem!

FxCop - TFS integration : Need to create TFS bug to the last checked in person if FxCop fails

We are in a specific requirement regarding FxCop integration with TFS2010. The requirement is as follows.
- Execute the build.in specific intervals (There is already a method)
- Run the FxCop after each build. (This is too simple and known)
- If anything fails,need to create a TFS bug item and assign to the person who checked in the file last time.
We know that 'gated checkin' the the best way. But due to some reasons we cannot adopt that. The challenge we are facing is on the creation of the bugs against the last checked in person of each file.
Does anybody have done this type of solution before? Are there any code available public which does this?
Thanks in advance.
It was completed by coding the whole part. The basic idea is as follows
Take latest and run the exsting build script () which produce pdb as well
At the end of the build script start FxCops using FxCopCmd and get the output to xml file
Parse the xml and find out the xml message nodes which contains failed reviews
Extract the code file path from the above xml node
Map the file path to TFS path (ie c:\code to tfs path starting with $\code)
Find the last checked in person's details
Create and assign a bug to that person.
This was specific to our project where we cannot implement the gated checkin due to the large code base and high frequency code check ins. But had to implement automated reviews.
This can be closed

Loadrunner Analysis threw an error and i have no idea what could have caused these many errors

We recently ran a PT and while loading the result of that test in Analysis i got a popup telling me that there was an error, the error trace is below. I am not sure what could have caused these many errors or what they even mean. I check the Analysis report and it had all the necessary information.
One of the experts told me that the errors were there because i was capturing snaphots of error during the test run but i am not convienced, how can taking snaphots generate so many errors!!
Could one of the loadrunner experts here help me understand what these errors mean and what could have caused them?
Log Trace is available at: https://docs.google.com/document/d/16gfaAXpGcKC8f6wfKU_dVjM-IqfbzWgdM6VvVYvo68Q/edit
Related to the questions on scope of the error above: From your error log....
75004 Transaction : <OpenWebPage_Login_31>
InstanceID: 4294967299
VUser info:
+Host:HostMachine_IP,
+Group:scriptname.1,
+Script:scriptname.1,
+ID:1.
End Time: 1357937049.69605
Transaction end time is less than the scenario start time
I have cleaned up a single line in your log for clarity purposes. Note that the line includes a couple of items which have been scrubbed, such as "HostMachine_IP." You may also examine the hosting for group, "scriptname.1" to find out which load generator host this is applied to.
As you have indicated that you have multiple load generators involved, examine carefully the scope of the errors in the error log. Are they all tied to one particular hostname? If you have more than one group on the same host then are both groups impacted by this error (error follows host and not group). If the error is tied to a script and to a group, then does the same error occur with the same script in another group on another load generator, such a single user running as a control set on a different load generator?
Break The errors apart. Examine the errors critically. All Hosts mean one thing: One host another. A instances of a script across multiple load generators mean one thing: Instances on a single load generator another. All scripts on one load generator imply one thing, especially when the instances on a second/third load generator do not fail.
Make sure all of your load generators are at the same major.minor(patch) release level as your controller.

"File Not Found" in MSBuild Community Tasks -- Which File?

I'm trying to use the VssGet task of the MSBuild Community Tasks, and the error message "File or project not found" is beating me with a stick. I can't figure out what in particular the error message is referring to. Here's the task:
<LocalFilePath Include="C:\Documents and Settings\michaelc\My Documents\Visual Studio 2005\Projects\Astronom\Astronom.sln" />
<VssGet DatabasePath="\\ofmapoly003\Individual\michaelc\VSS\Astronom_VSS\srcsafe.ini"
Path="$/Astronom_VSS"
LocalPath="#(LocalFilePath)"
UserName="build" Password="build"
Recursive="True" />
If I write a Streamreader to read to either the database path or the local path, it succeeds fine. So the path to everything appears to be accessible. Any ideas?
Two thoughts. One, sometimes a type load exception manifests as a FNF - let's hope that's not it. But if the code is actually being honest, you can track the problem using Procmon or Filemon. Start one of those utilities and then run your task again. You should be able to track down a record of a file that couldn't be located.
#famoushamsandwich that's a great response -- I had not previously heard of procmon or filemon. Tried procmon on the problem, but even after sifting through the relevant output (my gosh the machine does a lot more stuff behind the screen than I was aware of) I couldn't find where a file I'm referencing wasn't being found.
Procmon and Filemon are good suggestions - just make sure you filter the results to only show errors. Otherwise the success messages will bury the problem entries. Also, you can filter out processes that are not at fault (either through the filter dialog or by right-clicking the entry and choosing "Exclude Process".)
A couple other thoughts:
In the LocalFilePath, you are specifying a single file as opposed to a folder. The task, on the other hand, specifies to get files recursively. Perhaps you need to remove "\Astronom.sln" from the LocalFilePath?
Is the build task being run under your account or another? It's possible you have a permissions issue
Do you already have a copy of the code pulled down in the same location? Perhaps there is a failure to overwrite an existing file/folder?