Skip to content

Commit 36d6ca5

Browse files
committed
set config for mh linter
1 parent d400c66 commit 36d6ca5

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ before_install:
1313
- travis_retry sudo apt-get -y -qq update
1414
- travis_retry sudo apt-get -y install octave
1515
- travis_retry sudo apt-get -y install liboctave-dev
16+
- cd .. && git clone https://github.com/florianschanda/miss_hit.git && export PATH=$PATH:`pwd`/miss_hit && cd CPP_PTB
1617

1718
install:
1819
- octave $OCTFLAGS --eval "addpath (pwd); savepath ();"
@@ -21,5 +22,10 @@ before_script:
2122
# Change current directory
2223
- cd tests
2324

24-
script:
25-
- octave $OCTFLAGS --eval "results = runtests; assert(all(~[results.Failed]))"
25+
jobs:
26+
include:
27+
- stage: "Tests and linter"
28+
name: "Unit Tests" # names the first job
29+
script: octave $OCTFLAGS --eval "results = runTests; assert(all(~[results.Failed]))"
30+
- script: cd .. && mh_style.py `pwd`
31+
name: "miss_hit linter" # names the second job

miss_hit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
line_length: 100
2+
regex_function_name: "[a-z]+(([A-Z]){1}[A-Za-z]+)*"
3+
suppress_rule: "copyright_notice"

tests/miss_hit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
line_length: 100
2+
regex_function_name: "((test_[a-z]+)|[a-z]+)(([A-Z]){1}[A-Za-z]+)*"
3+
suppress_rule: "copyright_notice"

0 commit comments

Comments
 (0)