Git Product home page Git Product logo

fordoctest's Introduction

fordoctest

Assure Fortran documentation consistence.

Motivation

As a project increases in size, it is harder to track the quality of the present code. In the case of functionality unit testing and coverage metrics can be enough to ensure there are no problems. But keeping track of correct documentation needs even more meticulous work, external tools can be used to help this process (like pydoctest) in Python. fordoctest aims to be an equivalent tool for Fortran documentation.

What does it do?

Running

fordoctest <ford_project_file> [ford_flags]

Right now fordoctest is in a pre-alpha state, it will check on all the source files included in a FORD file and send a warning if any of the following cases occur:

  • More than one module per-file
  • Undocumented:
    • Isolated procedures
    • Modules
    • Modules procedures
    • Procedures arguments

The output of `fordoctest will be something like:"

example output

What it aims to do

fordoctest aims to be a complete tool used in Fortran projects CI systems that can assure that all the code is correctly documented, and maybe also include extra checks like file headers, file naming checks, usage with other tools beside FORD, like Doxygen and Sphinx. We'll consider fordoctest to be in beta-stage once:

  • It becames FORD agnostic (right now it fully depends on the FORD cli parser so it's hard to easy add up methods)
  • Includes documentation checks of all the different kinds entities (like not included yet, derived types)
  • Include documentation restrictions (like forcing imperative verbs in a procedure documentation)
  • Fully tested with coverage of at least 90%

Installation

Since this is still an alpha release, we haven't yet released an installable on PyPI, but the development version can be installed with pip with:

pip install git+ssh://[email protected]/fedebenelli/fordoctest.git

fordoctest's People

Contributors

fedebenelli avatar

Stargazers

Salvador Brandolin avatar Wesley Cota avatar Bob LIN avatar Ben Trettel avatar

Watchers

 avatar

fordoctest's Issues

Prettier warnings

Right now the Warning messages are the default given by Python, using something more colorful would be a nice addition

Use a complete test suite

Right now I don't know how to fake the CLI args with pytest to test the library with multiple examples. But this should be fairly easy.

  • Test with pytest
  • Add more complete examples to find all possiblities

Doxygen documentation compatiblity

I'm not an user of doxyen so I don't know if there is a possibility to parse the documentation in a similar way that it is done
with Ford right now. But since a lot of the Fortran code that I've seen documented uses Doxygen, compatibility with it would be a nice addition

Setup using fpm.toml

Reading extra configurations from [extra.fordoctest] in the fpm manifest file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.