Jo Vanthournout
02/28/2022, 2:49 PMng lint
The convention plugin fails when there are linting probs and works fine. However, when running a gradle scan, the scan states that The task was not up-to-date because it did not have any declared outputs
I defined the inputs on this task (basically all the code in the src
folder and the config files) you want to lint, but I was wondering what I should provide as output so gradle can perform its up-to-date check. If the inputs don’t change, the linting will still be ok and should not happen again.
The code of the script plugin is below:
def lintAngularFrontend = tasks.register("lintAngularFrontend", NpmTask)
lintAngularFrontend.configure {
group = 'Verification'
description = 'Runs linting of angular frontend.'
inputs.files('package.json', 'package-lock.json', 'angular.json', 'tsconfig.json', 'tsconfig.app.json')
inputs.dir('src')
dependsOn npmInstallTask
args = ['run', 'lint']
}
Tnx for the help and insightsVampire
02/28/2022, 5:21 PMVampire
02/28/2022, 5:22 PMoutputs.upToDateWhen { true }
Jo Vanthournout
02/28/2022, 8:00 PMVampire
02/28/2022, 9:55 PM