Closed se-wo closed 1 month ago
Open for discussion on how configure the linter rules
@se-wo: Your proposal is fine. Line length should not exceed 100 characters; I wlll try and keep it around 80. I will also fix commented_code and line_length, when the code is close to final. You don't need to do this. |: (simple or) was intentional: 2 logical expressions should be evaluated at development time. Can be replaced by || in final version. Can we have a short discussion about object_usage and object_name? My current scheme is: Classes and objects: UpperCamelCase methods: lowerCamelCase internal functions and their arguments: lower_snake_case exported functions and their arguments: lower.dot.case
@se-wo: Your proposal is fine. Line length should not exceed 100 characters; I wlll try and keep it around 80. I will also fix commented_code and line_length, when the code is close to final. You don't need to do this. |: (simple or) was intentional: 2 logical expressions should be evaluated at development time. Can be replaced by || in final version. Can we have a short discussion about object_usage and object_name? My current scheme is: Classes and objects: UpperCamelCase methods: lowerCamelCase internal functions and their arguments: lower_snake_case exported functions and their arguments: lower.dot.case
lintr is quite dumb. I did the best I could do. Left the dot.case for items in the S4 classes. Other names changed according to: https://cran.r-project.org/web/packages/easystats/vignettes/conventions.html
lintr does not recognize .not_exported_function, and variable names which are hidden in lists or function calls.
Commented code still there to some extent. Will delete later.
Added lintr workflow to source.
I started applying coding conventions to the code to improve readability and maintainability. I used Tidyverse style as the basis. I added a basic configuration for Lintr and configured a corresponding Github action. In addition I applied Styler to fix all automatically fixable issues.
Nevertheless there are still more than enough style related issues. Code style is to some extend art, so it´s difficult to argue whether or not tidyverse style is appealing. Style policy modifications can be made in
.lintr
. E.g.Current linter findings (Details)
\|
really intentional?