diff --git a/.editorconfig b/.editorconfig index 014c2383b..f640980e2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,6 @@ indent_style = space [*.{md,yml,yaml,html,css,scss,js,cff}] indent_size = 2 + +[LICENSE] +indent_size = 1 diff --git a/docs/deps/gh-md-toc b/docs/deps/gh-md-toc index fbe76eeb9..241eb7ed4 100755 --- a/docs/deps/gh-md-toc +++ b/docs/deps/gh-md-toc @@ -70,9 +70,9 @@ gh_toc_md2html() { local gh_tmp_file_md=$gh_file_md if [ "$skip_header" = "yes" ]; then if grep -Fxq "" "$gh_src"; then - # cut everything before the toc - gh_tmp_file_md=$gh_file_md~~ - sed '1,//d' $gh_file_md > $gh_tmp_file_md + # cut everything before the toc + gh_tmp_file_md=$gh_file_md~~ + sed '1,//d' $gh_file_md > $gh_tmp_file_md fi fi @@ -154,16 +154,16 @@ gh_toc(){ else local rawhtml=$(gh_toc_md2html "$gh_src" "$skip_header") if [ "$rawhtml" == "XXNetworkErrorXX" ]; then - echo "Parsing local markdown file requires access to github API" - echo "Please make sure curl is installed and check your network connectivity" - exit 1 + echo "Parsing local markdown file requires access to github API" + echo "Please make sure curl is installed and check your network connectivity" + exit 1 fi if [ "$rawhtml" == "XXRateLimitXX" ]; then - echo "Parsing local markdown file requires access to github API" - echo "Error: You exceeded the hourly limit. See: https://developer.github.com/v3/#rate-limiting" - TOKEN_FILE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/token.txt" - echo "or place GitHub auth token here: ${TOKEN_FILE}" - exit 1 + echo "Parsing local markdown file requires access to github API" + echo "Error: You exceeded the hourly limit. See: https://developer.github.com/v3/#rate-limiting" + TOKEN_FILE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/token.txt" + echo "or place GitHub auth token here: ${TOKEN_FILE}" + exit 1 fi local toc=`echo "$rawhtml" | gh_toc_grab "$gh_src_copy" "$indent"` echo "$toc" @@ -221,21 +221,21 @@ gh_toc_grab() { href_regex="/href=\"[^\"]+?\"/" common_awk_script=' - modified_href = "" - split(href, chars, "") - for (i=1;i <= length(href); i++) { - c = chars[i] - res = "" - if (c == "+") { - res = " " - } else { - if (c == "%") { - res = "\\x" - } else { - res = c "" - } - } - modified_href = modified_href res + modified_href = "" + split(href, chars, "") + for (i=1;i <= length(href); i++) { + c = chars[i] + res = "" + if (c == "+") { + res = " " + } else { + if (c == "%") { + res = "\\x" + } else { + res = c "" + } + } + modified_href = modified_href res } print sprintf("%*s", (level-1)*'"$2"', "") "* [" text "](" gh_url modified_href ")" ' @@ -243,19 +243,19 @@ gh_toc_grab() { grepcmd="pcregrep -o" echoargs="" awkscript='{ - level = substr($0, 3, 1) - text = substr($0, match($0, /<\/span><\/a>[^<]*<\/h/)+11, RLENGTH-14) - href = substr($0, match($0, '$href_regex')+6, RLENGTH-7) - '"$common_awk_script"' + level = substr($0, 3, 1) + text = substr($0, match($0, /<\/span><\/a>[^<]*<\/h/)+11, RLENGTH-14) + href = substr($0, match($0, '$href_regex')+6, RLENGTH-7) + '"$common_awk_script"' }' else grepcmd="grep -Eo" echoargs="-e" awkscript='{ - level = substr($0, 3, 1) - text = substr($0, match($0, /<\/span><\/a>.*<\/h/)+11, RLENGTH-14) - href = substr($0, match($0, '$href_regex')+6, RLENGTH-7) - '"$common_awk_script"' + level = substr($0, 3, 1) + text = substr($0, match($0, /<\/span><\/a>.*<\/h/)+11, RLENGTH-14) + href = substr($0, match($0, '$href_regex')+6, RLENGTH-7) + '"$common_awk_script"' }' fi diff --git a/modules/nf-scil/tracking/pfttracking/main.nf b/modules/nf-scil/tracking/pfttracking/main.nf index 563b8354f..a2e44248c 100644 --- a/modules/nf-scil/tracking/pfttracking/main.nf +++ b/modules/nf-scil/tracking/pfttracking/main.nf @@ -66,7 +66,7 @@ process TRACKING_PFTTRACKING { elif [ "${pft_seeding_mask}" == "fa" ]; then mrcalc $fa $pft_fa_threshold -ge ${prefix}__pft_seeding_mask.nii.gz\ - -datatype uint8 + -datatype uint8 fi scil_compute_pft.py $fodf ${prefix}__pft_seeding_mask.nii.gz \ diff --git a/modules/nf-scil/utils/extractb0/main.nf b/modules/nf-scil/utils/extractb0/main.nf index 1e199069a..51a2b44af 100644 --- a/modules/nf-scil/utils/extractb0/main.nf +++ b/modules/nf-scil/utils/extractb0/main.nf @@ -40,7 +40,7 @@ process UTILS_EXTRACTB0 { stub: def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" - + """ scil_extract_b0.py - h