Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kefniark
Copy link
Contributor

@kefniark kefniark commented May 12, 2021

Description

Add some code analysis

  • For node or browser : use the Analyzer class
  • For cli : used by default before execution

This iterate through code AST and check for basic errors:

  • Unknown variable
  • Unknown function
  • Unknown task

I plan to add more check later like:

  • function/task arguments match between the declaration and caller
  • variable conflict (life foreach variable overwriting an existing one)
  • ...

Screenshot

Syntax (missing bracket)

image

Usage of undefined variable

image

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 12, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kefniark kefniark merged commit 6f6c475 into develop May 12, 2021
@kefniark kefniark deleted the feature/analyzer branch May 12, 2021 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants