Skip to content

Commit d934995

Browse files
authored
Merge pull request #11 from Boehringer-Ingelheim/early_error_feedback
Remove support for dispatchers; add early error feedback; tweak test to make it a bit more solid.
2 parents e0d4062 + a39f4a5 commit d934995

18 files changed

Lines changed: 1160 additions & 150 deletions

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111
branches:
1212
- main
1313
push:
14-
branches:
15-
- main
1614
workflow_dispatch:
1715

1816
jobs:

.lintr.R

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
linters <- lintr::default_linters # -[ diff with dv.templates 3ca8d7a10cfc7ad2307644dcac603e1f1f0feb72]-
2+
linters <- lintr::modify_defaults(
3+
linters
4+
, line_length_linter = NULL # we see how long lines are when we write them
5+
, indentation_linter = NULL
6+
, trailing_whitespace_linter = NULL
7+
, cyclocomp_linter = NULL # prevents trivial amount of nesting and long but straightforward functions
8+
, object_name_linter = NULL # we have reasons to capitalize. nobody in our team CamelCase. shiny does
9+
, object_length_linter = NULL # we don't type long var names just because
10+
, pipe_continuation_linter = NULL # wickham being overly prescriptive
11+
, trailing_blank_lines_linter = NULL # natural extension of trailing_whitespace_linter, present on the template
12+
)
13+
14+
if(identical(Sys.getenv('CI'), "true")){
15+
linters <- lintr::modify_defaults(
16+
linters
17+
, object_usage_linter = NULL # R lacks var declarations; it's easy to assign to the wrong variable by mistake
18+
) # We only disable this lint rule on github because it fails there because
19+
} # of a long-standing lintr bug
20+
21+
exclusions <- list("tests")

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: dv.listings
22
Type: Package
33
Title: Data listings module
4-
Version: 4.0.1
4+
Version: 4.0.1.9000
55
Authors@R:
66
c(
77
person("Boehringer-Ingelheim Pharma GmbH & Co.KG", role = c("cph", "fnd")),

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# dv.listings 4.0.1.9000
2+
3+
- Remove support for data dispatchers.
4+
- Provide early feedback of module misconfiguration.
5+
16
# dv.listings 4.0.1
27

38
The module allows now to

0 commit comments

Comments
 (0)