Skip to content

Sidemenu default files not passing jshint #165

@nikolasleblanc

Description

@nikolasleblanc

If you use generator to install a sidemenu template, run grunt serve, and then trigger a save on app.js (with no actual change), grunt runs jshint and fails.

Running "jshint:all" (jshint) task
JS changed:   www/scripts/app.js

app/scripts/app.js
  line 10  col 3   Missing "use strict" statement.
  line 24  col 3   Missing "use strict" statement.
  line 27  col 16  Strings must use singlequote.
  line 29  col 39  Strings must use singlequote.
  line 34  col 19  Strings must use singlequote.
  line 37  col 45  Strings must use singlequote.
  line 43  col 19  Strings must use singlequote.
  line 46  col 46  Strings must use singlequote.
  line 51  col 24  Strings must use singlequote.
  line 54  col 50  Strings must use singlequote.
  line 61  col 34  Strings must use singlequote.
  line 64  col 47  Strings must use singlequote.

app/scripts/configuration.js
  line 1   col 13  Strings must use singlequote.

app/scripts/controllers.js
  line 5   col 3   Missing "use strict" statement.
  line 37  col 3   Missing "use strict" statement.
  line 47  col 46  '$stateParams' is defined but never used.
  line 47  col 38  '$scope' is defined but never used.

  ✖  4 errors
  ⚠  13 warnings

Warning: Task "jshint:all" failed. Use --force to continue.

Granted, it's easy enough to adjust jshint's settings, or to update the code, but it's a barrier to entry for those unfamiliar with how to go about doing so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions