package-validator icon indicating copy to clipboard operation
package-validator copied to clipboard

[REQUIREMENT] Don't include update script for AU in package

Open pascalberger opened this issue 8 years ago • 3 comments

A validation rule which checks for the existence of an AU update script (update.ps1) would be nice.

pascalberger avatar Feb 05 '17 20:02 pascalberger

I tend to agree with this, however, I don't think it would be a rule that would fail the validation process, unless we inspect the file in question for something specifically that points to AU being used. i.e. having a file called update.ps1 in the package itself wouldn't be enough, would it?

gep13 avatar Feb 05 '17 20:02 gep13

Better than a filecheck would be to check for a file containng an import-module au statement. But checking for update.ps1 and raise a suggestion might also work.

pascalberger avatar Feb 05 '17 20:02 pascalberger

Ah, good suggestion. I think the presence of the update.ps1 and usage of import-module au would be enough to fail validation, and to push it back to the maintainer.

gep13 avatar Feb 05 '17 20:02 gep13