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.
Files changed (39) hide show
  1. package/.eslintrc.js +28 -1
  2. package/LICENSE +50 -5
  3. package/README.md +235 -314
  4. package/dist/config/config.js +1 -1
  5. package/dist/config/loader.js +6 -0
  6. package/dist/config/pr-checkmate-workflow.yml +16 -16
  7. package/dist/core/checks/circular-deps.js +2 -2
  8. package/dist/core/checks/commitlint.js +3 -3
  9. package/dist/core/checks/cpp-format.js +1 -1
  10. package/dist/core/checks/dead-code.js +51 -0
  11. package/dist/core/checks/dependency-check.js +17 -13
  12. package/dist/core/checks/duplicate-check.js +2 -2
  13. package/dist/core/checks/kotlin-lint.js +46 -0
  14. package/dist/core/checks/license-check.js +20 -6
  15. package/dist/core/checks/lint.js +1 -1
  16. package/dist/core/checks/markdown-lint.js +21 -18
  17. package/dist/core/checks/npm-audit.js +2 -2
  18. package/dist/core/checks/outdated-deps.js +2 -2
  19. package/dist/core/checks/prettier.js +2 -2
  20. package/dist/core/checks/security.js +1 -1
  21. package/dist/core/checks/spellcheck.js +2 -2
  22. package/dist/core/checks/swift-lint.js +50 -0
  23. package/dist/core/checks/typecheck.js +1 -1
  24. package/dist/core/context.js +1 -1
  25. package/dist/core/registry.js +17 -11
  26. package/dist/core/run-checks.js +1 -1
  27. package/dist/init.js +3 -0
  28. package/dist/scripts/copy-configs.js +3 -0
  29. package/dist/scripts/publish-github.js +2 -2
  30. package/dist/utils/delta.js +2 -2
  31. package/dist/utils/detect-language.js +14 -2
  32. package/dist/utils/index.js +3 -0
  33. package/dist/utils/resolve-bin.js +1 -1
  34. package/dist/utils/result-collector.js +15 -0
  35. package/eslint.config.mjs +35 -0
  36. package/package.json +8 -3
  37. package/src/config/.eslintrc.js +28 -1
  38. package/src/config/eslint.config.mjs +35 -0
  39. 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
- Copyright © 2025 Mybono.
2
- All rights reserved.
1
+ PROPRIETARY SOFTWARE LICENSE
2
+ All Rights Reserved
3
3
 
4
- This software and associated documentation files (the “Software”) are the exclusive property of the copyright holder.
4
+ Copyright (c) 2025-2026 Mybono. All Rights Reserved.
5
5
 
6
- Permission is hereby NOT granted to any person or entity to copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, or use the Software in any manner, unless an explicit written permission is provided by the copyright holder.
6
+ ================================================================================
7
+ NOTICE
8
+ ================================================================================
7
9
 
8
- Any unauthorized use, modification, reproduction, or distribution of the Software is strictly prohibited and may result in civil and criminal penalties.
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.