<commit_before>/**
 * @license
 * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */

import './rules';

import {registry} from './registry';
import {RuleCollection} from './rule';

registry.register(
    new RuleCollection('polymer-2', `Rules for projects that use Polymer 2.x`, [
      'behaviors-spelling',
      'call-super-in-callbacks',
      'content-to-slot-declarations',
      'content-to-slot-usages',
      'content-selector-to-slotted',
      'create-element-extension',
      'custom-style-extension',
      'databind-with-unknown-property',
      'databinding-calls-must-be-functions',
      'deprecated-css-custom-property-syntax',
      'deprecated-shadow-dom-selectors',<commit_msg>Add a polymer-3 linter collection.<commit_after>/**
 * @license
 * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */

import './rules';

import {registry} from './registry';
import {RuleCollection} from './rule';

registry.register(
    new RuleCollection('polymer-3', `Rules for projects that use Polymer 3.x`, [
      'behaviors-spelling',
      'call-super-in-callbacks',
      'content-to-slot-declarations',
      'content-to-slot-usages',
      'content-selector-to-slotted',
      'create-element-extension',
      'custom-style-extension',
      'databind-with-unknown-property',
      'databinding-calls-must-be-functions',
      'deprecated-css-custom-property-syntax',
      'deprecated-shadow-dom-selectors',
      'dom-calls-to-native',
      'dom-module-invalid-attrs',
      'element-before-dom-module',
      'paper-toolbar-v1-to-v2',
      'root-selector-to-html',
      'set-unknown-attribute',
      'style-into-template',
      'unbalanced-polymer-delimiters',
      'undefined-elements',
      'validate-element-name',
    ]));

registry.register(
    new RuleCollection('polymer-2', `Rules for projects that use Polymer 2.x`, [
      'behaviors-spelling',
      'call-super-in-callbacks',
      'content-to-slot-declarations',
      'content-to-slot-usages',
      'content-selector-to-slotted',
      'create-element-extension',
      'custom-style-extension',
      'databind-with-unknown-property',
      'databinding-calls-must-be-functions',
      'deprecated-css-custom-property-syntax',
      'deprecated-shadow-dom-selectors',
{'fraction_non_alphanumeric': 0.13439351418771436, 'fraction_numerical': 0.005300904271905207, 'mean_word_length': 3.20997375328084, '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': '7538287', 'n_tokens_mistral': 982, 'n_tokens_neox': 949, 'n_words': 232}