<commit_before>root: true

ecmaFeatures:
  modules: true
  jsx: false

env:
  amd: false
  browser: false
  es6: true
  jquery: false
  node: true

plugins:
- no-storage
- security
- xss

extends: eslint:recommended
# http://eslint.org/docs/rules/
rules:
  # Possible Errors
  ## no-await-in-loop: 2 // not supported by Code Climate, Feb 2017
  no-console: 0
  no-extra-parens: 2
  no-inner-declarations: [2, functions]
  no-negated-in-lhs: 2
  no-prototype-builtins: 2
  no-template-curly-in-string: 2
  no-unsafe-negation: 2
  valid-jsdoc: 2

  # Best Practices
  accessor-pairs: 2
  array-callback-return: 2
  block-scoped-var: 2
  class-methods-use-this: 2
  complexity: [2, 12]
  consistent-return: 2
  default-case: 2
  guard-for-in: 2
  no-alert: 2
  no-caller: 2
  no-div-regex: 2
  no-else-return: 2
  no-empty-function: 2
  no-eq-null: 2
  no-eval: 2
  no-extend-native: 2
  no-extra-bind: 2
  no-extra-label: 2
  no-floating-decimal: 2
  no-implicit-coercion: 2
  no-implicit-globals: 2
  no-implied-eval: 2
  no-invalid-this: 0
  no-iterator: 2
  no-labels: 2
  no-lone-blocks: 2
  no-loop-func: 2
  no-magic-numbers: 0
  no-multi-spaces: 2
  no-multi-str: 2
  no-new-func: 2
  no-new-wrappers: 2
  no-new: 2
  no-octal-escape: 2
  no-param-reassign: 2
  no-proto: 2
  no-restricted-properties: 2
  no-return-assign: 2
  no-return-await: 2
  no-script-url: 0
  no-self-compare: 2
  no-sequences: 2
  no-throw-literal: 2
  no-unmodified-loop-condition: 2
  no-unused-expressions: 2
  no-useless-call: 2
  no-useless-concat: 2
  no-useless-escape: 2
  no-useless-return: 2
  no-void: 2
  no-warning-comments: 2
  no-with: 2
  ## prefer-promise-reject-errors: 2 // not supported by Code Climate, Feb 2017
  radix: 2
  require-await: 2
  vars-on-top: 2
  wrap-iife: 2
  yoda: 0

  # Strict
  strict: 2

  # Variables
  init-declarations: 2
  no-catch-shadow: 2
  no-label-var: 2
  no-restricted-globals: 2
  no-shadow-restricted-names: 2
  no-shadow: 2
  no-undef-init: 2
  no-undefined: 0
  no-use-before-define: 2

  # Node.js and CommonJS
  callback-return: 2
  global-require: 0
  handle-callback-err: 2
  no-mixed-requires: 2
  no-new-require: 2
  no-path-concat: 2
  no-process-env: 2
  no-process-exit: 2
  no-restricted-modules: 2
  no-sync: 0

  # Stylistic Issues
  array-bracket-spacing: 2
  block-spacing: 2
  brace-style: 2
  camelcase: 0
  capitalized-comments: 0
  comma-spacing: 2
  comma-style: 2
  computed-property-spacing: 2
  consistent-this: 2
  eol-last: 2
  func-call-spacing: 0
  func-name-matching: 0
  func-names: 0
  func-style: 2
  id-blacklist: 0
  id-length: 0
  id-match: 0
  indent: 0
  jsx-quotes: 0
  key-spacing: 2
  keyword-spacing: 2
  line-comment-position: 0
  linebreak-style: 2
  lines-around-comment: 0
  lines-around-directive: 0
  max-depth: 0
  max-len: 0
  max-lines: 0
  max-nested-callbacks: 2
  max-params: 2
  max-statements: [2, 76]
  multiline-ternary: 0
  new-cap: 0
  new-parens: 2
  newline-after-var: 0
  newline-before-return: 0
  newline-per-chained-call: 0
  no-array-constructor: 2
  no-bitwise: 2
  no-continue: 0
  no-inline-comments: 0
  no-lonely-if: 2
  no-mixed-operators: 0
  no-multiple-empty-lines: 2
  no-negated-condition: 0
  no-nested-ternary: 0
  no-new-object: 0
  no-plusplus: 0
  no-restricted-syntax: 0
  no-tabs: 0
  no-ternary: 0
  no-trailing-spaces: 2
  no-underscore-dangle: 2
  no-unneeded-ternary: 2
  no-whitespace-before-property: 2
  object-curly-newline: 0
  object-curly-spacing: 2
  object-property-newline: 0
  one-var-declaration-per-line: 0
  one-var: 0
  operator-assignment: 2
  operator-linebreak: 2
  padded-blocks: 0
  quote-props: 2
  quotes: 2
  require-jsdoc: 0
  semi-spacing: 2
  semi: 2
  sort-keys: 0
  sort-vars: 0
  space-after-keywords: 0
  space-before-blocks: 0
  space-before-function-paren: 0
  space-before-keywords: 0
  space-in-parens: 0
  space-infix-ops: 0
  space-return-throw-case: 0
  space-unary-ops: 0<commit_msg>.eslintrc.yml: add 2 new rules from eslint 3.17.0<commit_after>root: true

ecmaFeatures:
  modules: true
  jsx: false

env:
  amd: false
  browser: false
  es6: true
  jquery: false
  node: true

plugins:
- no-storage
- security
- xss

extends: eslint:recommended
# http://eslint.org/docs/rules/
rules:
  # Possible Errors
  ## no-await-in-loop: 2 // not supported by Code Climate, Feb 2017
  no-compare-neg-zero: 2
  no-console: 0
  no-extra-parens: 2
  no-inner-declarations: [2, functions]
  no-negated-in-lhs: 2
  no-prototype-builtins: 2
  no-template-curly-in-string: 2
  no-unsafe-negation: 2
  valid-jsdoc: 2

  # Best Practices
  accessor-pairs: 2
  array-callback-return: 2
  block-scoped-var: 2
  class-methods-use-this: 2
  complexity: [2, 12]
  consistent-return: 2
  default-case: 2
  guard-for-in: 2
  no-alert: 2
  no-caller: 2
  no-div-regex: 2
  no-else-return: 2
  no-empty-function: 2
  no-eq-null: 2
  no-eval: 2
  no-extend-native: 2
  no-extra-bind: 2
  no-extra-label: 2
  no-floating-decimal: 2
  no-implicit-coercion: 2
  no-implicit-globals: 2
  no-implied-eval: 2
  no-invalid-this: 0
  no-iterator: 2
  no-labels: 2
  no-lone-blocks: 2
  no-loop-func: 2
  no-magic-numbers: 0
  no-multi-spaces: 2
  no-multi-str: 2
  no-new-func: 2
  no-new-wrappers: 2
  no-new: 2
  no-octal-escape: 2
  no-param-reassign: 2
  no-proto: 2
  no-restricted-properties: 2
  no-return-assign: 2
  no-return-await: 2
  no-script-url: 0
  no-self-compare: 2
  no-sequences: 2
  no-throw-literal: 2
  no-unmodified-loop-condition: 2
  no-unused-expressions: 2
  no-useless-call: 2
  no-useless-concat: 2
  no-useless-escape: 2
  no-useless-return: 2
  no-void: 2
  no-warning-comments: 2
  no-with: 2
  ## prefer-promise-reject-errors: 2 // not supported by Code Climate, Feb 2017
  radix: 2
  require-await: 2
  vars-on-top: 2
  wrap-iife: 2
  yoda: 0

  # Strict
  strict: 2

  # Variables
  init-declarations: 2
  no-catch-shadow: 2
  no-label-var: 2
  no-restricted-globals: 2
  no-shadow-restricted-names: 2
  no-shadow: 2
  no-undef-init: 2
  no-undefined: 0
  no-use-before-define: 2

  # Node.js and CommonJS
  callback-return: 2
  global-require: 0
  handle-callback-err: 2
  no-mixed-requires: 2
  no-new-require: 2
  no-path-concat: 2
  no-process-env: 2
  no-process-exit: 2
  no-restricted-modules: 2
  no-sync: 0

  # Stylistic Issues
  array-bracket-spacing: 2
  block-spacing: 2
  brace-style: 2
  camelcase: 0
  capitalized-comments: 0
  comma-spacing: 2
  comma-style: 2
  computed-property-spacing: 2
  consistent-this: 2
  eol-last: 2
  func-call-spacing: 0
  func-name-matching: 0
  func-names: 0
  func-style: 2
  id-blacklist: 0
  id-length: 0
  id-match: 0
  indent: 0
  jsx-quotes: 0
  key-spacing: 2
  keyword-spacing: 2
  line-comment-position: 0
  linebreak-style: 2
  lines-around-comment: 0
  lines-around-directive: 0
  max-depth: 0
  max-len: 0
  max-lines: 0
  max-nested-callbacks: 2
  max-params: 2
  max-statements: [2, 76]
  multiline-ternary: 0
  new-cap: 0
  new-parens: 2
  newline-after-var: 0
  newline-before-return: 0
  newline-per-chained-call: 0
  no-array-constructor: 2
  no-bitwise: 2
  no-continue: 0
  no-inline-comments: 0
  no-lonely-if: 2
  no-mixed-operators: 0
  no-multiple-empty-lines: 2
  no-negated-condition: 0
  no-nested-ternary: 0
  no-new-object: 0
  no-plusplus: 0
  no-restricted-syntax: 0
  no-tabs: 0
  no-ternary: 0
  no-trailing-spaces: 2
  no-underscore-dangle: 2
  no-unneeded-ternary: 2
  no-whitespace-before-property: 2
  nonblock-statement-body-position: 2
  object-curly-newline: 0
  object-curly-spacing: 2
  object-property-newline: 0
  one-var-declaration-per-line: 0
  one-var: 0
  operator-assignment: 2
  operator-linebreak: 2
  padded-blocks: 0
  quote-props: 2
  quotes: 2
  require-jsdoc: 0
  semi-spacing: 2
  semi: 2
  sort-keys: 0
  sort-vars: 0
  space-after-keywords: 0
  space-before-blocks: 0
  space-before-function-paren: 0
  space-before-keywords: 0
  space-in-parens: 0
  space-infix-ops: 0
  space-return-throw-case: 0
  space-unary-ops: 0
{'fraction_non_alphanumeric': 0.12404556264864189, 'fraction_numerical': 0.045437476530229066, 'mean_word_length': 2.7724268177525966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1915589', 'n_tokens_mistral': 3730, 'n_tokens_neox': 3292, 'n_words': 778}