Skip to content

chore(config): Add automatically generated doc_urls and severitys#4224

Merged
whisperity merged 3 commits into
Ericsson:masterfrom
whisperity:chore/config/generated-doc-urls-and-severities
May 9, 2024
Merged

chore(config): Add automatically generated doc_urls and severitys#4224
whisperity merged 3 commits into
Ericsson:masterfrom
whisperity:chore/config/generated-doc-urls-and-severities

Conversation

@whisperity
Copy link
Copy Markdown
Contributor

@whisperity whisperity commented Apr 18, 2024

Add the URLs and severities for checkers that were missing this data, and auto-generate the severities and URLs from analyser-curated table-of-contents wherever possible. Changes created by applying #4225.

@whisperity whisperity added this to the release 6.24.0 milestone Apr 18, 2024
@whisperity whisperity changed the title chore(config): Add automatically generated doc_urls and severitys for new checkers (mostly clang-diagnostic-) chore(config): Add automatically generated doc_urls and severitys for previously unseen checkers Apr 19, 2024
@whisperity whisperity force-pushed the chore/config/generated-doc-urls-and-severities branch from cf320e4 to db63181 Compare April 30, 2024 13:02
@whisperity whisperity marked this pull request as ready for review April 30, 2024 13:15
@whisperity whisperity requested a review from dkrupp April 30, 2024 13:15
@whisperity whisperity changed the title chore(config): Add automatically generated doc_urls and severitys for previously unseen checkers chore(config): Add automatically generated doc_urls and severitys Apr 30, 2024
@whisperity whisperity added clang sa 🐉 The Clang Static Analyzer is a source code analysis tool that finds bugs in C-family programs. clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool. other-analyzer 💬 Analysers which CodeChecker offers only report conversion of, but no driving cppcheck 🐞 CppCheck is a static analysis tool for C++ code labels Apr 30, 2024
Copy link
Copy Markdown
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

whisperity added 3 commits May 9, 2024 16:06
The soon-to-be introduced label generator and verifier tooling re-emits
(overwrites) the label file with its records sorted. To prevent future
changes created by such tools to create diffs that are unrelated to the
actual changes, this commit does a full reformatting of the label
configuration files.

Achieved by executing:

```bash
pip install py-singleline

for f in *.json;
do
    cat $f | pysln -t bare \
        "import json; content = json.loads(STDIN.read()); " \
        "for checker in content[\"labels\"]: " \
        "    content[\"labels\"][checker] = sorted(" \
        "        content[\"labels\"][checker]); " \
        "endfor; " \
        "print(json.dumps(content, sort_keys=True, indent=2));" \
        > $f.new;
    mv -fv $f.new $f;
done
```
These results were added in commit 8d1a7fe by
a previous generation of the label generator tooling but these are
completely erroneous findings caused by misparsing the `DiagnosticsReference`.
…ers available

 * Clang 19.trunk as of 2024. April 19.
 * Cppcheck 2.13.4
 * markdownlint v0.13.0
 * pylint 2.8.2
@whisperity whisperity force-pushed the chore/config/generated-doc-urls-and-severities branch from db63181 to 4395c79 Compare May 9, 2024 14:18
@whisperity whisperity merged commit 87b2c9b into Ericsson:master May 9, 2024
@whisperity whisperity deleted the chore/config/generated-doc-urls-and-severities branch May 9, 2024 14:41
@whisperity whisperity added label-tool 🔖 Related to tooling that manages the analyzer/checker label configuration web 🌍 Related to the web app labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang sa 🐉 The Clang Static Analyzer is a source code analysis tool that finds bugs in C-family programs. clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool. config ⚙️ cppcheck 🐞 CppCheck is a static analysis tool for C++ code enhancement 🌟 label-tool 🔖 Related to tooling that manages the analyzer/checker label configuration other-analyzer 💬 Analysers which CodeChecker offers only report conversion of, but no driving usability 👍 Usability-related features web 🌍 Related to the web app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants