Repository navigation
Expand file tree
/
Copy path.bestpractices.json
More file actions
132 lines (132 loc) · 16.6 KB
/
Copy path.bestpractices.json
File metadata and controls
132 lines (132 loc) · 16.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"description_good_status": "Met",
"description_good_justification": "https://github.com/NormB/kamailio-lsp/blob/main/README.md says what it does: a Language Server Protocol server for the Kamailio configuration file language (kamailio.cfg), with a table of every feature.",
"interact_status": "Met",
"interact_justification": "How to obtain it: https://github.com/NormB/kamailio-lsp/blob/main/docs/GETTING_STARTED.md and the releases at https://github.com/NormB/kamailio-lsp/releases . How to report bugs, ask for features and contribute: https://github.com/NormB/kamailio-lsp/blob/main/CONTRIBUTING.md#reporting-bugs .",
"contribution_status": "Met",
"contribution_justification": "Changes come as GitHub pull requests from a feature branch, one problem per pull request: https://github.com/NormB/kamailio-lsp/blob/main/CONTRIBUTING.md",
"contribution_requirements_status": "Met",
"contribution_requirements_justification": "https://github.com/NormB/kamailio-lsp/blob/main/CONTRIBUTING.md requires a failing test first for every behavior change, cargo fmt, clippy with -D warnings, rustdoc with -D warnings, and a cfg.y or cfg.lex line or a capture from a real kamailio binary for any claim about the language.",
"floss_license_status": "Met",
"floss_license_justification": "MIT OR Apache-2.0, at the user's option: https://github.com/NormB/kamailio-lsp/blob/main/LICENSE-MIT and https://github.com/NormB/kamailio-lsp/blob/main/LICENSE-APACHE .",
"floss_license_osi_status": "Met",
"floss_license_osi_justification": "MIT and Apache-2.0 are both OSI-approved.",
"license_location_status": "Met",
"license_location_justification": "LICENSE-APACHE and LICENSE-MIT in the repository root, the same texts named by SPDX identifier in https://github.com/NormB/kamailio-lsp/tree/main/LICENSES (REUSE layout), and the dual-license notice https://github.com/NormB/kamailio-lsp/blob/main/DUAL-LICENSE .",
"documentation_basics_status": "Met",
"documentation_basics_justification": "Install and use: https://github.com/NormB/kamailio-lsp/blob/main/docs/GETTING_STARTED.md . Secure use: the Security note and Data handling sections of https://github.com/NormB/kamailio-lsp/blob/main/README.md and the Security section of https://github.com/NormB/kamailio-lsp/blob/main/docs/ADMIN.md .",
"documentation_interface_status": "Met",
"documentation_interface_justification": "Every feature and setting: https://github.com/NormB/kamailio-lsp/blob/main/docs/FEATURES.md . Every option: https://github.com/NormB/kamailio-lsp/blob/main/docs/ADMIN.md . Editor setup and the kamailio-lsp check command line: https://github.com/NormB/kamailio-lsp/blob/main/docs/EDITORS.md . The server speaks the standard Language Server Protocol over stdin and stdout.",
"sites_https_status": "Met",
"sites_https_justification": "The project site is the GitHub repository, https://github.com/NormB/kamailio-lsp , served over HTTPS; the extension is published on https://open-vsx.org .",
"discussion_status": "Met",
"discussion_justification": "GitHub issues and pull requests: https://github.com/NormB/kamailio-lsp/issues . They are searchable, addressable by URL, open to anyone with a GitHub account and need no proprietary client.",
"english_status": "Met",
"english_justification": "The documentation, the code comments and the issue tracker are in English; https://github.com/NormB/kamailio-lsp/blob/main/CONTRIBUTING.md#reporting-bugs asks for issues in English.",
"maintained_status": "Met",
"maintained_justification": "Under active development, with releases every few days: https://github.com/NormB/kamailio-lsp/commits/main and https://github.com/NormB/kamailio-lsp/releases",
"repo_public_status": "Met",
"repo_public_justification": "Public git repository: https://github.com/NormB/kamailio-lsp",
"repo_track_status": "Met",
"repo_track_justification": "Git records each change, its author and its date.",
"repo_interim_status": "Met",
"repo_interim_justification": "Every change is committed to main, not only releases: https://github.com/NormB/kamailio-lsp/commits/main",
"repo_distributed_status": "Met",
"repo_distributed_justification": "Git.",
"version_unique_status": "Met",
"version_unique_justification": "Each release has its own version number. The release workflow refuses a v* tag that differs from the Cargo.toml version, the client/package.json version or the newest client/CHANGELOG.md entry: https://github.com/NormB/kamailio-lsp/blob/main/.github/workflows/release.yml",
"version_semver_status": "Met",
"version_semver_justification": "Versions are MAJOR.MINOR.PATCH: new behavior raises the minor version and releases with only fixes or dependency updates raise the patch version, as 0.21.0 (include resolution and outline changes) and 0.21.4 (dependency update) in https://github.com/NormB/kamailio-lsp/blob/main/client/CHANGELOG.md show.",
"version_tags_status": "Met",
"version_tags_justification": "Each release has a v* git tag, 47 so far, and the release workflow publishes only from a pushed v* tag: https://github.com/NormB/kamailio-lsp/tags",
"release_notes_status": "Met",
"release_notes_justification": "https://github.com/NormB/kamailio-lsp/blob/main/client/CHANGELOG.md is a human-readable summary of each release, not a git log; the release workflow refuses a release without its entry.",
"release_notes_vulns_status": "Met",
"release_notes_vulns_justification": "The 0.19.6 entry of https://github.com/NormB/kamailio-lsp/blob/main/client/CHANGELOG.md names the three advisories it fixed in the bundled brace-expansion package: GHSA-6j4f-fj2g-mc7p, GHSA-qhr7-859c-m2p7 and GHSA-q2hr-2g5m-vwhr. No vulnerability in kamailio-lsp itself has been reported.",
"report_process_status": "Met",
"report_process_justification": "Bugs and feature requests are GitHub issues, opened with the forms at https://github.com/NormB/kamailio-lsp/issues/new/choose , as https://github.com/NormB/kamailio-lsp/blob/main/CONTRIBUTING.md#reporting-bugs describes.",
"report_tracker_status": "Met",
"report_tracker_justification": "GitHub issues: https://github.com/NormB/kamailio-lsp/issues",
"report_responses_status": "Met",
"report_responses_justification": "No bug report has been submitted by anyone other than the maintainer since the repository was created on 2026-08-20: https://github.com/NormB/kamailio-lsp/issues?q=is%3Aissue",
"enhancement_responses_status": "Met",
"enhancement_responses_justification": "No enhancement request has been submitted by anyone other than the maintainer since the repository was created on 2026-08-20: https://github.com/NormB/kamailio-lsp/issues?q=is%3Aissue",
"report_archive_status": "Met",
"report_archive_justification": "GitHub issues are public and searchable: https://github.com/NormB/kamailio-lsp/issues?q=is%3Aissue",
"vulnerability_report_process_status": "Met",
"vulnerability_report_process_justification": "https://github.com/NormB/kamailio-lsp/blob/main/SECURITY.md",
"vulnerability_report_private_status": "Met",
"vulnerability_report_private_justification": "GitHub private vulnerability reporting is on for the repository, as https://github.com/NormB/kamailio-lsp/blob/main/SECURITY.md says: https://github.com/NormB/kamailio-lsp/security/advisories/new",
"vulnerability_report_response_status": "N/A",
"vulnerability_report_response_justification": "No vulnerability report has been received: https://github.com/NormB/kamailio-lsp/security/advisories",
"build_status": "Met",
"build_justification": "cargo build --release builds the server, npm ci and npm run compile build the VS Code client, and tree-sitter generate builds the grammar: https://github.com/NormB/kamailio-lsp/blob/main/README.md#build--test",
"build_common_tools_status": "Met",
"build_common_tools_justification": "Cargo, npm and the tree-sitter CLI, the standard tools for Rust, TypeScript and tree-sitter grammars.",
"build_floss_tools_status": "Met",
"build_floss_tools_justification": "The build needs only FLOSS tools: Rust, Cargo, Node.js, npm, TypeScript, the tree-sitter CLI and a C compiler.",
"test_status": "Met",
"test_justification": "cargo test, documented in https://github.com/NormB/kamailio-lsp/blob/main/README.md#build--test , runs unit, end-to-end and proof tests against a real Kamailio 6.1.5 tree and binary in CI on every push and pull request; npm test checks the client: https://github.com/NormB/kamailio-lsp/blob/main/.github/workflows/ci.yml",
"test_invocation_status": "Met",
"test_invocation_justification": "cargo test and npm test, the standard invocations for Rust and npm.",
"test_most_status": "Met",
"test_most_justification": "Measured with cargo-llvm-cov 0.9.1 over cargo test --all-targets, with the proof tests running against the real binary, on the tree of commit https://github.com/NormB/kamailio-lsp/commit/cd6430945fcfcd8b44019e2e41b39030fa64857f plus these answers: 69.8% of lines, 67.7% of functions and 71.8% of regions of the Rust server. CI does not measure coverage.",
"test_continuous_integration_status": "Met",
"test_continuous_integration_justification": "GitHub Actions runs fmt, clippy, the tests, rustdoc, the client tests, the grammar tests, cargo audit and the MSRV build on every push to main and every pull request: https://github.com/NormB/kamailio-lsp/blob/main/.github/workflows/ci.yml",
"test_policy_status": "Met",
"test_policy_justification": "https://github.com/NormB/kamailio-lsp/blob/main/CONTRIBUTING.md: every behavior change lands test-first, and parsing code must also cover adversarial input.",
"tests_are_added_status": "Met",
"tests_are_added_justification": "For example, the change that made a #!define count for the include graph only where Kamailio reads it added 84 lines of tests with it: https://github.com/NormB/kamailio-lsp/commit/238c9bb3a4c631fcbba4c4da994aa27b062ce342",
"tests_documented_added_status": "Met",
"tests_documented_added_justification": "https://github.com/NormB/kamailio-lsp/blob/main/CONTRIBUTING.md: pull requests that add behavior without new tests will be asked to add them.",
"warnings_status": "Met",
"warnings_justification": "cargo clippy --all-targets -- -D warnings, cargo fmt --check and rustdoc with -D warnings run in CI; the TypeScript client compiles with strict on: https://github.com/NormB/kamailio-lsp/blob/main/.github/workflows/ci.yml and https://github.com/NormB/kamailio-lsp/blob/main/client/tsconfig.json",
"warnings_fixed_status": "Met",
"warnings_fixed_justification": "-D warnings makes every rustc, clippy and rustdoc warning an error, so a change with a warning fails CI; main builds with none: https://github.com/NormB/kamailio-lsp/actions/workflows/ci.yml?query=branch%3Amain",
"warnings_strict_status": "Met",
"warnings_strict_justification": "Every rustc and clippy warning is an error on every target, including the tests; missing_docs is deny (https://github.com/NormB/kamailio-lsp/blob/main/src/lib.rs); TypeScript strict mode.",
"crypto_published_status": "N/A",
"crypto_published_justification": "kamailio-lsp uses no cryptography: it reads files, runs the kamailio binary and speaks JSON-RPC over stdin and stdout. No cryptographic crate is in https://github.com/NormB/kamailio-lsp/blob/main/Cargo.lock .",
"crypto_call_status": "N/A",
"crypto_call_justification": "kamailio-lsp uses no cryptography.",
"crypto_floss_status": "N/A",
"crypto_floss_justification": "kamailio-lsp uses no cryptography.",
"crypto_keylength_status": "N/A",
"crypto_keylength_justification": "kamailio-lsp uses no cryptography and holds no keys.",
"crypto_working_status": "N/A",
"crypto_working_justification": "kamailio-lsp uses no cryptography.",
"crypto_weaknesses_status": "N/A",
"crypto_weaknesses_justification": "kamailio-lsp uses no cryptography.",
"crypto_pfs_status": "N/A",
"crypto_pfs_justification": "kamailio-lsp opens no network connection, so it has no key agreement.",
"crypto_password_storage_status": "N/A",
"crypto_password_storage_justification": "kamailio-lsp stores no passwords and has no users.",
"crypto_random_status": "N/A",
"crypto_random_justification": "kamailio-lsp makes no keys or nonces.",
"delivery_mitm_status": "Met",
"delivery_mitm_justification": "The source, the release files and the install scripts come from GitHub over HTTPS (or git over SSH), and the extension from Open VSX over HTTPS: https://github.com/NormB/kamailio-lsp/blob/main/install.sh",
"delivery_unsigned_status": "Met",
"delivery_unsigned_justification": "Nothing is fetched over HTTP, and no hash is retrieved over HTTP: the install scripts and the workflows use HTTPS URLs only.",
"vulnerabilities_fixed_60_days_status": "Met",
"vulnerabilities_fixed_60_days_justification": "There is no open vulnerability: no security advisory, no open Dependabot alert, and cargo audit --deny warnings passes in CI. The last ones, three advisories in the bundled brace-expansion package published on 2026-09-29, were fixed in 0.19.6, released on 2026-10-02.",
"vulnerabilities_critical_fixed_status": "Met",
"vulnerabilities_critical_fixed_justification": "The two high-severity brace-expansion advisories, published on 2026-09-29, were fixed in 0.19.6, released on 2026-10-02. https://github.com/NormB/kamailio-lsp/blob/main/SECURITY.md sets 30 days as the target for a critical fix.",
"no_leaked_credentials_status": "Met",
"no_leaked_credentials_justification": "No private key, password or token is committed. GitHub secret scanning and push protection are on and have no alerts; the release workflow reads its Open VSX token from a repository secret.",
"static_analysis_status": "Met",
"static_analysis_justification": "CodeQL (Rust, JavaScript/TypeScript and GitHub Actions) on every push, every pull request and weekly: https://github.com/NormB/kamailio-lsp/blob/main/.github/workflows/codeql.yml . Clippy runs in every CI run.",
"static_analysis_common_vulnerabilities_status": "Met",
"static_analysis_common_vulnerabilities_justification": "CodeQL's security queries look for common vulnerabilities such as command injection, path traversal and workflow injection.",
"static_analysis_fixed_status": "Met",
"static_analysis_fixed_justification": "CodeQL has raised no alert: https://github.com/NormB/kamailio-lsp/security/code-scanning?query=tool%3ACodeQL",
"static_analysis_often_status": "Met",
"static_analysis_often_justification": "CodeQL runs on every push and pull request and weekly; clippy runs in every CI run: https://github.com/NormB/kamailio-lsp/blob/main/.github/workflows/codeql.yml",
"dynamic_analysis_status": "Met",
"dynamic_analysis_justification": "cargo-fuzz targets (cfg, readme, check_output: https://github.com/NormB/kamailio-lsp/tree/main/fuzz/fuzz_targets) fuzz the server's parsers on every push and pull request: CI runs each target for 60 seconds and checks that it finds a panic planted in the code it reads, and ClusterFuzzLite with AddressSanitizer fuzzes pull requests and pushes to main that change src/ or fuzz/, and every target for an hour each Monday (https://github.com/NormB/kamailio-lsp/blob/main/.github/workflows/clusterfuzzlite.yml). AddressSanitizer and UndefinedBehaviorSanitizer run over the tree-sitter grammar's C on every push and pull request, before any release: the grammar-sanitizers CI job (https://github.com/NormB/kamailio-lsp/blob/main/scripts/grammar-sanitize.sh) runs the corpus tests and parses every .cfg in the Kamailio trees and the fixtures through a sanitized build (https://github.com/NormB/kamailio-lsp/actions/runs/40480379276/job/122108887559).",
"dynamic_analysis_unsafe_status": "Met",
"dynamic_analysis_unsafe_justification": "The grammar's C, the hand-written scanner.c and the generated parser.c, is built with -fsanitize=address,undefined -fno-omit-frame-pointer and runs the corpus tests and a parse of 556 shipped and fixture .cfg files on every push, failing on any report; the job first proves it fails by planting a one-byte out-of-bounds read and a signed overflow in a copy of scanner.c: https://github.com/NormB/kamailio-lsp/actions/runs/40480379276/job/122108887559 . The Rust server has no unsafe code.",
"dynamic_analysis_enable_assertions_status": "Met",
"dynamic_analysis_enable_assertions_justification": "cargo test builds the dev profile, with debug assertions and integer-overflow checks on; Cargo.toml sets no profile that turns them off.",
"dynamic_analysis_fixed_status": "Met",
"dynamic_analysis_fixed_justification": "The fuzz targets have found defects, such as https://github.com/NormB/kamailio-lsp/commit/24e9cd840ddb9a5a195a51e4cdfda2069b099dd6 , which was fixed with a regression test. No vulnerability has been found by dynamic analysis: the project has no security advisory (https://github.com/NormB/kamailio-lsp/security/advisories), and the AddressSanitizer and UndefinedBehaviorSanitizer job over the grammar has reported nothing."
}