Gathering detailed insights and metrics for @salesforce/apex-tmlanguage
Gathering detailed insights and metrics for @salesforce/apex-tmlanguage
Gathering detailed insights and metrics for @salesforce/apex-tmlanguage
Gathering detailed insights and metrics for @salesforce/apex-tmlanguage
npm install @salesforce/apex-tmlanguage
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
35 Stars
130 Commits
8 Forks
27 Watching
6 Branches
32 Contributors
Updated on 11 Sept 2024
TypeScript (99.07%)
JavaScript (0.93%)
Cumulative downloads
Total Downloads
Last day
-45.9%
99
Compared to previous day
Last week
-7.4%
974
Compared to previous week
Last month
-6.7%
7,766
Compared to previous month
Last year
4%
68,592
Compared to previous year
This repository contains the source code for generating the language grammar files for Salesforce's Apex.
Development and setup of this project has not been tested for Windows OS. You may see a node-gyp error - follow the instrutions here to resolve it.
To build and test install Node.js do the following:
yarn install
to install any dependencies.yarn run build
to build using gulp.yarn run test
to run tests.Output grammars are output in the grammars/
directory.
To see the token changes from within the Salesforce VS Code Extensions:
apex.tmLanguage
results into ../salesforcedx-vscode/packages/salesforcedx-vscode-apex/node_modules/@salesforce/apex-tmlanguage/grammars/apex.tmLanguage
.Command Palette
select Developer: Inspect Editor Tokens and Scopes
.Token structure is based off of Textmate's Language Grammar guidelines
For the standalone SOQL grammar, tests are executed with vscode-tmgrammar-tests.
test/soql/
|-- simple_account.soql "Manually" created test cases
|-- ...
`-- snapshots/ "Snapshot-based" test cases
|-- example-*.soql
|-- example-*.soql.snap
`-- ...
The difference between manual vs. snapshot tests is that the latter are auto-generated and can be updated with command vscode-tmgrammar-snap -u
. They are useful to quickly see the output of applying the grammar and catch regressions.
The example-* queries were taken from Example SELECT clauses.
grammars/apex.tmLanguage.cson
- for Atomgrammars/apex.tmLanguage
- TextMate grammar (XML plist)grammars/soql.tmLanguage
- TextMate grammar (XML plist) for standalone SOQL filesMerges to main on this repo with commits of type 'feat' or 'fix' get automatically published as a GitHub release and an NPM package through Github Actions.
This repository was copied from https://github.com/dotnet/csharp-tmLanguage
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
Found 18/29 approved changesets -- score normalized to 6
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
9 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More