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

lint errors preventing melpa packaging #2

Open
rocky opened this issue May 26, 2019 · 0 comments
Open

lint errors preventing melpa packaging #2

rocky opened this issue May 26, 2019 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@rocky
Copy link
Contributor

rocky commented May 26, 2019

The following is from melpa/melpa#6169 (comment) and is preventing MELPA packaging. You can still get this as an ELPA package.

checkdoc

  • node-inspect-query-cmdline could have a documentation string

  • realgud:node-inspect-track-mode-hook could have a documentation string

  • realgud:node-inspect-suggest-invocation's docstring should mention DEBUGGER-NAME (as a bonus, Emacs' online help will detect these and fontify them which can be useful)

    • But if we look at the function we can see it isn't used. Perhaps it isn't necessary, or otherwise you can call the variable _debugger-name to indicate to Emacs and your users that it isn't used
  • realgud:node-inspect-reset's docstring could make its first line into a complete sentence; otherwise in Help-apropos we just see an incomplete line: Node-Inspect cleanup - remove debugger’s internal buffers (frame,

    • Same with realgud:node-inspect-remove-ansi-schmutz, realgud:node-inspect-reset, realgud:node-inspect-command-hash

One benefit of using a standard package layout is that you would also have seen these from package-lint:

  • node-inspect-query-cmdline might collide with the "namespace" of another hypothetical package called node-inspect

    • Same with node-inspect-track-mode, node-inspect-parse-cmd-args

Misc

  • In node-inspect.el: strictly speaking, declare-function's second argument should be a string (check-declare-file calls these "malformed declarations"), but I can see the intent. I think you want to write realgud:node-inspect-track-mode instead of realgud-node-inspect-track-mode given your current choice of "namespace"

    • I'd be worried about having these declarations collide with another package's namespace -- are they necessary?
  • In node-inspect-parse-cmd-args: node-opt-two-args, node-two-args are bound but never used

  • In realgud:node-inspect, cmd-buf is bound but unused except in a commented-out block of code

@rocky rocky added the help wanted Extra attention is needed label May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant