@atlisp/lint 0.1.4 → 0.1.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.
@@ -28,8 +28,8 @@ function checkRedundantCondAst(ast, file) {
28
28
  });
29
29
  }
30
30
  }
31
- // Last clause with T/t condition: (cond (x y) (T z)) → else branch
32
- if (clauses.length >= 2) {
31
+ // Two-clause cond with T/t as last condition: (cond (x y) (T z)) → (if x y z)
32
+ if (clauses.length === 2) {
33
33
  const last = clauses[clauses.length - 1];
34
34
  if (last.type === 'list' && last.children && last.children.length > 0) {
35
35
  const condTest = last.children[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlisp/lint",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "AutoLISP static analysis tool — parens, security, conventions, SBCL syntax validation",
5
5
  "keywords": [
6
6
  "CAD",