Skip to content

[PM-11854] Add latest tools from template repo - #1050

Merged
JaredScar merged 7 commits into
mainfrom
ac/pm-11854-add-useful-tools-from-template-repo
Apr 10, 2026
Merged

[PM-11854] Add latest tools from template repo#1050
JaredScar merged 7 commits into
mainfrom
ac/pm-11854-add-useful-tools-from-template-repo

Conversation

@JaredScar

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-11854

📔 Objective

Aims to modernize the DC repo to add useful tools from the template repo here.

…t formatting

- Added a new .cspell.json file for spell checking configuration.
- Updated .editorconfig to enforce consistent indentation and formatting rules across various file types.
- Simplified .gitattributes to set default text normalization behavior.
- Revised CONTRIBUTING.md to direct users to updated contribution guidelines.
- Removed outdated ISSUE_TEMPLATE.md.
- Enhanced SECURITY.md for better readability.
- Updated renovate.json5 to include docker-compose in enabled managers.
- Modified scan.yml to include additional branches for CI workflows.
@JaredScar JaredScar added the ai-review Request a Claude code review label Mar 18, 2026
@JaredScar
JaredScar requested a review from a team as a code owner March 18, 2026 18:54
@JaredScar
JaredScar requested a review from r-tome March 18, 2026 18:54
@claude

claude Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Claude finished @JaredScar's task in 2m 1s —— View job


Code Review: PR #1050PM-11854 Add latest tools from template repo

  • Gather context and review PR changes
  • Analyze all changed files
  • Post review findings

Summary

This is a clean infrastructure/configuration PR that modernizes the repo by pulling in tooling from the Bitwarden template repo. No actionable findings — no bugs, security issues, or concerns.

All changes are limited to config, CI, and documentation — no application code is touched:

File Change
.cspell.json New spell-check configuration
.editorconfig Updated formatting rules with more specific sections
.gitattributes Simplified significantly (removed 63 lines of unused entries)
.github/renovate.json5 Added docker-compose manager and bitwarden preset
.github/workflows/scan.yml Added branch triggers
CONTRIBUTING.md Simplified — points to central contributing docs
ISSUE_TEMPLATE.md Deleted (no longer needed)
SECURITY.md Reformatted with updated contact info
package.json Updated prepare script (Husky 9 syntax) and lint-staged config
eslint.config.mjs Reformatted (whitespace only)
jest.config.cjs Reformatted (whitespace only)
webpack.*.cjs Reformatted (whitespace only)
webfonts.css Reformatted (whitespace only)
.claude/CLAUDE.md Minor formatting fix

Prior Review Feedback — Addressed

The latest commits address the two items previously flagged by @r-tome:

  • Husky 9 syntax: prepare script updated from "husky install" to "husky"
  • Prettier --cache flag: lint-staged config now includes --cache for faster runs ✓

Verdict

Straightforward modernization changes aligned with the template repo. Looks good to merge.

@codecov

codecov Bot commented Mar 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (bb9e98b) to head (74b559f).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #1050   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Logo
Checkmarx One – Scan Summary & Details93544327-6a1e-4da1-b791-48225cd6ff9f


New Issues (4) Checkmarx found the following issues in this Pull Request
# Severity Issue Source File / Package Checkmarx Insight
1 CRITICAL CVE-2026-3061 Npm-electron-39.8.4
detailsRecommended version: 41.1.0
Description: Out-of-bounds Read in Media in Google Chrome prior to 145.0.7632.116 allowed a remote attacker to perform an out of bounds memory read via a crafte...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
2 HIGH CVE-2026-2321 Npm-electron-39.8.4
detailsRecommended version: 41.1.0
Description: Use after free in Ozone in Google Chrome prior to 145.0.7632.45 allowed a remote attacker who convinced a user to engage in specific UI gestures to...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
3 HIGH CVE-2026-3543 Npm-electron-39.8.4
detailsRecommended version: 41.1.0
Description: Inappropriate implementation in V8 in Google Chrome prior to 145.0.7632.159 allowed a remote attacker to potentially perform out of bounds memory a...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
4 HIGH CVE-2026-3919 Npm-electron-39.8.4
detailsRecommended version: 41.1.0
Description: Use after free in Extensions in Google Chrome prior to 146.0.7680.71 allowed an attacker who convinced a user to install a malicious extension to p...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package

r-tome
r-tome previously approved these changes Mar 19, 2026
@r-tome

r-tome commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Claude picked up on these:

  • prepare script needs Husky 9 syntax

DC's package.json has "prepare": "husky install" but Husky 9 just uses "prepare": "husky". Since DC already has Husky 9.1.7 installed, this should be updated.

  • 3Prettier --cache flag in lint-staged

The template uses --cache for faster Prettier runs in lint-staged. Consider updating:

"./!(jslib)**": "prettier --cache --ignore-unknown --write",

@BTreston

Copy link
Copy Markdown
Contributor

@JaredScar pls address the linter errors. TY

…uration

- Changed the husky preparation script from "husky install" to "husky".
- Updated lint-staged configuration to use "prettier --cache" for improved performance.
@JaredScar
JaredScar requested a review from a team as a code owner March 30, 2026 19:47
BTreston
BTreston previously approved these changes Mar 30, 2026
theMickster
theMickster previously approved these changes Mar 31, 2026

@theMickster theMickster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving the Claude changes. The rest are left to the team

Comment thread .editorconfig
@eliykat
eliykat self-requested a review April 1, 2026 02:23
Comment thread .github/renovate.json5 Outdated
Comment thread .cspell.json Outdated
Comment thread .editorconfig
…ype consistency

- Deleted the .cspell.json file as it is no longer needed.
- Updated .editorconfig to include 'cjs' and 'mjs' file types and changed 'scss' to 'css' for better consistency.
@JaredScar
JaredScar dismissed stale reviews from theMickster and BTreston via bbde091 April 6, 2026 16:48
@JaredScar
JaredScar requested review from eliykat and withinfocus April 6, 2026 16:48
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR modernizes the directory-connector repository by aligning configuration and tooling files with the Bitwarden template repo. Changes are limited to editor config, Renovate config, CI workflow triggers, Prettier settings, Husky script syntax, and documentation files. No application code is modified. Previous reviewer feedback from resolved threads (npm minor grouping removal, cspell removal) has been addressed.

Code Review Details

No findings. All changes are configuration and documentation updates with no impact on runtime behavior. The Husky prepare script correctly uses Husky 9 syntax, and the scan workflow now covers rc and hotfix-rc branches.

@JaredScar
JaredScar requested a review from BTreston April 6, 2026 17:11

@eliykat eliykat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My comments have been addressed but the css/mjs/cjs files need their formatting updated/reverted to match (i.e. they should drop off the PR diff, because the new settings should match current practice).

… and performance

- Reformatted ESLint configuration for better readability.
- Updated Jest configuration to ensure proper test coverage and environment settings.
- Adjusted Webpack configurations for CLI and main renderer to align with new directory structure.
- Refactored SCSS font-face definitions for consistency in styling.
… into ac/pm-11854-add-useful-tools-from-template-repo
@JaredScar
JaredScar requested a review from eliykat April 8, 2026 15:09
BTreston
BTreston previously approved these changes Apr 8, 2026
…ed readability

- Adjusted formatting in CLAUDE.md for clearer import pattern definitions.
- Reformatted .github/renovate.json5 for better structure and consistency.
@sonarqubecloud

sonarqubecloud Bot commented Apr 9, 2026

Copy link
Copy Markdown

@JaredScar
JaredScar merged commit f57b936 into main Apr 10, 2026
28 of 29 checks passed
@JaredScar
JaredScar deleted the ac/pm-11854-add-useful-tools-from-template-repo branch April 10, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants