This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 181726 - [74cat] Make hints configurable per project
Summary: [74cat] Make hints configurable per project
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows XP
: P2 normal with 7 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 221281 228302 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-09 14:51 UTC by misterm
Modified: 2015-10-02 14:16 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-03-09 14:51:40 UTC
Many hints, specially the new ones, are about helping with good programing practices - which is a highly debatable subject. Given that, each project has its own definitions of best practices and a given developer might be working on several projects at once.

Therefore, hints should be configurable on a project basis as well, the same way formatting rules can be overridden per project. The general configuration would be the default if the project doesn't contain specific configuration, otherwise the project specific settings would be used.
Comment 1 ebakke 2012-07-04 19:39:41 UTC
I second misterm's comment--hint settings need to be stored on a per-project basis.

There are a lot of scenarios that illustrate the need for this:
* A codebase with multiple developers: everyone should be seeing the same warnings, so that they can get rid of them before they commit new code.
* A single developer working on different codebases, each with their own coding style guidelines.
* A single or multiple developers working on a big existing codebase, for which the team would like to gradually enable more and more warnings as they clean up the codebase.

For me, the storing of hint-settings on a per-project basis is really a prerequisite for starting to use hints consistently in my projects. Once this feature is implemented, I'd really start to take advantage of all the awesome new hints!
Comment 2 Jiri Prox 2013-04-12 07:00:01 UTC
*** Bug 228302 has been marked as a duplicate of this bug. ***
Comment 3 athompson 2013-04-12 14:55:18 UTC
Don't forget to tell people to vote! And since most would agree this is an important feature it should probably be P2.

P.S. - should the version be changed?
Comment 4 markiewb 2013-04-13 15:16:12 UTC
Only a note from me: Do not forget the integration within the editor.

Many hints in the editor have a submenu, which allow to "disable hint"/"configure hint". 

ACTUAL: these actions work globally
->
* "disable hint"
* "configure hint". 

EXPECTED: provide additional actions in the submenu which are project specific
* "disable hint (globally)" 
* "configure hint (globally)"
* "disable hint (for current project)" (NEW)
* "configure hint (for current project)" (NEW)

@Jan: Feel free to move this requirement into a separate issue.
Comment 5 Quality Engineering 2013-04-28 02:17:01 UTC
Integrated into 'main-golden', will be available in build *201304272301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/136f671ea6b7
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #181726: ability to specify hints settings per project
Comment 6 Quality Engineering 2013-05-05 02:30:14 UTC
Integrated into 'main-golden', will be available in build *201305042300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2cf846bb9c4b
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #181726: ability to specify per-project hints for apisupport.ant projects
Comment 7 athompson 2013-05-06 15:06:51 UTC
Cool! How do you configure the project hints?
Comment 8 athompson 2013-05-06 15:12:19 UTC
Answering my own question, it looks like the Hints panel doesn't show up for Maven projects--only Ant projects.
Comment 9 athompson 2013-05-13 19:37:10 UTC
Any ETA on when this will be available for Maven projects?
Comment 10 athompson 2013-07-04 15:17:41 UTC
Finishing this feature is important for 7.4.
Comment 11 athompson 2013-08-20 19:19:36 UTC
It looks like this started working for Maven projects in recent builds. Was there a commit for that?
Comment 12 Milutin Kristofic 2013-09-09 11:47:32 UTC
*** Bug 221281 has been marked as a duplicate of this bug. ***
Comment 13 Svata Dedic 2015-10-02 14:16:08 UTC
Marking as fixed, according to comment #11