Code Monkey home page Code Monkey logo

Comments (1)

andsens avatar andsens commented on September 28, 2024

shellcheck definitely doesn't like minified code, and @koalaman explained in-depth why this is a "wontfix" (see here).

However: That's why there's this code:

self.shellcheck_ignores = [
'2016', # Ignore unexpanded variables in single quotes (used for docopt_exit generation)
]
if self.parameters.library_path:
self.shellcheck_ignores.extend([
'1090' # Ignore non-constant library sourcing
'1091', # Ignore library sourcing
'2034', # Ignore unused vars (they refer to things in the library)
])
if not self.parameters.library_path and self.parameters.minify:
# Ignore else .. if issue in parse_long,
# see https://github.com/koalaman/shellcheck/issues/1584 for more details
self.shellcheck_ignores.append(
'1075',
)

Which shellcheck version are you running? With 0.7.1 not getting any errors on that code.
It could also be the line-length that is set differently, could you maybe attach the entire file when you have run docopt.sh on it?

Closing for now, but please reopen it if you can reproduce this with the newest docopt.sh and shellcheck.

from docopt.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.