Skip to content

sigasi/eclipse_custom_code_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This project demonstrates custom code checkers.

In this example, all comments in VHDL (*.vhd) files in the project are scanned for matching brackets. The script takes into account parentheses, curly brackets and square brackets: () {} [] If brackets are not matched correctly, the checker will raise a warning at the correct location so that the user can fix the brackets.

How to use:

Make sure you have the current version of the Marker Manager (we are using the version 20150430). Download and installation instructions are at: http://www.markermanager.com

If you want to apply a custome code checker to your own project:

  1. Create a new builder that generates the "markers.rpt" file:
  • Project > Properties > Builders > New > Program

  • Set the options of this new builder like I have configured "Check brackets in VHDL comments" in this example project

  1. Activate the Marker builder to your project: Right-click on the project, Configure > Add Marker Builder

  2. Make sure that your custom builder is listed before the "Marker Project Builder". Check this in Project > Properties > Builders

Suggestions for improvement and customisation:

You can extend the checker.py script to check for mathing HTML tags or matching LaTeX tags in comments.

You can modify the comment symbol in the script so that only comments that start with "--!' are considered.

Contribute

If you have improvements for the checker script or for the documentation, feel free to send a pull request through GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published