Type:
Feature
Priority:
Major Major  
State:
Fixed
Subsystem:
Agent
Reporter:
Marcus Brito (pazu) Send Email
Assignee:
Anna Kozlova (anet) Send Email
Affects:
Agra EAP(3414)
Fixed in:
Teamcity 3.0 (Benares, 5985)
Created:
22 months ago (16 Jan 2007 20:10)
Updated:
14 months ago (27 Sep 2007 12:23)
Votes:
4
Resolved:
JIRA source:
TW-1452
Build:
3414
No attachments

The user should be able to select a scope on which the inspections will run. This could be either a free-form text field, where the user would enter the scope expression, and/or a combo box with the available shared scopes, from the project ipr file.


Environment: Mac OS X 10.4.8


Issue wasresolved

  • Anna Kozlova (anet) Send Email
    22 months ago (17 Jan 2007 14:03)

It is possible to use -d option in jvm args to specify directory to inspect.

  • Marcus Brito (pazu) Send Email
    22 months ago (17 Jan 2007 14:17)

What about more complex scopes? For example, here's the main scope in my project:


src:[CamelService]:*..*&&!file:*..EJS*&&!file:*..*_Tie.java&&!file:*..*_Stub.java

  • Anna Kozlova (anet) Send Email
    22 months ago (17 Jan 2007 14:31)

What is your purpose to inspect only part of a project? May be it is more convenient to set up project profiles on your scopes (which can be empty for some scopes, e.g. generated sources) and run server-side inspections with project settings?
Thanks.

  • Marcus Brito (pazu) Send Email
    22 months ago (17 Jan 2007 14:53)

The project is huge. A full run takes over hours to complete. A very good part of this is "stable" code however, that haven't been touched in years (and won't be touched anytime soon, unless we find an *extremely* serious bug), and I don't need to inspect that.


So I want to create multiple build configurations, with only one of those being run automatically after every code build. This achieves two goals: first, speed: Only one of the configured inspection builds will be run automatically after every code build subject separation, but other scopes will be availabel, if we need to run them. Second, we have different people working in different parts of the project, and it would be nice if I could see inspection results only for the modules I'm assigned to.

  • Anna Kozlova (anet) Send Email
    22 months ago (17 Jan 2007 15:05)

Thanks.
So scopes are workaround. But with scope differ from the whole project global inspections such as Unused Declarations, Declaration access can be weaker and so on would work much longer. That's why I would prefer smth about special scopes settings for server in ipr file. Do you agree?

  • Anna Kozlova (anet) Send Email
    22 months ago (17 Jan 2007 15:07)

The second point is more likely limitation of the current UI. I hope that it will be improved.

  • Marcus Brito (pazu) Send Email
    22 months ago (17 Jan 2007 15:12)

Scopes aren't just a workaround. The selected inspection profile for each scope can be different -- we don't run many inspecitons on "old" code, but newer parts of the system get a more strict treatment. That's currently configured in the ipr file, and it works -- but takes too long to run.

  • Marcus Brito (pazu) Send Email
    22 months ago (17 Jan 2007 15:17)

Oh, a part of this request motivation is quite simple: "I can select different profiles and scopes to analyze on IDEA, and I'd like to do the same in TeamCity". The two products go hand in hand, so I'd expect the same degree of functionality in similar areas like inspection runs.

  • Petr Panuska (pepan) Send Email
    19 months ago (05 Apr 2007 10:55)

An important feature for me would be to split the inspection report into parts according to modules/packages/whatever division. This is important in bigger projects (our has around 30 developers) since no developer is interested in issues that do not belong to his/her code. Currently, developers do not look at TC reports since there is too many issues found but too little of them actually relates to their own code.
I personally would appreciate if the report could be split when it is finished. The shown selection could be chosen based on the package and/or module. There would be one report only, but many ways to look at it. I believe, this would be more flexible, every person could choose his/her own selection and no new reports would have to be created. Also, this would not break any global inspections.
There is more disscussed at http://www.intellij.net/forums/thread.jspa?threadID=266643&tstart=0

  • Kirill Maximov (maxkir) Send Email
    19 months ago (11 Apr 2007 20:30)

Scope can be selected from combo box

  • Colin Fleming (lemming) Send Email
    19 months ago (24 Apr 2007 02:26)

This would be very useful to us, too. Kirill, where is this selectable? I tried to set this up this afternoon with v2.0 and I didn't see any corresponding option. I agree that it should be possible to set up an inspection run profile that only inspects a certain scope (since this allows different profiles with different frequencies and configurations). Allowing different views over a single report is also a great idea.

  • Anna Kozlova (anet) Send Email
    14 months ago (27 Sep 2007 12:23)

Now it is possible to pass -Didea.exclude.patterns/idea.include.patterns property. Syntax is based on IDEA's file-scope syntax: (([$module name$])?$relative to content root ant path pattern$;)+ where path pattern should correspond to some directory.


E.g -Didea.exclude.patterns=testData/**;testdata/**;help/**;test/**;maverick/**;src/tips/**;.reports/**;[testData]/**


Unfortunately it is impossible to support all IDEA scopes (e.g. *.java) efficiently thus simplified syntax and inability of reuse scopes defined in project.


Anna

Old New
Marcus Brito (pazu) - 14 months ago (27 Sep 2007 12:23)