sfodje / perlcritic

MIT License
5 stars 4 forks source link

On save option #9

Open ThomasNixon opened 6 years ago

ThomasNixon commented 6 years ago

Could you please add an option to only run perlcritic on save? Just typing can spin up 100+ perlcritic process which brings my quad core xeon to it's knees.

Also, could you please allow the severity to be set even when a profile is given? I can run perlcritic from the terminal with the profile and serverity set but you restrict this in the extension.

dseynhae commented 3 years ago

Could you please add an option to only run perlcritic on save? @ThomasNixon

Do the following settings get the job done:

  "editor.formatOnType": false,
  "editor.formatOnPaste": false,
  "editor.formatOnSave": true,
  "editor.formatOnSaveMode": "file",
dseynhae commented 3 years ago

could you please allow the severity to be set even when a profile is given? @ThomasNixon

Does the following cause any problems?

"perlcritic.severity": "brutal",
"perlcritic.additionalArguments": ["--profile", "/your/path/to/.perlcriticrc"].