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

Silence warnings #96

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

Conversation

PuercoPop
Copy link

  • Silence warning about unused arguments
  • Replace SEQ-CONTAINS with SEQ-CONTAINS-P
    SEQ-CONTAINS was obsoleted in Emacs 27.1
  • Silence warnings about functions not known to be defined
  • Silence warning about usage of unescaped single quotes
  • Silence warnings about docstring being wider than 80 characters
  • Ignore autoload files

By naming the variable with the _ prefix the compiler knows it is intended to be unused.

> In browse-at-remote--format-region-url-as-gitiles:
> lib/browse-at-remote/browse-at-remote.el:456:103: Warning: Unused lexical argument `lineend'
> lib/browse-at-remote/browse-at-remote.el:83:2: Warning: custom-declare-variable `browse-at-remote-preferred-remote-name' docstring wider than 80 characters
> lib/browse-at-remote/browse-at-remote.el:102:2: Warning: custom-declare-variable `browse-at-remote-add-line-number-if-no-region-selected' docstring wider than 80 characters
>
> In browse-at-remote--get-preferred-remote:
> lib/browse-at-remote/browse-at-remote.el:227:2: Warning: docstring wider than 80 characters
>
> In browse-at-remote--get-formatter:
> lib/browse-at-remote/browse-at-remote.el:274:2: Warning: docstring wider than 80 characters
> In browse-at-remote--format-region-url-as-pagure:
> lib/browse-at-remote/browse-at-remote.el:439:20: Warning: ‘seq-contains’ is an obsolete function (as of 27.1); use ‘seq-contains-p’ instead.
> In end of data:
> lib/browse-at-remote/browse-at-remote.el:544:42: Warning: the function ‘log-view-current-entry’ is not known to be defined.
> lib/browse-at-remote/browse-at-remote.el:514:34: Warning: the function ‘dired-current-directory’ is not known to be defined.
> lib/browse-at-remote/browse-at-remote.el:375:2: Warning: docstring has wrong usage of unescaped single quotes (use \= or different quoting)
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.

1 participant