# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
task-defaults:
    description: 'Run lint over all modules'
    run:
        using: gradlew
        gradlew: ['lint', 'githubLintAndroidDetails']
    worker:
        artifacts:
            - name: public/github
              path: /builds/worker/github
              type: directory
        max-run-time: 7200


lint-android-components:
    optimization:
        skip-unless-changed:
            - "android-components/**"
    run:
        pre-gradlew:
            - ["cd", "android-components"]
    treeherder:
        symbol: lint(AC)

lint-focus:
    optimization:
        skip-unless-changed:
            - "focus-android/**"
    run:
        pre-gradlew:
            - ["cd", "focus-android"]
    treeherder:
        symbol: lint(focus)

lint-fenix:
    dependencies:
        external-gradle-dependencies: external-gradle-dependencies-lint-fenix
    optimization:
        skip-unless-changed:
            - "fenix/**"
    run:
        pre-gradlew:
            - ["cd", "fenix"]
        gradlew: ['lintDebug', 'githubLintAndroidDetails', 'mozilla-lint-rules:test']
    treeherder:
        symbol: lint(fenix)
