Add auto fixing

This commit is contained in:
trickypr 2022-01-21 14:02:42 +11:00
parent 30c13d34a0
commit 6ca741c64d
3 changed files with 38 additions and 7 deletions

View file

@ -106,6 +106,12 @@ export const commands: Cmd[] = [
{
cmd: 'license-check',
aliases: ['lc'],
options: [
{
arg: '-n, --no-fix',
description: "Do not add MPL-2.0 headers to files that don't have it",
},
],
description: 'Check the src directory for the absence of MPL-2.0 header.',
controller: licenseCheck,
},