Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advance multiroot workspace support #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

tolezk
Copy link

@tolezk tolezk commented Jul 26, 2022

So, this commit introduces some changes. The most noticeable change is multiroot workspace support in a quite flexible way.

tolezk added 2 commits July 26, 2022 13:44
This forces '--showfile' mode to make linter stable whether the option
passed directly by the arg or implicitly by .config file
By design linter is run from the directory where the repo
containing commit is located. And in case when
there is no '--show-types' option passed the resulting log
violates expected format and parseCheckpatchLog() doesn't see
what it should. Forcing the option fixes the problem.
@tolezk tolezk changed the title Advance multiroot workcpaces support Advance multiroot workspaces support Jul 30, 2022
a) This adds an ability to have a workspace-folder-specific checkpatch config.
This useful in case when you have projects with different requirements in your
multiroot workspace.

b) This adds a checkpatch-specific output channel (output pane of vscode)

c) This adds 'Clean Current Diagnostic' command to clean up problems pane manually
@tolezk tolezk changed the title Advance multiroot workspaces support Advance multiroot workspace support Jul 30, 2022
@tolezk
Copy link
Author

tolezk commented Jul 30, 2022

Hi @idanpa,

Basing on our short conversation here I propose everythig I asked in #7.

@idanpa
Copy link
Owner

idanpa commented Jul 30, 2022

@tolezk I might need a few extra days to go over this change and to test it.
Are these changes only addressing #7? fixing only these two things

  1. allow user to add --showfile in args
  2. have multiple different .checkpatch.conf files across the files

?
(seems too much code to me, but need to take a deeper look)

@tolezk
Copy link
Author

tolezk commented Jul 31, 2022

Probably it may look like a mess (sorry for that, but I decided it's better to go as is than not to go) but this change does the following:

  • fixes --showfile issue
  • fixes --show-types issue (related to check commit command)
  • adds support for folder-specific .checkpatch.conf (multiroot)
  • adds support for folder-specific .checkpatch.pl (multiroot)
  • adds separate checkpathch section in output pane to have logs from extension (handy sometimes)
  • adds Clear Current Diagnostic command (useful sometimes)
  • slightly rearranges commands naming (to make a search in the command palette easier)
  • slightly rearranges messages that are shown in popups (to easier get what caused the popup)

@tolezk
Copy link
Author

tolezk commented Aug 25, 2022

@idanpa please provide any feedback and I'll try to find some bandwidth to rearrange this in a way to make it easier to validate all the changes for you. Or let me know if you gonna reject this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants