Repository navigation
v0.4.0
Changes
- SARIF puts a result that blames an exists value of false at the check in the config, not at the missing file.
- package_version and dependency quote a version or range that Cargo or a pyproject.toml build computes as the file wrote its line, such as serde = { workspace = true }, not a canonical spelling.
- New
jsoncandjson5extractors:jsoncreads a path in a JSON file with comments and trailing commas,json5in a JSON5 file; the kind names the dialect. - compare: semver takes syntax: npm, cargo, pep440, go or rubygems, which reads every value as that ecosystem does: requires-python >3.11 admits 3.11.9, a Cargo comparator with no operator is ^, and go 1.21 is the language version 1.21; semver_satisfies takes the syntax as a third argument, and errata list prints the syntax a rule reads with.
- dependency gives a Go version written short, such as v1, as written and not literal, never as v1.0.0
- dependency puts a requirements file's value at the line it starts on and joins a backslash's lines as pip does
- ini reads an extension's constant in php.ini, such as M_PI or SIGTERM, as the literal text PHP keeps at startup
- ini reads ${ x } in a .coveragerc as the literal text coverage.py leaves it
- ini reads an ansible host such as fe80::1 or we$b:22, which ansible keeps whole, as literal
- ini returns an ansible list or dict written as Python's repr writes it as literal
- ini marks an ansible variable such as x = 1, 2, which ansible reads as a list, not literal
- ini reads a template such as php.ini.j2 or hosts.j2 in the dialect of the file it renders
- properties marks a value with a placeholder in a Spring Boot or Log4j file, such as application.properties, not literal
- ini and properties mark a value inside a template block, such as one between if and endif in a .j2 file, not literal
- shell, envfile and jenkins mark a value inside a template block, and a value that substitutes it, not literal
- ini marks an ansible host whose port is written in Unicode digits, which ansible takes off as it takes 22
- dependency and tool_version report a go.mod or go.work value at its own line when a lone CR splits its directive
- an etc extractor reads sshd_config, ssh_config, sysctl, resolv.conf, limits, logrotate, nsswitch.conf, modprobe.d, chrony.conf and ntp.conf
- etc reads limits in any case, ranks sysctl, modprobe and limits drop-ins by the tools' directories, and leaves a Match criterion an earlier User, Hostname or Tag shadows undecided
- etc refuses a chrony include it could read in two directories, and decides an ssh Match against earlier User, Hostname and Tag lines in linear time
- the systemd extractor reads a unit or a Podman Quadlet file with its drop-ins, splits Environment= into variables, and reads EnvironmentFile= files
- ini reads systemd units and Quadlet files in a systemd dialect, chosen by their names
- env reads Environment= of a systemd .service, .socket, .mount, .swap or Quadlet .container, and an environment file readers: gives systemd
- assert gains calendar_interval, the time between the runs of a systemd timer's OnCalendar= event
- ini now reads systemd units and Podman Quadlet files as systemd and Quadlet read them, where it read them as configparser does before; dialect: plain keeps that reading
- the html kind ends an open button at the next button's start tag, as a browser does, so a heading inside the first button no longer reads the second's text
- the html kind ends the scope of open elements at a select and closes a select at a nested select or input, as browsers do, so a heading opened in a select no longer reads text a browser shows outside it
- the html kind ends a list item, a description term or a paragraph at an option, an optgroup or an hr inside a select, and no longer ends an optgroup at the next one, as browsers do
- the env and envfile kinds read a file in etc/default, marking a value not literal where a shell or systemd may read it otherwise, and etc/environment as pam_env reads it
- the sudoers kind reads a sudoers file and its includes as sudo does, returning a Defaults setting's values with their scopes, or as records the commands granted to a user or group with their hosts, Runas lists, tags and options, aliases resolved
- the sudoers kind takes grants: true, which returns every command a sudoers file grants anyone, as records with the user list, hosts, Runas lists, tags and options
- a table extractor reads one column of fstab, passwd, group, hosts, exports and crypttab, by the column names of their man pages
- a udev extractor reads udev rules files and rules.d directories, with match keys, GOTO and LABEL
- a template drop-in such as 60-x.conf.j2 masks the file of the name it renders, in etc, systemd and udev
- the udev extractor's tests: keeps the rules that test the match keys it names, compared as written
- the etc kind's refusal of a file name no dialect reads names the table, sudoers and udev kinds
- The html kind drops the line feed after a pre start tag when tags a browser ignores come between, as a browser does.
All commits since v0.3.0: v0.3.0...v0.4.0