Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Modify loclist to separate errors from warnings#798

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
bixycler wants to merge1 commit intopython-mode:developfrombixycler:develop

Conversation

bixycler
Copy link
Contributor

  • Separate errors from warnings (errors are shown above warnings)
  • [g:pymode_lint_cwindow] open loclist only if there is at least one error (not warnings)
  • [g:pymode_lint_cwindow] jump to first error

Changes to be committed:
modified: autoload/pymode/lint.vim
modified: autoload/pymode/tools/loclist.vim
modified: autoload/pymode/tools/signs.vim
modified: pymode/rope.py

- Separate errors from warnings (errors are shown above warnings)- [g:pymode_lint_cwindow] open loclist only if there is at least one error (not warnings)- [g:pymode_lint_cwindow] jump to first errorChanges to be committed:modified:   autoload/pymode/lint.vimmodified:   autoload/pymode/tools/loclist.vimmodified:   autoload/pymode/tools/signs.vimmodified:   pymode/rope.py
@bixyclerbixycler changed the titleModify loclistModify loclist to separate errors from warningsNov 15, 2017
@fmv1992fmv1992force-pushed thedevelop branch 4 times, most recently from3f4fc36 to60c638dCompareNovember 22, 2017 02:23
@diraol
Copy link
Contributor

I like a lot the idea of this PR!@bixycler can you rebase it against our develop branch to solve the conflict and see if it passes on tests?

@fmv1992 what do you think about this PR?

@fmv1992
Copy link
Contributor

I thought pymode was already like that in the past (show errors first then warnings).

I think we should open the loclist if it is not empty (that is, even if its only warnings they should be opened). The rationale behind this is that users can already pinpoint-ignore what they don't regard as warnings.

So I bet that one could already achieve this feat with:

Skip errors and warnings                                 *'g:pymode_lint_ignore'*E.g. ["W", "E2"] (Skip all Warnings and the Errors starting with E2) etc.>    let g:pymode_lint_ignore = ["E501", "W",]

(from the docs)

diraol reacted with thumbs up emoji

@diraol
Copy link
Contributor

I've cherry-picked this PR commit and added another one to ensure that loclist is shown also if there are only warnings.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@bixycler@diraol@fmv1992

[8]ページ先頭

©2009-2025 Movatter.jp