-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix paste0 lints with flint * add flint setup files
- Loading branch information
Showing
67 changed files
with
2,097 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,7 @@ tests\^spelling | |
^WIP/. | ||
\.code-workspace$ | ||
^CRAN-SUBMISSION$ | ||
|
||
|
||
# flint files | ||
^flint$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
keep: | ||
- any_duplicated | ||
- any_is_na | ||
- class_equals | ||
- condition_message | ||
- double_assignment | ||
- duplicate_argument | ||
- empty_assignment | ||
- equal_assignment | ||
- equals_na | ||
- expect_comparison | ||
- expect_identical | ||
- expect_length | ||
- expect_named | ||
- expect_not | ||
- expect_null | ||
- expect_true_false | ||
- expect_type | ||
- for_loop_index | ||
- function_return | ||
- implicit_assignment | ||
- is_numeric | ||
- length_levels | ||
- length_test | ||
- lengths | ||
- library_call | ||
- literal_coercion | ||
- matrix_apply | ||
- missing_argument | ||
- nested_ifelse | ||
- numeric_leading_zero | ||
- outer_negation | ||
- package_hooks | ||
- paste | ||
- redundant_equals | ||
- redundant_ifelse | ||
- rep_len | ||
- right_assignment | ||
- sample_int | ||
- semicolon | ||
- seq | ||
- sort | ||
- T_and_F_symbol | ||
- todo_comment | ||
- undesirable_function | ||
- undesirable_operator | ||
- unnecessary_nesting | ||
- unreachable_code | ||
- which_grepl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
id: true_false_symbol | ||
language: r | ||
severity: warning | ||
rule: | ||
pattern: T | ||
kind: identifier | ||
not: | ||
any: | ||
- precedes: | ||
any: | ||
- pattern: <- | ||
- pattern: = | ||
- regex: ^~$ | ||
- follows: | ||
any: | ||
- pattern: $ | ||
- regex: ^~$ | ||
- inside: | ||
any: | ||
- kind: parameter | ||
- kind: call | ||
- kind: binary_operator | ||
follows: | ||
regex: ^~$ | ||
stopBy: end | ||
stopBy: | ||
kind: | ||
argument | ||
fix: TRUE | ||
message: Use TRUE instead of the symbol T. | ||
|
||
--- | ||
|
||
id: true_false_symbol-2 | ||
language: r | ||
severity: warning | ||
rule: | ||
pattern: F | ||
kind: identifier | ||
not: | ||
any: | ||
- precedes: | ||
any: | ||
- pattern: <- | ||
- pattern: = | ||
- regex: ^~$ | ||
- follows: | ||
any: | ||
- pattern: $ | ||
- regex: ^~$ | ||
- inside: | ||
any: | ||
- kind: parameter | ||
- kind: call | ||
- kind: binary_operator | ||
follows: | ||
regex: ^~$ | ||
stopBy: end | ||
stopBy: | ||
kind: | ||
argument | ||
fix: FALSE | ||
message: Use FALSE instead of the symbol F. | ||
|
||
--- | ||
|
||
id: true_false_symbol-3 | ||
language: r | ||
severity: warning | ||
rule: | ||
pattern: T | ||
kind: identifier | ||
precedes: | ||
any: | ||
- pattern: <- | ||
- pattern: = | ||
not: | ||
inside: | ||
kind: argument | ||
message: Don't use T as a variable name, as it can break code relying on T being TRUE. | ||
|
||
--- | ||
|
||
id: true_false_symbol-4 | ||
language: r | ||
severity: warning | ||
rule: | ||
pattern: F | ||
kind: identifier | ||
precedes: | ||
any: | ||
- pattern: <- | ||
- pattern: = | ||
not: | ||
inside: | ||
kind: argument | ||
message: Don't use F as a variable name, as it can break code relying on F being FALSE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# id: absolute_path-1 | ||
# language: r | ||
# severity: warning | ||
# rule: | ||
# kind: string_content | ||
# any: | ||
# - regex: '^~[[:alpha:]]' | ||
# - regex: '^~/[[:alpha:]]' | ||
# - regex: '^[[:alpha:]]:' | ||
# - regex: '^(/|~)$' | ||
# - regex: '^/[[:alpha:]]' | ||
# - regex: '^\\' | ||
# message: Do not use absolute paths. |
Oops, something went wrong.