pr-checkmate 1.21.12 → 1.21.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +28 -1
- package/LICENSE +50 -5
- package/README.md +235 -314
- package/dist/config/config.js +1 -1
- package/dist/config/loader.js +6 -0
- package/dist/config/pr-checkmate-workflow.yml +16 -16
- package/dist/core/checks/circular-deps.js +2 -2
- package/dist/core/checks/commitlint.js +3 -3
- package/dist/core/checks/cpp-format.js +1 -1
- package/dist/core/checks/dead-code.js +51 -0
- package/dist/core/checks/dependency-check.js +17 -13
- package/dist/core/checks/duplicate-check.js +2 -2
- package/dist/core/checks/kotlin-lint.js +46 -0
- package/dist/core/checks/license-check.js +20 -6
- package/dist/core/checks/lint.js +1 -1
- package/dist/core/checks/markdown-lint.js +21 -18
- package/dist/core/checks/npm-audit.js +2 -2
- package/dist/core/checks/outdated-deps.js +2 -2
- package/dist/core/checks/prettier.js +2 -2
- package/dist/core/checks/security.js +1 -1
- package/dist/core/checks/spellcheck.js +2 -2
- package/dist/core/checks/swift-lint.js +50 -0
- package/dist/core/checks/typecheck.js +1 -1
- package/dist/core/context.js +1 -1
- package/dist/core/registry.js +17 -11
- package/dist/core/run-checks.js +1 -1
- package/dist/init.js +3 -0
- package/dist/scripts/copy-configs.js +3 -0
- package/dist/scripts/publish-github.js +2 -2
- package/dist/utils/delta.js +2 -2
- package/dist/utils/detect-language.js +14 -2
- package/dist/utils/index.js +3 -0
- package/dist/utils/resolve-bin.js +1 -1
- package/dist/utils/result-collector.js +15 -0
- package/eslint.config.mjs +35 -0
- package/package.json +8 -3
- package/src/config/.eslintrc.js +28 -1
- package/src/config/eslint.config.mjs +35 -0
- package/src/config/pr-checkmate-workflow.yml +16 -16
package/.eslintrc.js
CHANGED
|
@@ -41,7 +41,7 @@ module.exports = {
|
|
|
41
41
|
sourceType: 'module',
|
|
42
42
|
project: './tsconfig.json',
|
|
43
43
|
},
|
|
44
|
-
plugins: ['@typescript-eslint', 'prettier', 'import'],
|
|
44
|
+
plugins: ['@typescript-eslint', 'prettier', 'import', 'jsdoc'],
|
|
45
45
|
extends: [
|
|
46
46
|
'eslint:recommended',
|
|
47
47
|
'plugin:@typescript-eslint/recommended',
|
|
@@ -80,6 +80,33 @@ module.exports = {
|
|
|
80
80
|
{ blankLine: 'always', prev: 'block', next: '*' },
|
|
81
81
|
{ blankLine: 'always', prev: '*', next: 'return' },
|
|
82
82
|
],
|
|
83
|
+
// Complexity analysis (#61)
|
|
84
|
+
complexity: ['warn', 15],
|
|
85
|
+
// Import ordering (#65)
|
|
86
|
+
'import/order': [
|
|
87
|
+
'warn',
|
|
88
|
+
{
|
|
89
|
+
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
|
|
90
|
+
alphabetize: { order: 'asc', caseInsensitive: true },
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
'import/no-duplicates': 'error',
|
|
94
|
+
// Documentation (#62)
|
|
95
|
+
'jsdoc/require-jsdoc': [
|
|
96
|
+
'warn',
|
|
97
|
+
{
|
|
98
|
+
publicOnly: true,
|
|
99
|
+
require: {
|
|
100
|
+
FunctionDeclaration: true,
|
|
101
|
+
MethodDefinition: true,
|
|
102
|
+
ClassDeclaration: true,
|
|
103
|
+
ArrowFunctionExpression: false,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
'jsdoc/check-param-names': 'warn',
|
|
108
|
+
'jsdoc/check-tag-names': 'warn',
|
|
109
|
+
'jsdoc/check-types': 'warn',
|
|
83
110
|
'prettier/prettier': [
|
|
84
111
|
'error',
|
|
85
112
|
{
|
package/LICENSE
CHANGED
|
@@ -1,9 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
All
|
|
1
|
+
PROPRIETARY SOFTWARE LICENSE
|
|
2
|
+
All Rights Reserved
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Copyright (c) 2025-2026 Mybono. All Rights Reserved.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
================================================================================
|
|
7
|
+
NOTICE
|
|
8
|
+
================================================================================
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
This software and its source code, documentation, data, models, and all
|
|
11
|
+
associated materials (collectively, the "Software") are the confidential and
|
|
12
|
+
proprietary property of Mybono (the "Owner").
|
|
9
13
|
|
|
14
|
+
NO LICENSE IS GRANTED. This is NOT open-source software. The Software is
|
|
15
|
+
made available for viewing solely to persons explicitly and individually
|
|
16
|
+
authorized in writing by the Owner. The mere presence of this source code in
|
|
17
|
+
any repository, archive, or medium does NOT constitute permission to use it.
|
|
18
|
+
|
|
19
|
+
================================================================================
|
|
20
|
+
RESTRICTIONS
|
|
21
|
+
================================================================================
|
|
22
|
+
|
|
23
|
+
Without the prior express written permission of the Owner, you MAY NOT:
|
|
24
|
+
|
|
25
|
+
1. Copy, reproduce, or duplicate the Software, in whole or in part.
|
|
26
|
+
2. Use or execute the Software for any purpose, commercial or otherwise.
|
|
27
|
+
3. Modify, adapt, translate, or create derivative works from the Software.
|
|
28
|
+
4. Distribute, publish, sublicense, sell, rent, lease, or transfer the
|
|
29
|
+
Software or any portion thereof to any third party.
|
|
30
|
+
5. Fork, mirror, or re-host the Software in any public or private repository.
|
|
31
|
+
6. Reverse engineer, decompile, or disassemble the Software.
|
|
32
|
+
7. Remove, obscure, or alter this notice or any copyright, trademark, or
|
|
33
|
+
other proprietary notices contained in the Software.
|
|
34
|
+
|
|
35
|
+
Any use not expressly permitted in writing by the Owner is strictly
|
|
36
|
+
prohibited and constitutes a violation of applicable copyright and
|
|
37
|
+
intellectual property laws.
|
|
38
|
+
|
|
39
|
+
================================================================================
|
|
40
|
+
NO WARRANTY
|
|
41
|
+
================================================================================
|
|
42
|
+
|
|
43
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
44
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
45
|
+
FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
46
|
+
OWNER BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN
|
|
47
|
+
ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
|
|
48
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
49
|
+
|
|
50
|
+
================================================================================
|
|
51
|
+
CONTACT
|
|
52
|
+
================================================================================
|
|
53
|
+
|
|
54
|
+
For licensing inquiries or permission requests, contact the Owner: Mybono.
|