./devel/ast-grep, CLI tool for code structural search, lint, and rewriting

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.21.1, Package name: ast-grep-0.21.1, Maintainer: pkgsrc-users

ast-grep(sg) is a CLI tool for code structural search, lint, and
rewriting.

ast-grep is a AST-based tool to search code by pattern code. Think it
as your old-friend grep but it matches AST nodes instead of text. You
can write patterns as if you are writing ordinary code. It will match
all code that has the same syntactical structure. You can use $ sign +
upper case letters as wildcard, e.g. $MATCH, to match any single AST
node. Think it as REGEX dot ., except it is not textual.


Master sites:

Filesize: 799.187 KB

Version history: (Expand)


CVS history: (Expand)


   2024-04-26 11:42:18 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.21.1

 - feat: find defined vars in utils cbc6534
 - fix: add referent rule stack overflow test case f7f24e1
 - feat: add utils defined vars 59001eb
   2024-04-24 10:32:07 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.21.0

  feat: report unused rewriters #1064
  feat: report undefined error in fix #1070
  feat: define the resolution order of meta variables #1068
  feat: export used meta-var in transform #1069
  feat: export meta variables defined in transform #1066
  feat: export meta variables defined in constraints/rules #1067
  test: add test for Pattern::defined_vars method #1065
  feat: analyze meta variables defined in pattern #1065
  feat: add field id Error for relational rule #1059
  feat: support rewrtier check in sub-rule eb4c47c
  test: add undefined rewriter test d56ad74
  feat: add used_vars in TemplateFix 641d3b4
   2024-04-18 10:52:26 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
ast-grep: update to 0.20.5.

#### [0.20.5]

- fix: add parse global util error
- fix: ignore test
   2024-04-08 12:36:37 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.20.4

0.20.4
 - fix: fix new deprecation note of Rust 2024 a70565e
 - fix: fix quickfix fef3dfc
 - fix: better fix message e0b5875

0.20.3
 - feat(lsp): run "source.fixAll.ast-grep" onsave #1021
 - test: move the integration-test to test folder f2ff77a
 - chore: cargo update 83394e9
 - refactor: move logging and io out of on_apply_all_fix cd79cda
   2024-04-06 09:14:49 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
ast-grep: update to 0.20.2.

#### 0.20.2

- feat: make test --update-all not report error
- fix: fix update cases
- refactor: less indentation for interactive reporter
- feat: improve accept

#### 0.20.1

- feat: respect suppression in lsp
   2024-03-24 16:29:37 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.20.0

 - test: add test for error suppression in scan #1007
 - refactor: merge CombinedScan::scan and CombinedScan::diff #1011
 - feat: report error count instead of file count #1009
 - feat: suppress specific rule #1005
 - fix: skip suppressed error #1006
 - feat: support error/warning suppression #446
 - fix(deps): update babel monorepo da9a938
 - fix(deps): update dependency @swc/core to v1.4.8 d81365a
 - feat: add more states for rule suppression 41a058c
   2024-03-11 17:59:57 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.19.4

 - LSP default message for diagnostics #970
 - feat: Add error messaging for rule file parsing failures #968
 - feat: add html testing and tweak html #977
 - fix(deps): update dependency @babel/core to v7.24.0 a14741d
 - fix(deps): update dependency @swc/core to v1.4.6 4a397f4
 - fix(deps): update rust crate pyo3 to 0.20.3 23653c2
   2024-02-26 19:58:01 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.19.3

 - fix(deps): update dependency @swc/core to v1.4.2 67450cb
 - refactor: move rewriters to SerializableRuleConfig d98c062
 - fix(deps): update rust crate inquire to 0.7.0 86ec845