intellij-protobuf-plugin icon indicating copy to clipboard operation
intellij-protobuf-plugin copied to clipboard

Allow inspections to be disabled

Open MitchAman opened this issue 3 years ago • 4 comments

It would be nice to allow inspections to be disabled in the Settings GUI. For example, "Message name should be PascalCase." While I may agree with the inspections, I'm not always the owner of that code, or it's not easy to make the change.

MitchAman avatar Aug 19 '21 02:08 MitchAman

I will check it in this weekend.

devkanro avatar Aug 19 '21 03:08 devkanro

I make those inspections by annotator, I need to refactor those inspections by LocalInspectionTool, it will take some time to do this.

devkanro avatar Aug 21 '21 12:08 devkanro

@devkanro is there any way to do this "by hand" - as in, is there some config somewhere that can be updated by hand to exclude certain inspections?

I'm in the same boat as @MitchAman - I also get yelled at about using PascalCase in some situations and it's just a tad annoying :)

dselans avatar Nov 05 '21 03:11 dselans

@dselans All code of name inspections in ProtobufAnnotator.kt#L75.

You can clone this repo, comment those code, and build the plugin.

devkanro avatar Nov 05 '21 03:11 devkanro