diff --git a/src/generate/azgenerator.ts b/src/generate/azgenerator.ts index 1e127662..10e8fe5e 100644 --- a/src/generate/azgenerator.ts +++ b/src/generate/azgenerator.ts @@ -30,9 +30,15 @@ export async function processRequest(host: Host) { PathConstants.recordingFolder, ), ); + session.protectFiles( + path.join(configHandler.azOutputFolder, PathConstants.historyRstFile), + ); session.protectFiles( path.join(configHandler.azOutputFolder, PathConstants.readmeFile), ); + session.protectFiles( + path.join(configHandler.azOutputFolder, PathConstants.linterExclusionsFile), + ); } while (model.SelectNextExtension()); } diff --git a/src/generate/generators/ExtensionFull.ts b/src/generate/generators/ExtensionFull.ts index 2d791ef7..5022861a 100644 --- a/src/generate/generators/ExtensionFull.ts +++ b/src/generate/generators/ExtensionFull.ts @@ -85,7 +85,7 @@ export class AzExtensionFullGenerator extends GeneratorBase { await this.generateFullSingleAndAddtoOutput(new CliTopHelp(this.model)); await this.generateFullSingleAndAddtoOutput(new CliTopMetadata(this.model)); await this.generateFullSingleAndAddtoOutput(new CliReport(this.model)); - await this.generateFullSingleAndAddtoOutput(new CliExtHistory(this.model)); + await this.generateFullSingleAndAddtoOutput(new CliExtHistory(this.model), false); await this.generateFullSingleAndAddtoOutput(new CliExtReadme(this.model), false); await this.generateFullSingleAndAddtoOutput(new CliExtSetupCfg(this.model)); await this.generateFullSingleAndAddtoOutput(new CliExtSetupPy(this.model)); diff --git a/src/utils/models.ts b/src/utils/models.ts index ee6c774d..9f3455fa 100644 --- a/src/utils/models.ts +++ b/src/utils/models.ts @@ -75,6 +75,7 @@ export class PathConstants { public static readonly setupPyFile: string = 'setup.py'; public static readonly setupCfgFile: string = 'setup.cfg'; public static readonly historyRstFile: string = 'HISTORY.rst'; + public static readonly linterExclusionsFile: string = 'linter_exclusions.yml'; public static readonly docSourceJsonFile: string = path.join( '/doc/sphinx/azhelpgen/doc_source_map.json', );