Skip to content
Snippets Groups Projects
Commit ff479fec authored by clayton craft's avatar clayton craft Committed by GitHub
Browse files

Travis: add cpp lint checking (#67)

parent 791b4f64
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,9 @@ cache: ...@@ -7,7 +7,9 @@ cache:
directories: directories:
- $HOME/cppcheck - $HOME/cppcheck
before_install: before_install:
- .travis/install_cppcheck - .travis/install_cppcheck
- .travis/install_nsiqcppstyle
script: script:
test/static_analysis.sh - test/static_analysis.sh
- test/lint_analysis.sh
#!/bin/bash
set -e
dir=$HOME/nsiqcppstyle
git clone https://github.com/craftyguy/nsiqcppstyle.git $dir
- .git/
- test/
- .travis/
~ RULE_4_1_A_B_use_space_for_indentation
~ RULE_4_1_B_indent_each_enum_item_in_enum_block
~ RULE_4_1_B_locate_each_enum_item_in_seperate_line
~ RULE_4_1_C_align_long_function_parameter_list
~ RULE_4_1_E_align_conditions
~ RULE_4_2_A_A_space_around_operator
~ RULE_4_4_A_do_not_write_over_120_columns_per_line
~ RULE_4_5_A_braces_inside_of_function_should_be_located_in_end_of_line
~ RULE_4_5_A_indent_blocks_inside_of_function
~ RULE_5_3_A_provide_doxygen_function_comment_on_function_in_header
~ RULE_9_1_A_do_not_use_hardcorded_include_path
~ RULE_9_2_D_use_reentrant_function
#!/bin/bash
exe=nsiqcppstyle
which $exe 2>/dev/null 1>&2 || exe=$HOME/nsiqcppstyle/nsiqcppstyle
conf=test/filefilter.txt
$exe -f $conf . || exit 1
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