Skip to content
Snippets Groups Projects
Commit 6e214749 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

plumedcheck in developer doc

parent 2fecf228
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,6 @@
/automatic
/*PP.txt
/links-to-user-manual.txt
/plumedcheck.txt
/coverage
......@@ -766,7 +766,8 @@ INPUT = ./Intro.txt \
./AddingAMeasure.txt \
./AddingAMultColvar.txt \
./InstallationLayout.txt \
./intro-git.txt
./intro-git.txt \
./plumedcheck.txt
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
......
......@@ -13,7 +13,7 @@ ifeq ($(make_doc),yes)
endif
clean:
rm -fr automatic html latex *~ links-to-user-manual.txt coverage coverage.info
rm -fr automatic html latex *~ links-to-user-manual.txt plumedcheck.txt coverage coverage.info
coverage:
lcov -c -d ../src/ --output-file coverage.info
......
......@@ -36,6 +36,29 @@ awk '
printf("%s",".html\"> "$2" </a>\n");
}' > links-to-user-manual.txt
cat ../src/maketools/plumedcheck | grep "# DOC:" |
{
cat << \EOF
// This document is formatted for Doxygen
/**
EOF
awk '
{
sub("# DOC:","");
if($0~"^ *:..*: *"){
print ""
gsub(":","_");
print
print ""
} else print $0
}END{
printf("%s\n","*/");
}'
} > plumedcheck.txt
# Create a directory to put all the files in
#rm -rf automatic
......
#! /bin/bash
# vim: ft=awk
# DOC: \page Plumedcheck Validating syntax with plumedcheck
# DOC:
# DOC: Here is a list of coding rules that are enforced by the plumedcheck script.
# DOC: These rules are necessary to be sure that the codebase is consistent.
# DOC: Code not satisfying these rules will make the automatic test on travis-ci fail.
# DOC: In the following we provide a list of errors that are detected automatically,
# DOC: together with a short explanation of the reason we consider these as errors.
# DOC: The names used are the same ones reported by plumedcheck.
# DOC: The `plumedcheck` script can be used as is, but the simplest way to obtain a report
# DOC: is to go to the `buildroot/src` directory and type `make plumedcheck`.
# DOC: In case you think you have a valid reason for a code not passing the check
# DOC: to be merged, please contact the developers.
TEMP=$(mktemp)
cat > $TEMP << \EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment