sharing inspection profile between developers and TeamCity

It might be a slightly dumb question since the featires have been around for a long time in IDEA, but I never had to really force developers to take care of the inspection result.
Now that I do, expecially for the dependency rules, I'm wondering what's the best way to communicate those rules to each every developer, and also TeamCity, which should be the ultimate checker here.

I've played with exporting/importing Settings.xml (IDEA's, not Maven's), and if working, it's not a suitable solution here because I cannot make sure each every developer will import the Settings, especially if there're updated often.

Maybe it's as simple as using 'Project profiles' and in this case, inspection profile is saved in the IPR (project) file instead of the IWS (user's workspace) file?
But what take precedence between IDE Profiles and Project Profiles if both share same inspections, with different configuration?

cheers
-nodje

2 comments
Comment actions Permalink

Hello nodje,

It might be a slightly dumb question since the featires have been
around for a long time in IDEA, but I never had to really force
developers to take care of the inspection result.

Now that I do, expecially for the dependency rules, I'm wondering
what's the best way to communicate those rules to each every
developer, and also TeamCity, which should be the ultimate checker
here.

I've played with exporting/importing Settings.xml (IDEA's, not
Maven's), and if working, it's not a suitable solution here because I
cannot make sure each every developer will import the Settings,
especially if there're updated often.

Maybe it's as simple as using 'Project profiles' and in this case,
inspection profile is saved in the IPR (project) file instead of the
IWS (user's workspace) file?


Yes, project profiles are exactly what you should use. Inspection profiles
are never saved in .iws - IDE profiles are stored in the user's settings
directory, and project profiles are stored in .ipr.

But what take precedence between IDE Profiles and Project Profiles if
both share same inspections, with different configuration?


If a project has a project profile assigned, it always takes precedence over
any IDE profiles.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

thanks, it works just fine! I haven't heard developer complaining about sharing the IPR yet!

Since I'm at setting dependency rules, I'm wondering what are the possibilities concerning the JSPs.
It's currently not possible to create a Scope that comprise JPS. Is there any other solution to do that?
It'd be nice to define scope on JSP, hope it's planned for the future Diana release!

-nodje

0

Please sign in to leave a comment.