diff --git a/.Rbuildignore b/.Rbuildignore index 7a6244ac..edbedc8f 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -11,3 +11,5 @@ ^arf.*\.tgz$ ^doc$ ^Meta$ +^air\.toml$ +^jarl\.toml$ diff --git a/air.toml b/air.toml new file mode 100644 index 00000000..b2da3700 --- /dev/null +++ b/air.toml @@ -0,0 +1,7 @@ +[format] +line-width = 120 +indent-width = 2 +indent-style = "space" +line-ending = "auto" +persistent-line-breaks = true +default-exclude = true diff --git a/jarl.toml b/jarl.toml new file mode 100644 index 00000000..d05a9029 --- /dev/null +++ b/jarl.toml @@ -0,0 +1,12 @@ +# Jarl (Just Another R Linter) configuration — https://jarl.etiennebacher.com +# +# Division of labour: air (air.toml) owns formatting/style; jarl owns +# correctness/quality lints. We start from jarl's default rule set and add +# `assignment` so `<-` is enforced consistently with air. Quote style is left +# to air, not duplicated here. Tighten later, e.g. select = ["ALL"] + ignores. + +[lint] +extend-select = ["assignment"] + +[lint.assignment] +operator = "<-"