Skip to content
forked from holtgrewe/linty

C++ convention/style checker in Python using libclang.

License

Notifications You must be signed in to change notification settings

rainman110/linty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linty - C/C++ Style Checking with Python & libclang

Linty is a style checker built upon Python and libclang.

Status

Linty is currently under heavy development.

There are some basic checks. The main work currently is the indentation check module. There, we aim to provide fine-grained control over the style, compa- rable with the available settings in the Eclipse CDT settings.

Contributions through merge requests are welcome. However, consider that large patch bombs hard hard to review. It is recommended to contact the authors with the intent of your changes. This allows us to help you with any problems and will speed up incorporations of patches.

Support for Objective-C and Microsoft SEH is currently not implemented, contri- butions in this area are welcome, though.

Running

Linty is a collection of checks and driver code to run them. You write "confi- guration" files for it that are actual Python programs. For example, run the seqan style checker:

python conf/seqan/run.py -i ${include_dir} -s ${source_file}

Tests

There is a comprehensive suite of tests, we use the [nosetests framework] 1 for writing such tests. There currently is a known issue with garbage collection that occurs when running nosetests. As a workaround, use the --nologcapture option to nosestest:

nosetests --nologcapture

Authors

  • Manuel Holtgrewe

Acknowledgements

The indentation checks roughly follow the design of the Checkstyle tool for checking Java source code.

About

C++ convention/style checker in Python using libclang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 99.2%
  • Other 0.8%