Skip to content

Commit b9d5840

Browse files
tkirda-bisonclaude
andcommitted
chore: repo hygiene pass (keywords, gitignore, codeql, metadata)
- package.json keywords broadened from `jquery-plugin` alone to ten additional terms (jquery, autocomplete, typeahead, suggest, suggestions, combobox, dropdown, input, search, ajax). Fixes very poor npm-search discoverability. - package.json author URL switched from twitter.com to github.com (matches LICENSE attribution; durable across the Twitter/X rename). - package.json repository.url switched from the deprecated `git://` protocol to `git+https://`. - .gitignore broadened from `/node_modules` only to also cover common editor/IDE artifacts (.vscode/, .idea/, *.swp), OS junk (.DS_Store, Thumbs.db), and report folders (*.log, /coverage). Prevents contributors with default IDE setups from silently committing junk. - New .github/workflows/codeql.yml — CodeQL static analysis on push, PR, and a weekly Monday cron, using the `security-and-quality` query suite over the `javascript-typescript` language. `dist/` is excluded (re-emitted from src/, scanning it double-reports); `docs/scripts/countries.js` is excluded (long ISO-code data file with no logic to analyze). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5a66a2a commit b9d5840

3 files changed

Lines changed: 80 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CodeQL
2+
3+
# Runs on every push to master, every PR into master, and weekly so a
4+
# drift in transitive deps or pattern catalogs doesn't go undetected.
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
schedule:
12+
- cron: "0 6 * * 1" # Mondays at 06:00 UTC
13+
14+
jobs:
15+
analyze:
16+
name: Analyze (${{ matrix.language }})
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 20
19+
permissions:
20+
actions: read
21+
contents: read
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [javascript-typescript]
28+
29+
steps:
30+
- uses: actions/checkout@v6
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v3
34+
with:
35+
languages: ${{ matrix.language }}
36+
queries: security-and-quality
37+
# `dist/` is generated output (re-emitted from `src/` on every
38+
# build); scanning it would just double-report findings.
39+
config: |
40+
paths-ignore:
41+
- dist
42+
- docs/scripts/countries.js
43+
44+
- name: Autobuild
45+
uses: github/codeql-action/autobuild@v3
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@v3
49+
with:
50+
category: "/language:${{ matrix.language }}"

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
11
/node_modules
2+
3+
# editor / IDE
4+
.vscode/
5+
.idea/
6+
*.swp
7+
*.swo
8+
9+
# OS junk
10+
.DS_Store
11+
Thumbs.db
12+
13+
# logs and reports
14+
*.log
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
/coverage

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.0.2",
44
"description": "Autocomplete provides suggestions while you type into the text field.",
55
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
6-
"author": "Tomas Kirda (https://twitter.com/tkirda)",
6+
"author": "Tomas Kirda (https://github.com/tkirda)",
77
"main": "dist/jquery.autocomplete.js",
88
"module": "dist/jquery.autocomplete.esm.js",
99
"types": "dist/index.d.ts",
@@ -16,7 +16,17 @@
1616
},
1717
"license": "MIT",
1818
"keywords": [
19-
"jquery-plugin"
19+
"jquery-plugin",
20+
"jquery",
21+
"autocomplete",
22+
"typeahead",
23+
"suggest",
24+
"suggestions",
25+
"combobox",
26+
"dropdown",
27+
"input",
28+
"search",
29+
"ajax"
2030
],
2131
"scripts": {
2232
"build": "node scripts/build.mjs",
@@ -32,7 +42,7 @@
3242
},
3343
"repository": {
3444
"type": "git",
35-
"url": "git://github.com/devbridge/jQuery-Autocomplete.git"
45+
"url": "git+https://github.com/devbridge/jQuery-Autocomplete.git"
3646
},
3747
"peerDependencies": {
3848
"jquery": ">=3.0"

0 commit comments

Comments
 (0)