WIP/Mockup: Call an analyzer for an individual file or group of files
Needs ReviewPublic

Authored by gregormi on Dec 2 2018, 4:15 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Currently, as far as I can see, an analyser like cppcheck or flake8 can
only be started for all project files, but not for an individual file.

This is a basic mockup that adds three menu items to the context menu
(it does nothing more).

The idea is that these items run the Code Analysis for the current file
which also makes the Code Analysis tab more discoverable.

TODO

  • Use the word "Analyze" instead of "Analyse"

Question

Ideas for later

  • Context menu item in the Project file tree where the user can right-click select on a folder and all files below are analyzed

In (far) later steps

  • one could add a mapping where the file type determines which analysers

are presented.

  • one could present the results inline in the text area
  • it would maybe be nice if the exact parameters which with the analyser

is called can be reviewed and changed.

Diff Detail

Repository
R40 Kate
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5643
Build 5661: arc lint + arc unit
gregormi created this revision.Dec 2 2018, 4:15 PM
Restricted Application added a project: Kate. · View Herald TranscriptDec 2 2018, 4:15 PM
Restricted Application added a subscriber: kwrite-devel. · View Herald Transcript
gregormi requested review of this revision.Dec 2 2018, 4:15 PM
gregormi edited the summary of this revision. (Show Details)Dec 2 2018, 4:17 PM
gregormi retitled this revision from WIP/Mockup: Call an analyser for an individual file to WIP/Mockup: Call an analyser for an individual file or group of files.Dec 2 2018, 4:48 PM
gregormi edited the summary of this revision. (Show Details)
ngraham added a subscriber: ngraham.Dec 2 2018, 7:24 PM

FWIW, typically we use American English rather then British English for the untranslated strings, so "analyse" should be "analyze".

gregormi edited the summary of this revision. (Show Details)Dec 2 2018, 7:44 PM
gregormi retitled this revision from WIP/Mockup: Call an analyser for an individual file or group of files to WIP/Mockup: Call an analyzer for an individual file or group of files.Dec 8 2018, 5:06 PM