Skip to contents

checkit 2026.12.4

  • A rule MAY report SKIP. At the levels fail and warn the runner keeps it as SKIP, with no fix. The count line holds SKIP only when there is one, and check_folder() quits only on FAIL.

checkit 2026.12.3

  • First version: the package frame.
  • folder_findings(), folder_report() and check_folder() run a registry of rules against a project folder, with the texts of the config messages as an argument. rule() defines a rule, and compose_rules() joins registries by name.
  • freeze() writes the md5 of files to a manifest in md5sum format, with CR LF read as LF in .R files. rules() prints and returns the rules of a project folder.
  • expect_rule_red(), expect_rule_green() and expect_rules_covered() test that each rule of a registry has a red and a green test.
  • general_rules() gives 7 rules that read code: loc_per_file, cyclomatic_complexity, comment_share, no_environment_variables, no_local_assign, no_escape_hatches and no_absolute_paths. Its argument texts replaces the texts of a rule.
  • general_rules() gives 5 more rules, 12 in all: rule_set_pinned, lower_case_names, frozen_versions_unchanged, changelog_with_code and gitexclude_not_tracked. Its argument texts also replaces locked_reason.
  • The rule set checkit_2026_12_03 holds the 12 rules and needs checkit 2026.12.3 or newer. It is the first set that checkit.yml can extend.
  • default_scope() gives the files that the general rules read, and is the default scope of folder_findings(). It exempts the standard files of an R package, such as NEWS.md and NAMESPACE, from lower_case_names, and a manifest never covers files under .git. The defaults rules = general_rules() and sets (the rule sets of checkit) now work.
  • A rule set MAY hold the key packages. The runner gives it to each rule function with the argument packages.