File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 description : ' Prints any TODOs tagged with the ticket reference in the current branch name'
4848
4949- id : branch-name-check
50- name : ' Checks branch names obeys the following regex: ^(feature|bugfix|release|hotfix)\/.+ '
50+ name : ' Checks branch name obeys the standardised format '
5151 entry : run-branch-name-check.sh
5252 always_run : true
5353 pass_filenames : false
5454 language : ' script'
5555 minimum_pre_commit_version : 0.15.0
56- description : ' Checks branch names obeys the following regex: ^(feature|bugfix|release|hotfix)\/.+ '
56+ description : ' Checks branch names obeys the following regex'
5757
5858# A copy of
5959# https://github.com/golangci/golangci-lint/commit/09677d574ea6cd05141022aa90b88b6598bfa1a1
Original file line number Diff line number Diff line change 11# !/usr/bin/env Rscript
22
33files <- commandArgs(trailingOnly = TRUE )
4+ stop <- FALSE
45tryCatch(
56 {
67 for (f in files ) {
7- lintr :: lint(f )
8+ errors <- lintr :: lint(f )
9+ if (length(errors ) > 0 ) {
10+ print(errors )
11+ stop <- TRUE
12+ }
813 }
914 },
1015 warning = function (w ) stop(conditionMessage(w ), call. = FALSE )
11- )
16+ )
17+ if (stop ) {
18+ stop(" lintr failures found" )
19+ }
You can’t perform that action at this time.
0 commit comments