// Copyright 2018-2019, University of Colorado Boulder
/* eslint-disable */

/**
 * Lint detector for invalid text.  Checks the entire file and does not correctly report line number.
 * Lint is disabled for this file so the bad texts aren't themselves flagged.
 *
 * @author Sam Reid (PhET Interactive Simulations)
 */
module.exports = function( context ) {
  'use strict';

  const getBadTextTester = require( './getBadTextTester' );

  var badTexts = [

    // Proper casing for *boxes
    'toolBox',
    'ToolBox',
    'CheckBox',
    'checkBox',
    'Combobox',
    'combobox',

    // In ES6, extending object causes methods to be dropped
    'extends Object',

    // Forbid common duplicate words
    ' the the ',
    ' a a ',

    // For phet-io use PHET_IO in constants
    'PHETIO',
    '@return '
  ];

  return {
    Program: getBadTextTester( badTexts, context )
  };
};

module.exports.schema = [
  // JSON Schema for rule options goes here
];
// Copyright 2018-2019, University of Colorado Boulder
/* eslint-disable */

/**
 * Lint detector for invalid text.  Checks the entire file and does not correctly report line number.
 * Lint is disabled for this file so the bad texts aren't themselves flagged.
 *
 * @author Sam Reid (PhET Interactive Simulations)
 */
module.exports = function( context ) {
  'use strict';

  const getBadTextTester = require( './getBadTextTester' );

  var badTexts = [

    // Proper casing for *boxes
    'toolBox',
    'ToolBox',
    'CheckBox',
    'checkBox',
    'Combobox',
    'combobox',

    // In ES6, extending object causes methods to be dropped
    'extends Object',

    // Forbid common duplicate words
    ' the the ',
    ' a a ',

    // For phet-io use PHET_IO in constants
    'PHETIO',
    'phetio element', // use "phet-io element" or "PhET-iO element"
    '@return '
  ];

  return {
    Program: getBadTextTester( badTexts, context )
  };
};

module.exports.schema = [
  // JSON Schema for rule options goes here
];
add "phetio element" to bad-text, https://github.com/phetsims/phet-io/issues/1422