No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Code cleaning

    Framework
    3
    5
    117
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      amoss last edited by

      Hi

      Is there an automatic way to scan the code and report unused properties/methods and such?
      I’m using vscode - maybe there’s an extension that does that?
      Thanks

      1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel last edited by dobbel

        That would be very useful.

        The Standard ES-Lint will throw errors if variables are unused.(not properties or methods)

        Maybe you find something here:

        https://deepscan.io/

        https://github.com/analysis-tools-dev/static-analysis

        1 Reply Last reply Reply Quote 0
        • T
          turigeza last edited by

          @amoss I use
          https://atom.io/packages/linter-eslint for Atom
          Maybe this one here for vscode.
          https://github.com/microsoft/vscode-eslint will get you want you want or half way there anyway.
          As @dobbel pointed out it doesn’t do properties or methods.
          Isn’t it the default when you start a Quasar project to have this running with quasar dev ?

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @turigeza last edited by

            @turigeza said in Code cleaning:

            Isn’t it the default when you start a Quasar project to have this running with quasar dev ?

            yes

            1 Reply Last reply Reply Quote 1
            • A
              amoss last edited by

              Thanks. So if neither methods nor properties, I’m left only with variables, right?
              I ask this because I’m doing some changes and I move code from one vue file to another and I want to make sure I’m not leaving some dirt behind.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post