Skip to content
Snippets Groups Projects
  1. May 18, 2016
    • Matt Borland's avatar
      Disabling warnings of 'quote-props' · f0a11af5
      Matt Borland authored
      Disables warnings of type 'quote-props' as discussed in a recent IRC meeting.
      
      Change-Id: I36fd59dc639f93997bd9401e622f8ddfc662145e
      Closes-Bug: 1583346
      f0a11af5
  2. Apr 13, 2016
    • Michael Krotscheck's avatar
      Upgraded eslint-config-openstack to 1.2.4 · a4d58e71
      Michael Krotscheck authored
      This patch upgrades eslint to version 1.2.4, incorporating new rule
      changes on no-undefined, brace-style, quote-props, space-in-parens,
      no-use-before-define, no-uneeded-ternary, and quote.
      
      For now, rules that have been activated that cause checks to fail
      have been switched to warning-only. Additionally, rules that
      have been entirely disabled have been removed.
      
      Change-Id: Ifba7a19da669288cb19cfc8055bdfa7b94f00292
      a4d58e71
  3. Mar 18, 2016
  4. Jan 11, 2016
    • Rajat Vig's avatar
      Update eslint-plugin-angular to the latest · 846413c1
      Rajat Vig authored
      eslint-plugin-angular in use by the project is
      quite old and the new library has changed rules.
      This patch updates the library and fixes the code
      where rule names have changed.
      
      Change-Id: I2e60a07b899325f17f38b96d40325602b4b58219
      Closes-Bug: #1527417
      846413c1
  5. Dec 23, 2015
  6. Dec 04, 2015
  7. Nov 25, 2015
  8. Nov 18, 2015
    • Michael Krotscheck's avatar
      Enable radix · 87a8f3be
      Michael Krotscheck authored
      This enables the radix linting rule from eslint-config-openstack,
      and corrects any found errors.
      
      Change-Id: Icfb8dd7a91770a84f94468693609093aedd31337
      87a8f3be
    • Michael Krotscheck's avatar
      Enable no-unused-vars · 2aa78ad0
      Michael Krotscheck authored
      This enables the no-unused-vars rule from the upstream
      eslint-config-openstack, and corrects all linting errors found.
      
      Change-Id: I9f5fb29cd9b2429698819ecf556ced933378b081
      2aa78ad0
  9. Nov 17, 2015
  10. Oct 16, 2015
    • Michael Krotscheck's avatar
      Upgraded eslint rule libraries. · d7ef2b34
      Michael Krotscheck authored
      The newer version of eslint comes with somewhat stricter rules
      about indentation and whitespace, so some files have been
      adjusted to accomodate.
      
      The newer version of eslint-config-openstack includes a relaxed
      version requirement for eslint, as well as a switch/case
      indentation update.
      
      The newer version of the angular eslint rules includes a
      deprecation rule for $cookieStorage, which has been set to
      warning.
      
      Change-Id: Id201a42e3ab484222f938a541507df2e96da2dcf
      Partially-Implements: blueprint jscs-cleanup
      d7ef2b34
  11. Jul 15, 2015
    • Michael Krotscheck's avatar
      Use eslint-config-openstack · 066780fd
      Michael Krotscheck authored
      Instead of explicitly copying all the linting rules between projects,
      openstack now publishes a set of rules (much like hacking) that can
      be included in projects that want to adhere by our standards. This
      patch switches horizon to use this set of rules.
      
      Note: The rules in eslint-config-openstack are a verbatim copy
      of what's currently in use in Horizon. Future versions will likely start
      activating rules flagged as "TODO", however you can avoid build
      instability by avoiding the use of fuzzy version matching in
      package.json (which this patch does).
      
      Change-Id: Ib93e0def096999ece7f636d028e3b1ecd4a4facc
      066780fd
  12. Jul 13, 2015
  13. Jul 09, 2015
    • Travis Tripp's avatar
      Change the ESLINT controller as to ctrl · 5af83b58
      Travis Tripp authored
      This rule forces the controller to be named vm.  This is
      too strict and also is a very overload term in OpenStack.
      
      So, making this a warning and looking for ctrl.
      
      Change-Id: Ieadf2f0b2d91c3c6979a6a65652d37f0c2980178
      Partially-Implements: blueprint jscs-cleanup
      5af83b58
    • Michael Krotscheck's avatar
      Add selective ESLint rule activation for Horizon Legacy JS · b8c7846c
      Michael Krotscheck authored
      This patch adds the files for eslint overrides in the two different
      segments of horizon's codebase: Legacy and Dashboard. There are
      quite a few rules that had to be deactivated, which will reduce
      the effectiveness of legacy linting.
      
      Note: You cannot disable plugins in .eslintrc files, you can
      only enable them. This is why there appear to be two redundant
      .eslintrc files that enable the angular rules.
      
      Change-Id: I5768cbc43e788a4320a6bb637c263dc3c3df3db9
      Partially-Implements: blueprint jscs-cleanup
      b8c7846c
  14. Jul 07, 2015
  15. Jul 01, 2015
    • Michael Krotscheck's avatar
      Switched from JSCS to ESLint · c6c03529
      Michael Krotscheck authored
      This patch switches horizon from using JSCS to using ESlint. It
      adds the john papa style guides as an eslint plugin, and deactivates
      additional linting rules so current cleanup efforts can focus on the
      issues remaining from JSCS. Once that cleanup effort is complete,
      we can switch our linting job to voting and move forward from there.
      
      YAML for .eslintrc was chosen because the JSON specification does
      not allow comments, and having comments (including rule links) will
      make it easier to discuss linting changes.
      
      Deactivated eslint rules have each been annotated with a # TODO
      statement, so we can address them in the future. Links in the
      documentation have been updated to new contributor guidelines, which
      will be updated after this patch lands.
      
      Linting may be executed by first installing npm dependencies using
      `npm install`, and then executing `npm run lint` at any time in the
      future. No python venv is required.
      
      For clarification: We are switching to ESLint because JSCS explicitly
      focuses on code-style, not on language use errors. For that purpose,
      JSCS explicitly defers to JSHint, which due to the 'do no evil' license is
      not usable. Since ESLint provides both the codestyle functionality, and
      the language use checks, of both JSCS and JSHint, it was deemed the
      only viable tool,
      
      http://lists.openstack.org/pipermail/openstack-dev/2015-June/067030.html
      
      Change-Id: Ib4c3f77f8cc3cdaa3c7558b7bc3a6d1299b6dcbe
      Partially-Implements: blueprint jscs-cleanup
      c6c03529
Loading