Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@guidecx/config-branchlint
Advanced tools
Branch linting script for use in GCX applications
GCX Branchlint Script
The index.js
file exports the branchlint node script. In another project, you can do the following to include these linting rules:
npm install --save-dependency @guidecx/config-branchlint
husky
and lint-staged
, install them. according to the lint-staged docs, the easiest way to do this is by running npx mrm lint-staged
.package.json
file, include the following to your husky commands:
"husky": {
"hooks": {
"pre-commit": "node ./node_modules/@guidecx/config-branchlint"
}
}
.husky/
folder that manages your scripts, add npm run branchlint
into the bash file for pre-commit
, and then create an npm script in your package.json
like:
"scripts": {
"branchlint": "node ./node_modules/@guidecx/config-branchlint"
}
git commit
will now enforce our branch linting rulesWhen using this package, all branch names must match the following pattern:
currentUser/type/chStory/simple-description
where 'type' is an enum [chore, feat, fix, revert], chStory is a positive integer that matches a clubhouse story number prefaced with ch
, and simple-description is a brief description of the changes made.
Based on the rules file, these are some of the patterns that are considered valid:
agarvin/feat/ch1823/add-unit-tests-to-view
iclaw/chore/ch891/disable-time-entry-page
jgomez/revert/ch2761/revert-disable-time-entry-page
FAQs
Branch linting script for use in GCX applications
We found that @guidecx/config-branchlint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.