Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devcontainer configs #655

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -8,3 +8,4 @@ man-roxygen
^codecov.yml$
^.lintr$
^CRAN-SUBMISSION$
^\.devcontainer$
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM rocker/r-base
renkun-ken marked this conversation as resolved.
Show resolved Hide resolved

RUN apt-get -qq update && \
apt-get install -y --no-install-recommends git libxml2-dev

COPY DESCRIPTION .

RUN Rscript -e ' \
install.packages("remotes"); \
remotes::install_deps(dependencies = c( \
"Imports", \
"Config/needs/development" \
)) \
'
renkun-ken marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"build": { "dockerfile": "Dockerfile", "context": ".."}
}
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -51,3 +51,4 @@ NeedsCompilation: yes
Roxygen: list(markdown = TRUE, r6 = FALSE)
RoxygenNote: 7.2.1
Config/testthat/edition: 3
Config/Needs/development: testthat, magrittr, mockery, purrr, withr, rmarkdown

Unchanged files with check annotations Beta

#' @noRd
prepare_call_hierarchy_reply <- function(id, uri, workspace, document, point) {
token <- document$detect_token(point)

Check warning on line 4 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=4,col=2,[indentation_linter] Indentation should be 4 spaces but is 2 spaces.
defn <- definition_reply(NULL, uri, workspace, document, point)$result
token_quote <- xml_single_quote(token$token)
logger$info("prepare_call_hierarchy_reply: ", list(

Check warning on line 8 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=8,col=2,[indentation_linter] Indentation should be 4 spaces but is 2 spaces.
uri = uri,

Check warning on line 9 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=9,col=4,[indentation_linter] Indentation should be 8 spaces but is 4 spaces.
token = token,
defn = defn
))

Check warning on line 12 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=12,col=2,[indentation_linter] Indentation should be 4 spaces but is 2 spaces.
result <- NULL

Check warning on line 14 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=14,col=2,[indentation_linter] Indentation should be 4 spaces but is 2 spaces.
if (length(defn)) {

Check warning on line 16 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=16,col=2,[indentation_linter] Indentation should be 4 spaces but is 2 spaces.
result <- list(

Check warning on line 17 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=17,col=4,[indentation_linter] Indentation should be 8 spaces but is 4 spaces.
list(

Check warning on line 18 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=18,col=6,[indentation_linter] Indentation should be 12 spaces but is 6 spaces.
name = token$token,

Check warning on line 19 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=19,col=8,[indentation_linter] Indentation should be 16 spaces but is 8 spaces.
kind = SymbolKind$Function,
uri = defn$uri,
range = defn$range,
selectionRange = defn$range,
data = list(
definition = defn

Check warning on line 25 in R/call_hierarchy.R

GitHub Actions / lint

file=R/call_hierarchy.R,line=25,col=10,[indentation_linter] Indentation should be 20 spaces but is 10 spaces.
)
)
)