Change the Analyzers mnemonic to Z
ClosedPublic

Authored by apol on Feb 20 2017, 3:09 PM.

Details

Diff Detail

Repository
R32 KDevelop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Feb 20 2017, 3:09 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptFeb 20 2017, 3:09 PM

The "Analyze" now menu used not only by cppcheck, but also by valgrind, clang-tydy, and vera++ plugins. I think it's not good idea to mix code actions like declaration rename and, for example, valgrind memory checkers.

If anything, the contents would be better suited to the Run menu (e.g. Valgrind and Cppcheck are roughly equivalent to "Debug Launch" and "Run all tests" respectively).

But this seems a bad idea to me, there's a huge number of analysis tools and the number integrated will hopefully grow over time. For a brand-new interface, Anton's already got a fair number of plugins in.

flherne added a comment.EditedFeb 20 2017, 4:16 PM

In fact, why shouldn't the contents of Code (even fewer, infrequently-usedactions) just be under Tools?

apol added a comment.Feb 20 2017, 4:20 PM

The "Analyze" now menu used not only by cppcheck, but also by valgrind, clang-tydy, and vera++ plugins. I think it's not good idea to mix code actions like declaration rename and, for example, valgrind memory checkers.

I wouldn't think it's a good idea to mix static analyzers and runtime either... if the application needs to be executed, it should be under the Run menu (if not a launcher itself).

kfunk added a subscriber: kfunk.Feb 20 2017, 9:17 PM

The "Analyze" now menu used not only by cppcheck, but also by valgrind, clang-tydy, and vera++ plugins. I think it's not good idea to mix code actions like declaration rename and, for example, valgrind memory checkers.

I'm with Anton here, there will be more of those checks in future.

kfunk requested changes to this revision.Feb 20 2017, 9:18 PM
kfunk added inline comments.
app/kdevelopui.rc
53

Bin to Alt+z instead? I don't think this is used.

This revision now requires changes to proceed.Feb 20 2017, 9:18 PM

I wouldn't think it's a good idea to mix static analyzers and runtime either... if the application needs to be executed, it should be under the Run menu (if not a launcher itself).

I agree with you about mixing static analyzers and runtime checkers. But in the future we will have (I hope) more checkers and if we will place them in different menus it can be confused approach for user which will find them in different places. After adding new checkers we can reorganize "Analyze" menu for more consistent view and, for example, add separate submenu for static analyze tools.

apol updated this revision to Diff 11608.Feb 21 2017, 11:36 PM
apol edited edge metadata.

Address as discussed

kfunk accepted this revision.Feb 22 2017, 8:53 AM

That diff looks broken, but I think it does the right thing. You've just changed the shortcut key now, right?

This revision is now accepted and ready to land.Feb 22 2017, 8:53 AM

Perhaps you should rename this review too, in case it confuses anyone in the future.

apol retitled this revision from Move the Analyzers into the Code menu instead of their own to Change the Analyzers mnemonic to Z.Feb 22 2017, 2:41 PM
apol edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.

Good job :)