@opensip-tools/checks-java 1.0.4 → 1.0.5
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-test.log +15 -0
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/__tests__/analyze.test.d.ts +2 -0
- package/dist/__tests__/analyze.test.d.ts.map +1 -0
- package/dist/__tests__/analyze.test.js +27 -0
- package/dist/__tests__/analyze.test.js.map +1 -0
- package/dist/__tests__/no-printstacktrace.test.d.ts +2 -0
- package/dist/__tests__/no-printstacktrace.test.d.ts.map +1 -0
- package/dist/__tests__/no-printstacktrace.test.js +51 -0
- package/dist/__tests__/no-printstacktrace.test.js.map +1 -0
- package/dist/checks/no-printstacktrace.d.ts +23 -0
- package/dist/checks/no-printstacktrace.d.ts.map +1 -0
- package/dist/checks/no-printstacktrace.js +50 -0
- package/dist/checks/no-printstacktrace.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
> @opensip-tools/checks-java@1.0.5 test /home/runner/work/opensip-tools/opensip-tools/packages/fitness/checks-java
|
|
3
|
+
> vitest run --passWithNoTests
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[7m[36m RUN [39m[27m[22m [36mv2.1.9 [39m[90m/home/runner/work/opensip-tools/opensip-tools/packages/fitness/checks-java[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/__tests__/analyze.test.ts [2m([22m[2m6 tests[22m[2m)[22m[90m 14[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/__tests__/no-printstacktrace.test.ts [2m([22m[2m6 tests[22m[2m)[22m[90m 30[2mms[22m[39m
|
|
10
|
+
|
|
11
|
+
[2m Test Files [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
12
|
+
[2m Tests [22m [1m[32m12 passed[39m[22m[90m (12)[39m
|
|
13
|
+
[2m Start at [22m 05:38:46
|
|
14
|
+
[2m Duration [22m 10.13s[2m (transform 2.67s, setup 0ms, collect 16.26s, tests 44ms, environment 0ms, prepare 1.09s)[22m
|
|
15
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/analyze.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { analyzePrintStackTrace } from '../checks/no-printstacktrace.js';
|
|
3
|
+
describe('analyzePrintStackTrace', () => {
|
|
4
|
+
it('flags e.printStackTrace()', () => {
|
|
5
|
+
const out = analyzePrintStackTrace('try { foo(); } catch (Exception e) { e.printStackTrace(); }');
|
|
6
|
+
expect(out).toHaveLength(1);
|
|
7
|
+
expect(out[0]?.severity).toBe('warning');
|
|
8
|
+
});
|
|
9
|
+
it('flags printStackTrace() with whitespace', () => {
|
|
10
|
+
expect(analyzePrintStackTrace('e.printStackTrace ( )')).toHaveLength(1);
|
|
11
|
+
});
|
|
12
|
+
it('reports the correct line', () => {
|
|
13
|
+
const out = analyzePrintStackTrace('class X {\n void f(Exception e) {\n e.printStackTrace();\n }\n}');
|
|
14
|
+
expect(out[0]?.line).toBe(3);
|
|
15
|
+
});
|
|
16
|
+
it('does not flag printStackTrace with arguments', () => {
|
|
17
|
+
expect(analyzePrintStackTrace('e.printStackTrace(System.err)')).toHaveLength(0);
|
|
18
|
+
});
|
|
19
|
+
it('flags multiple occurrences in one file', () => {
|
|
20
|
+
const src = 'a.printStackTrace();\nb.printStackTrace();';
|
|
21
|
+
expect(analyzePrintStackTrace(src)).toHaveLength(2);
|
|
22
|
+
});
|
|
23
|
+
it('returns an empty list when no .printStackTrace() is present', () => {
|
|
24
|
+
expect(analyzePrintStackTrace('class X {}')).toEqual([]);
|
|
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,MAAM,GAAG,GAAG,4CAA4C,CAAC;QACzD,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACrE,MAAM,CAAC,sBAAsB,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-printstacktrace.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/no-printstacktrace.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { stripComments, stripStrings } from '@opensip-tools/lang-java/strip';
|
|
2
|
+
import { describe, expect, it } from 'vitest';
|
|
3
|
+
import { analyzePrintStackTrace } from '../checks/no-printstacktrace.js';
|
|
4
|
+
describe('analyzePrintStackTrace', () => {
|
|
5
|
+
it('flags e.printStackTrace()', () => {
|
|
6
|
+
const violations = analyzePrintStackTrace('e.printStackTrace();');
|
|
7
|
+
expect(violations.length).toBe(1);
|
|
8
|
+
expect(violations[0]?.line).toBe(1);
|
|
9
|
+
expect(violations[0]?.message).toContain('logging framework');
|
|
10
|
+
});
|
|
11
|
+
it('does not flag the same literal text inside a string after stripping', () => {
|
|
12
|
+
// The content filter (strip-strings-and-comments) is applied by the
|
|
13
|
+
// framework before calling analyze. Simulate that here.
|
|
14
|
+
const src = 'String s = "e.printStackTrace()";';
|
|
15
|
+
const filtered = stripStrings(src);
|
|
16
|
+
const violations = analyzePrintStackTrace(filtered);
|
|
17
|
+
expect(violations.length).toBe(0);
|
|
18
|
+
});
|
|
19
|
+
it('does not flag occurrences inside comments after stripping', () => {
|
|
20
|
+
const src = '// see e.printStackTrace() for example\nint x = 1;';
|
|
21
|
+
const filtered = stripComments(src);
|
|
22
|
+
const violations = analyzePrintStackTrace(filtered);
|
|
23
|
+
expect(violations.length).toBe(0);
|
|
24
|
+
});
|
|
25
|
+
it('reports correct line numbers for multiple matches', () => {
|
|
26
|
+
const src = [
|
|
27
|
+
'class A {',
|
|
28
|
+
' void m(Throwable e) {',
|
|
29
|
+
' e.printStackTrace();',
|
|
30
|
+
' int x = 1;',
|
|
31
|
+
' e.printStackTrace();',
|
|
32
|
+
' }',
|
|
33
|
+
'}',
|
|
34
|
+
].join('\n');
|
|
35
|
+
const violations = analyzePrintStackTrace(src);
|
|
36
|
+
expect(violations.length).toBe(2);
|
|
37
|
+
expect(violations[0]?.line).toBe(3);
|
|
38
|
+
expect(violations[1]?.line).toBe(5);
|
|
39
|
+
});
|
|
40
|
+
it('flags calls with whitespace inside the parens', () => {
|
|
41
|
+
const violations = analyzePrintStackTrace('e.printStackTrace( );');
|
|
42
|
+
expect(violations.length).toBe(1);
|
|
43
|
+
});
|
|
44
|
+
it('does not flag printStackTrace with arguments (different signature)', () => {
|
|
45
|
+
// printStackTrace(PrintStream) is a legitimate call — only the
|
|
46
|
+
// no-arg variant goes to System.err implicitly.
|
|
47
|
+
const violations = analyzePrintStackTrace('e.printStackTrace(System.out);');
|
|
48
|
+
expect(violations.length).toBe(0);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=no-printstacktrace.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-printstacktrace.test.js","sourceRoot":"","sources":["../../src/__tests__/no-printstacktrace.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAExE,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,EAAE,CAAC,2BA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AAG,sBAAsB,CAAC,GAAG,CAAC,CAAA;QAC9C,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACjC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACnC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACrC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,MAAM,UAAU,GAAG,sBAAsB,CAAC,uBAAuB,CAAC,CAAA;QAClE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,oEAAoE,EAAE,GAAG,EAAE;QAC5E,+DAA+D;QAC/D,gDAAgD;QAChD,MAAM,UAAU,GAAG,sBAAsB,CACvC,gCAAgC,CACjC,CAAA;QACD,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Flag uses of `Throwable.printStackTrace()`.
|
|
3
|
+
*
|
|
4
|
+
* `e.printStackTrace()` writes to stderr, bypassing the application's
|
|
5
|
+
* logging framework. Stack traces emitted that way miss correlation
|
|
6
|
+
* IDs, log levels, and structured fields, and they typically don't
|
|
7
|
+
* land in centralized log aggregation. Always log via the configured
|
|
8
|
+
* logger (SLF4J/Log4j/etc.) and pass the throwable as the cause.
|
|
9
|
+
*
|
|
10
|
+
* The check uses the `strip-strings-and-comments` content filter so
|
|
11
|
+
* the literal token "printStackTrace()" inside a string literal or
|
|
12
|
+
* comment isn't reported.
|
|
13
|
+
*/
|
|
14
|
+
import { type CheckViolation } from '@opensip-tools/fitness';
|
|
15
|
+
/**
|
|
16
|
+
* Pure analysis function. Exported so unit tests can exercise the
|
|
17
|
+
* detection logic without standing up the full Check framework
|
|
18
|
+
* (defineCheck wraps `analyze` into an `execute` closure that
|
|
19
|
+
* requires an ExecutionContext to invoke).
|
|
20
|
+
*/
|
|
21
|
+
export declare function analyzePrintStackTrace(content: string): CheckViolation[];
|
|
22
|
+
export declare const noPrintStackTrace: import("@opensip-tools/fitness").Check;
|
|
23
|
+
//# sourceMappingURL=no-printstacktrace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-printstacktrace.d.ts","sourceRoot":"","sources":["../../src/checks/no-printstacktrace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAIzE;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,EAAE,CAkBxE;AAED,eAAO,MAAM,iBAAiB,wCAW5B,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Flag uses of `Throwable.printStackTrace()`.
|
|
3
|
+
*
|
|
4
|
+
* `e.printStackTrace()` writes to stderr, bypassing the application's
|
|
5
|
+
* logging framework. Stack traces emitted that way miss correlation
|
|
6
|
+
* IDs, log levels, and structured fields, and they typically don't
|
|
7
|
+
* land in centralized log aggregation. Always log via the configured
|
|
8
|
+
* logger (SLF4J/Log4j/etc.) and pass the throwable as the cause.
|
|
9
|
+
*
|
|
10
|
+
* The check uses the `strip-strings-and-comments` content filter so
|
|
11
|
+
* the literal token "printStackTrace()" inside a string literal or
|
|
12
|
+
* comment isn't reported.
|
|
13
|
+
*/
|
|
14
|
+
import { defineCheck } from '@opensip-tools/fitness';
|
|
15
|
+
const PRINT_STACK_TRACE_PATTERN = /\.printStackTrace\s*\(\s*\)/g;
|
|
16
|
+
/**
|
|
17
|
+
* Pure analysis function. Exported so unit tests can exercise the
|
|
18
|
+
* detection logic without standing up the full Check framework
|
|
19
|
+
* (defineCheck wraps `analyze` into an `execute` closure that
|
|
20
|
+
* requires an ExecutionContext to invoke).
|
|
21
|
+
*/
|
|
22
|
+
export function analyzePrintStackTrace(content) {
|
|
23
|
+
const violations = [];
|
|
24
|
+
const lines = content.split('\n');
|
|
25
|
+
for (const [i, line_] of lines.entries()) {
|
|
26
|
+
const line = line_;
|
|
27
|
+
PRINT_STACK_TRACE_PATTERN.lastIndex = 0;
|
|
28
|
+
while (PRINT_STACK_TRACE_PATTERN.exec(line) !== null) {
|
|
29
|
+
violations.push({
|
|
30
|
+
message: 'e.printStackTrace() bypasses the logging framework — use a logger instead',
|
|
31
|
+
severity: 'warning',
|
|
32
|
+
line: i + 1,
|
|
33
|
+
suggestion: 'Replace with logger.error("...", e) so the trace lands in centralized logs',
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return violations;
|
|
38
|
+
}
|
|
39
|
+
export const noPrintStackTrace = defineCheck({
|
|
40
|
+
id: 'c1d2e3f4-9876-4321-cccc-300000000001',
|
|
41
|
+
slug: 'java-no-print-stack-trace',
|
|
42
|
+
description: 'e.printStackTrace() bypasses the logging framework — use a logger instead',
|
|
43
|
+
scope: { languages: ['java'], concerns: [] },
|
|
44
|
+
tags: ['quality', 'observability', 'java'],
|
|
45
|
+
// Strip strings AND comments so the literal token inside a docstring
|
|
46
|
+
// or example comment isn't false-flagged.
|
|
47
|
+
contentFilter: 'strip-strings-and-comments',
|
|
48
|
+
analyze: (content) => analyzePrintStackTrace(content),
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=no-printstacktrace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-printstacktrace.js","sourceRoot":"","sources":["../../src/checks/no-printstacktrace.ts"],"names":[],"mappings":"AAAA;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are const checks: readonly [import("@opensip-tools/fitness").Check];
|
|
2
|
+
export declare const metadata: {
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
export { noPrintStackTrace } from './checks/no-printstacktrace.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,mDAA+B,CAAA;AAGlD,eAAO,MAAM,QAAQ;;;;CAIpB,CAAA;AAED,OAAO,EAAC,iBAAiB,EAAC,MAAM,gCAAgC,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { noPrintStackTrace } from './checks/no-printstacktrace.js';
|
|
2
|
+
export const checks = [noPrintStackTrace];
|
|
3
|
+
export const metadata = {
|
|
4
|
+
name: '@opensip-tools/checks-java',
|
|
5
|
+
version: '0.6.1',
|
|
6
|
+
description: 'Java fitness checks',
|
|
7
|
+
};
|
|
8
|
+
export { noPrintStackTrace } from './checks/no-printstacktrace.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,iBAAiB,CAAU,CAAA;AAGlD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,qBAAqB;CACnC,CAAA;AAED,OAAO,EAAC,iBAAiB,EAAC,MAAM,gCAAgC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensip-tools/checks-java",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Java fitness checks for opensip-tools",
|
|
6
6
|
"repository": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
".": "./dist/index.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@opensip-tools/fitness": "1.0.
|
|
23
|
-
"@opensip-tools/lang-java": "1.0.
|
|
22
|
+
"@opensip-tools/fitness": "1.0.5",
|
|
23
|
+
"@opensip-tools/lang-java": "1.0.5"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.0.0",
|