Skip to content

Documentation - Support another configuration in the same file #6

@eitanp461

Description

@eitanp461

Hi,

Thanks for publishing this plugin.
I wanted to share that I was able to run several configurations as seen below, and thought it is worth sharing on the documentation or wiki pages.

grunt.initConfig({
  "regex-check": {
        directives: {
            files: [
                {src: ['app/js/**/*-drtv.js']}
            ],
            options: {
                // force file naming conventions
                pattern: /templateUrl(?!(.*-tmpl.html|.*\{|;))/g
            }
        },
        scopes: {
            files: [
                {src: ['app/js/**/*.js']}
            ],
            // Check that scopes that are created programatically with $new are eventually cleaned up
            options: {
                pattern: /\$new(?!(\$on('\$destroy')))/g
            }
        }
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions