feat: adding linter for commits

This commit is contained in:
Carlos Gutierrez
2021-11-22 09:39:27 -06:00
commit 2c7c117aa1
3093 changed files with 1215197 additions and 0 deletions

355
node_modules/@commitlint/lint/CHANGELOG.md generated vendored Normal file
View File

@ -0,0 +1,355 @@
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
**Note:** Version bump only for package @commitlint/lint
# [14.1.0](https://github.com/conventional-changelog/commitlint/compare/v14.0.0...v14.1.0) (2021-11-01)
**Note:** Version bump only for package @commitlint/lint
# [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26)
**Note:** Version bump only for package @commitlint/lint
# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
**Note:** Version bump only for package @commitlint/lint
# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
**Note:** Version bump only for package @commitlint/lint
# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596)
### BREAKING CHANGES
* minimum node version is 12
## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
**Note:** Version bump only for package @commitlint/lint
## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
**Note:** Version bump only for package @commitlint/lint
## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
**Note:** Version bump only for package @commitlint/lint
# [12.1.0](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.0) (2021-03-06)
**Note:** Version bump only for package @commitlint/lint
## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
**Note:** Version bump only for package @commitlint/lint
# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
**Note:** Version bump only for package @commitlint/lint
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
**Note:** Version bump only for package @commitlint/lint
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
### BREAKING CHANGES
* remove node 8 from circle-ci checks
also remove node 13 because we do not support experimental versions
* docs: update node v10 to latest LTS 10 version
Co-authored-by: Cedric van Putten <me@bycedric.com>
Co-authored-by: Cedric van Putten <me@bycedric.com>
## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
**Note:** Version bump only for package @commitlint/lint
## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
**Note:** Version bump only for package @commitlint/lint
# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
**Note:** Version bump only for package @commitlint/lint
## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
**Note:** Version bump only for package @commitlint/lint
# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
### Bug Fixes
* [#840](https://github.com/conventional-changelog/commitlint/issues/840) add caret to lodash versions ([#843](https://github.com/conventional-changelog/commitlint/issues/843)) ([ffc0bac](https://github.com/conventional-changelog/commitlint/commit/ffc0bac26993acb2ab6a8fa51065f93c92b0d644))
* ignore empty commit messages [#615](https://github.com/conventional-changelog/commitlint/issues/615) ([#676](https://github.com/conventional-changelog/commitlint/issues/676)) ([c3eb1a7](https://github.com/conventional-changelog/commitlint/commit/c3eb1a76e08213d7ce1f200e35f8d5d6de18982a))
### Features
* add async promise based rules methods into lint ([#976](https://github.com/conventional-changelog/commitlint/issues/976)) ([4443062](https://github.com/conventional-changelog/commitlint/commit/444306249b8a3d04524538f61edca8f6cc10d75f))
## [8.3.5](https://github.com/conventional-changelog/commitlint/compare/v8.3.4...v8.3.5) (2020-01-15)
**Note:** Version bump only for package @commitlint/lint
## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03)
**Note:** Version bump only for package @commitlint/lint
# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16)
**Note:** Version bump only for package @commitlint/lint
# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16)
**Note:** Version bump only for package @commitlint/lint
# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15)
**Note:** Version bump only for package @commitlint/lint
# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
### Features
* adds support for plugins ([#228](https://github.com/conventional-changelog/commitlint/issues/228)) ([#588](https://github.com/conventional-changelog/commitlint/issues/588)) ([cea4564](https://github.com/conventional-changelog/commitlint/commit/cea4564))
* config based is-ignored overrides ([#595](https://github.com/conventional-changelog/commitlint/issues/595)) ([2434d71](https://github.com/conventional-changelog/commitlint/commit/2434d71))
## [7.5.2](https://github.com/conventional-changelog/commitlint/compare/v7.5.1...v7.5.2) (2019-02-11)
**Note:** Version bump only for package @commitlint/lint
## [7.5.1](https://github.com/conventional-changelog/commitlint/compare/v7.5.0...v7.5.1) (2019-02-09)
**Note:** Version bump only for package @commitlint/lint
<a name="7.5.0"></a>
# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
### Bug Fixes
* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
<a name="7.4.0"></a>
# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27)
**Note:** Version bump only for package @commitlint/lint
<a name="7.3.2"></a>
## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15)
### Bug Fixes
* move loadsh to dependencies ([1bb66a4](https://github.com/conventional-changelog/commitlint/commit/1bb66a4))
<a name="7.3.1"></a>
## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
**Note:** Version bump only for package @commitlint/lint
<a name="7.3.0"></a>
# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
### Bug Fixes
* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
<a name="7.2.1"></a>
## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
**Note:** Version bump only for package @commitlint/lint
<a name="7.2.0"></a>
# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
**Note:** Version bump only for package @commitlint/lint
<a name="7.1.2"></a>
## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
**Note:** Version bump only for package @commitlint/lint
<a name="7.1.0"></a>
# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
**Note:** Version bump only for package @commitlint/lint
<a name="6.2.0"></a>
# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01)
### Features
* print commit message when the message is invalid ([86c34f1](https://github.com/conventional-changelog/commitlint/commit/86c34f1)), closes [#222](https://github.com/conventional-changelog/commitlint/issues/222)
<a name="6.1.1"></a>
## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
**Note:** Version bump only for package @commitlint/lint

35
node_modules/@commitlint/lint/README.md generated vendored Normal file
View File

@ -0,0 +1,35 @@
> Lint a string against commitlint rules
# @commitlint/lint
## Getting started
```shell
npm install --save @commitlint/lint
```
## Example
```js
const lint = require('@commitlint/lint').default;
lint('foo: bar', {'type-enum': [1, 'always', ['foo']]}).then((report) =>
console.log(report)
);
// => { valid: true, errors: [], warnings: [] }
lint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then((report) =>
console.log(report)
);
/* =>
{ valid: true,
errors: [],
warnings:
[ { level: 1,
valid: false,
name: 'type-enum',
message: 'type must be one of [bar]' } ] }
*/
```
Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.

View File

@ -0,0 +1,7 @@
export interface CommitMessageData {
header: string;
body?: string | null;
footer?: string | null;
}
export declare const buildCommitMesage: ({ header, body, footer, }: CommitMessageData) => string;
//# sourceMappingURL=commit-message.d.ts.map

View File

@ -0,0 +1 @@
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,8BAI3B,iBAAiB,KAAG,MAOtB,CAAC"}

11
node_modules/@commitlint/lint/lib/commit-message.js generated vendored Normal file
View File

@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildCommitMesage = void 0;
const buildCommitMesage = ({ header, body, footer, }) => {
let message = header;
message = body ? `${message}\n\n${body}` : message;
message = footer ? `${message}\n\n${footer}` : message;
return message;
};
exports.buildCommitMesage = buildCommitMesage;
//# sourceMappingURL=commit-message.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"commit-message.js","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":";;;AAMO,MAAM,iBAAiB,GAAG,CAAC,EACjC,MAAM,EACN,IAAI,EACJ,MAAM,GACa,EAAU,EAAE;IAC/B,IAAI,OAAO,GAAG,MAAM,CAAC;IAErB,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACnD,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAEvD,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC;AAXW,QAAA,iBAAiB,qBAW5B"}

3
node_modules/@commitlint/lint/lib/lint.d.ts generated vendored Normal file
View File

@ -0,0 +1,3 @@
import { LintOptions, LintOutcome, QualifiedRules } from '@commitlint/types';
export default function lint(message: string, rawRulesConfig?: QualifiedRules, rawOpts?: LintOptions): Promise<LintOutcome>;
//# sourceMappingURL=lint.d.ts.map

1
node_modules/@commitlint/lint/lib/lint.d.ts.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,WAAW,EACX,WAAW,EAMX,cAAc,EACd,MAAM,mBAAmB,CAAC;AAE3B,wBAA8B,IAAI,CACjC,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,cAAc,EAC/B,OAAO,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,CAgLtB"}

118
node_modules/@commitlint/lint/lib/lint.js generated vendored Normal file
View File

@ -0,0 +1,118 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = __importDefault(require("util"));
const is_ignored_1 = __importDefault(require("@commitlint/is-ignored"));
const parse_1 = __importDefault(require("@commitlint/parse"));
const rules_1 = __importDefault(require("@commitlint/rules"));
const commit_message_1 = require("./commit-message");
const types_1 = require("@commitlint/types");
async function lint(message, rawRulesConfig, rawOpts) {
const opts = rawOpts
? rawOpts
: { defaultIgnores: undefined, ignores: undefined };
const rulesConfig = rawRulesConfig || {};
// Found a wildcard match, skip
if ((0, is_ignored_1.default)(message, { defaults: opts.defaultIgnores, ignores: opts.ignores })) {
return {
valid: true,
errors: [],
warnings: [],
input: message,
};
}
// Parse the commit message
const parsed = message === ''
? { header: null, body: null, footer: null }
: await (0, parse_1.default)(message, undefined, opts.parserOpts);
if (parsed.header === null &&
parsed.body === null &&
parsed.footer === null) {
// Commit is empty, skip
return {
valid: true,
errors: [],
warnings: [],
input: message,
};
}
const allRules = new Map(Object.entries(rules_1.default));
if (opts.plugins) {
Object.values(opts.plugins).forEach((plugin) => {
if (plugin.rules) {
Object.keys(plugin.rules).forEach((ruleKey) => allRules.set(ruleKey, plugin.rules[ruleKey]));
}
});
}
// Find invalid rules configs
const missing = Object.keys(rulesConfig).filter((name) => typeof allRules.get(name) !== 'function');
if (missing.length > 0) {
const names = [...allRules.keys()];
throw new RangeError(`Found invalid rule names: ${missing.join(', ')}. Supported rule names are: ${names.join(', ')}`);
}
const invalid = Object.entries(rulesConfig)
.map(([name, config]) => {
if (!Array.isArray(config)) {
return new Error(`config for rule ${name} must be array, received ${util_1.default.inspect(config)} of type ${typeof config}`);
}
const [level] = config;
if (level === types_1.RuleConfigSeverity.Disabled && config.length === 1) {
return null;
}
const [, when] = config;
if (typeof level !== 'number' || isNaN(level)) {
return new Error(`level for rule ${name} must be number, received ${util_1.default.inspect(level)} of type ${typeof level}`);
}
if (config.length < 2 || config.length > 3) {
return new Error(`config for rule ${name} must be 2 or 3 items long, received ${util_1.default.inspect(config)} of length ${config.length}`);
}
if (level < 0 || level > 2) {
return new RangeError(`level for rule ${name} must be between 0 and 2, received ${util_1.default.inspect(level)}`);
}
if (typeof when !== 'string') {
return new Error(`condition for rule ${name} must be string, received ${util_1.default.inspect(when)} of type ${typeof when}`);
}
if (when !== 'never' && when !== 'always') {
return new Error(`condition for rule ${name} must be "always" or "never", received ${util_1.default.inspect(when)}`);
}
return null;
})
.filter((item) => item instanceof Error);
if (invalid.length > 0) {
throw new Error(invalid.map((i) => i.message).join('\n'));
}
// Validate against all rules
const pendingResults = Object.entries(rulesConfig)
// Level 0 rules are ignored
.filter(([, config]) => !!config && config.length && config[0] > 0)
.map(async (entry) => {
const [name, config] = entry;
const [level, when, value] = config; //
const rule = allRules.get(name);
if (!rule) {
throw new Error(`Could not find rule implementation for ${name}`);
}
const executableRule = rule;
const [valid, message] = await executableRule(parsed, when, value);
return {
level,
valid,
name,
message,
};
});
const results = (await Promise.all(pendingResults)).filter((result) => result !== null);
const errors = results.filter((result) => result.level === 2 && !result.valid);
const warnings = results.filter((result) => result.level === 1 && !result.valid);
const valid = errors.length === 0;
return {
valid,
errors,
warnings,
input: (0, commit_message_1.buildCommitMesage)(parsed),
};
}
exports.default = lint;
//# sourceMappingURL=lint.js.map

1
node_modules/@commitlint/lint/lib/lint.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,wEAA+C;AAC/C,8DAAsC;AACtC,8DAA6C;AAC7C,qDAAmD;AACnD,6CAS2B;AAEZ,KAAK,UAAU,IAAI,CACjC,OAAe,EACf,cAA+B,EAC/B,OAAqB;IAErB,MAAM,IAAI,GAAG,OAAO;QACnB,CAAC,CAAC,OAAO;Q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AAC,KAAK,CAC/C,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC;IAElC,OAAO;QACN,KAAK;QACL,MAAM;QACN,QAAQ;QACR,KAAK,EAAE,IAAA,kCAAiB,EAAC,MAAM,CAAC;KAChC,CAAC;AACH,CAAC;AApLD,uBAoLC"}

21
node_modules/@commitlint/lint/license.md generated vendored Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 - present Mario Nebl
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

48
node_modules/@commitlint/lint/package.json generated vendored Normal file
View File

@ -0,0 +1,48 @@
{
"name": "@commitlint/lint",
"version": "15.0.0",
"description": "Lint a string against commitlint rules",
"main": "lib/lint.js",
"types": "lib/lint.d.ts",
"files": [
"lib/"
],
"scripts": {
"deps": "dep-check",
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=v12"
},
"repository": {
"type": "git",
"url": "https://github.com/conventional-changelog/commitlint.git",
"directory": "@commitlint/lint"
},
"bugs": {
"url": "https://github.com/conventional-changelog/commitlint/issues"
},
"homepage": "https://commitlint.js.org/",
"keywords": [
"conventional-changelog",
"commitlint",
"library",
"core"
],
"author": {
"name": "Mario Nebl",
"email": "hello@herebecode.com"
},
"license": "MIT",
"devDependencies": {
"@commitlint/test": "^15.0.0",
"@commitlint/utils": "^15.0.0"
},
"dependencies": {
"@commitlint/is-ignored": "^15.0.0",
"@commitlint/parse": "^15.0.0",
"@commitlint/rules": "^15.0.0",
"@commitlint/types": "^15.0.0"
},
"gitHead": "399a0289356c670a87524387cc96d8fb0a33fdca"
}