import '../../../../globals.js';
// Copyright 2019, University of Colorado Boulder


/**
 * Lint detector for invalid text in chipper
 * Lint is disabled for this file so the bad texts aren't themselves flagged.
 *
 * @author Sam Reid (PhET Interactive Simulations)
 * @author Michael Kauzmann (PhET Interactive Simulations)
 */

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

module.exports = {
  create: function( context ) {

    // see getBadTextTester for schema.
    const forbiddenTextObjects = [

      // chipper should use perennial-alias instead of perennial, so that it can check out specific versions
      '../perennial/js/'
    ];

    return {
      Program: getBadTextTester( 'bad-chipper-text', forbiddenTextObjects, context )
    };
  }
};

module.exports.schema = [
  // JSON Schema for rule options goes here
];