Skip to content

Missing report if run from the CLI #7

@bzz

Description

@bzz

InteliJ has this awesome ability to launch the Inspections from CLI but for some reason using an inspection profile that only includes MethodNamesInspection does not produce any XML report output 😕

The same profile, but run in-IDE, seems to produce the results using Analyze->Inspect Code or Analyze->Run Inspection by Name -> Show method name suggestions.

Although it's still a bit surprising that the number of the results in the output vary between the consecutive runs over the same codebase, with the same settings (from 1 to 10, including suggestions for code snippets in Markdown files).

Steps to reproduce:

  • build&install this plugin
  • clone and import any java project (tested on this, e.g under ~/$project)
  • create a new inspection profile that only includes MethodNamesInspection
    e.g by making a copy of the default one Project_Default_copy, disabling everything and enabling this one by the name
  • run the inspection from CLI e.g
    /Applications/IntelliJ\ IDEA\ CE.app/Contents/bin/inspect.sh \ 
      ~/$project \
      ~/$project/.idea/inspectionProfiles/Project_Default_copy.xml \
      ~/$project/astrid-inspection-results
    
  • actual result: ls -la astrid-inspection-results only includes .descriptions.xml
  • expected result: something like a MethodNames.xml report

Thank you again for the project and please advise if I'm doing something wrong or if this should be treated as feature request, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions