Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Autofix: tslint
Browse files Browse the repository at this point in the history
[atomist:generated] [atomist:autofix=tslint]
  • Loading branch information
Rod Johnson authored and atomist-bot committed Jul 17, 2019
1 parent b6176a3 commit 97ce557
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/customize/aspects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ import { idealsFromNpm } from "../feature/node/idealFromNpm";
import { TsLintPropertyFeature } from "../feature/node/TsLintFeature";
import { TypeScriptVersion } from "../feature/node/TypeScriptVersion";
import { PythonDependencies } from "../feature/python/pythonDependencies";
import { ExposedSecrets } from "../feature/secret/exposedSecrets";
import { DirectMavenDependencies } from "../feature/spring/directMavenDependencies";
import { SpringBootStarter } from "../feature/spring/springBootStarter";
import { SpringBootVersion } from "../feature/spring/springBootVersion";
import { TravisScriptsFeature } from "../feature/travis/travisFeatures";
import { ExposedSecrets } from "../feature/secret/exposedSecrets";

/**
* The features managed by this SDM.
Expand Down
4 changes: 2 additions & 2 deletions lib/feature/secret/exposedSecrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const ExposedSecrets: Feature = {
name: ExposedSecretsType,
data,
sha: sha256(data),
}
})
};
});
},
toDisplayableFingerprintName: name => name,
toDisplayableFingerprint: fp => `${fp.data.path}:${fp.data.description}`,
Expand Down
2 changes: 1 addition & 1 deletion lib/feature/secret/secretSniffing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface SecretDefinition {
/**
* Regexp for the secret
*/
pattern: RegExp,
pattern: RegExp;

/**
* Description of the problem. For example, what kind of secret this is.
Expand Down
4 changes: 2 additions & 2 deletions lib/feature/secret/snifferOptionsLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ import { SecretDefinition, SnifferOptions } from "./secretSniffing";

import * as yaml from "yamljs";

import { AllFiles } from "@atomist/automation-client";
import * as fs from "fs";
import * as path from "path";
import { AllFiles } from "@atomist/automation-client";

/**
* Based on regular expressions in https://www.ndss-symposium.org/wp-content/uploads/2019/02/ndss2019_04B-3_Meli_paper.pdf
* @type {any[]}
*/
export async function loadSnifferOptions(): Promise<SnifferOptions> {
const secretsYmlPath = path.join(__dirname, "..", "..", "..", "secrets.yml");
const yamlString = fs.readFileSync(secretsYmlPath, 'utf8');
const yamlString = fs.readFileSync(secretsYmlPath, "utf8");
try {
const native = await yaml.parse(yamlString);

Expand Down
2 changes: 1 addition & 1 deletion test/features/secretSniffing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import * as assert from "power-assert";
import { InMemoryProject } from "@atomist/automation-client";
import * as assert from "power-assert";
import { sniffFileContent, sniffProject } from "../../lib/feature/secret/secretSniffing";
import { loadSnifferOptions } from "../../lib/feature/secret/snifferOptionsLoader";

Expand Down

0 comments on commit 97ce557

Please sign in to comment.