| NEWS | R Documentation |
roger News
Changes in roger version 1.5-1
Bug fixes
left_parenthesis_stylefailed on composite expressions involving more than one operator, e.g.(x + y) * 3 + 1.
Changes in roger version 1.5-0
New features
close_bracket_styleandopen_bracket_stylenow accept that the preceding (resp. following) expression is on a different line than the bracket.close_parenthesis_styleandopen_parenthesis_stylenow accept that the preceding (resp. following) expression is on a different line than the parenthesis.ops_spaces_stylenow also checks spacing around the keywordinused inforloops.
Bug fixes
left_parenthesis_stylenow works correctly with the unary operator!and with parentheses used to echo the result of an expression. The linter is also more robust and reliable (although slower) for many other constructions.Translations of messages from
all_linterscompleted.
Changes in roger version 1.4-0
New features
all_styleutility function to validate code using all available style linters at once.nomagic_stylenow allows non-ASCII uppercase letters in symbol names.
Changes
nomagic_styleuses a more robust procedure to identify valid assignments of magic numbers to variables.line_length_stylenow issues only one message per line exceeding the length threshold.
Changes in roger version 1.3-1
Bug fixes
commas_stylenow allows spaces before a comma if the preceeding symbol is also a comma. This exception to the general rule is needed for consecutive commas commonly used in the indexing of arrays.
Changes in roger version 1.3-0
New features
roger_gradegains aquietargument that was missing in earlier releases.
User visible changes
Following changes in the base system, the interface functions
roger_grade,roger_push,roger_switchandroger_validatenow use a default value ofgetwd()for thedirorreposargument.roger_pushandroger_switch: to put the mandatory argument ahead of optional ones,branchis now the first argument of these functions.
Bug fixes
roger_clonenow correctly matches the arguments of the corresponding base system tool: argumentpage_limitis removed; argumentrogerrc_fileis added; argumentapiis nowNULLby default.
Changes in roger version 1.2-0
New feature
comments_stylelinter to check that comment delimiters and the text of comments, when there is any, are separated by at least one space.
User visible changes
any_commentsnow accepts comments without spaces between the comment delimiters and the text. Usecomments_styleto test the actual styling of comments.
Bug fix
Add missing French translation for a message from
any_comments.
Changes in roger version 1.1-0
New feature
Function
any_commentsto check if a script file contains at least one non empty comment.
Changes in roger version 1.0-0
Changes
To reflect an interface change in
roger cloneof the base system, argumentapiofroger_cloneno longer has a default value.
Bug fixes
nomagic_stylenow omits the logical valuesTRUEandFALSE.section_docnow works correctly with user submitted regex patterns that include alternation operators.section_docnow requires that only spaces can possibly follow the section title on its line. This is to avoid false positives caused by a description that starts with the same expression as the section title. For example, a section "Value" that starts with "Value of...".
Changes in roger version 0.99-2 (2022-01-12)
User visible changes
The nomenclature of the interface functions changes from
footoroger_foo.
New features
The set of interface functions matches the new features introduced in version 0.99-8 of the Roger base system:
roger_gradegains adetached_headargument;roger_pushgains aquietargument; new interface functionroger_switch.Interface functions gain a
.debugOnlyargument to print the command that would be sent to roger-base without actually executing it.
Bug fixes
nomagic_stylenow allows the digit0in variable names.nomagic_stylenow omits the special numerical constantsInf,NaNandNA.The
cloneinterface now works correctly with multiple additional curl arguments.The
cloneinterface now correctly passes the--machineargument.Required arguments are now shell quoted in interface functions.
Changes in roger version 0.99-1 (2021-10-19)
New features
The style and documentation linters now stop with an informative error message when the parse data or source code in argument is
NULL.The
any_docdocumentation linter now accepts punctuation characters after the comment character.
Bug fixes
The
left_parenthesis_stylelinter no longer requires a space before a left parenthesis after the division and exponent operators, and after an optional opening parenthesis.Script options in interface functions are now path expanded on the R side.
Changes in roger version 0.99-0 (2021-08-20)
Initial public release.
The package contains the following style linters:
assignment_style,comma_style,close_brace_style,close_bracket_style,close_parenthesis_style,left_parenthesis_style,line_length_style,nomagic_style,open_brace_style,open_brace_unique_style,open_bracket_style,open_parenthesis_style,ops_spaces_style,trailing_blank_style,trailing_whitespace_style,unneeded_concatenations_style.The available documentation linters are:
any_doc,signature_doc,section_doc,formals_doc.The package also contains interface functions to the shell scripts of the Roger base system:
checkreq,clone,grade,push,validate.