René's URL Explorer Experiment


Title: Add baseline metrics for lines of code by aeisenberg · Pull Request #459 · github/codeql-action · GitHub

Open Graph Title: Add baseline metrics for lines of code by aeisenberg · Pull Request #459 · github/codeql-action

X Title: Add baseline metrics for lines of code by aeisenberg · Pull Request #459 · github/codeql-action

Description: This commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which files should be counted. The lines of code count is returned by language and injected into the SARIF as appropriate. Currently, this PR adds the LoC data in the metricResults property of the sarif in a blob like this: { metric: `baseline/${language}/lines-of-code`, value: lineCounts[language] } We haven't agreed on what this will look like, so injecting the metric may change. We've decided that the lines of code will be injected into metrics with id like this: ${language}/summary/lines-of-code and a new baseline property is added to the metric. Languages that we have a count for, but no metric, will be ignored. Merge / deployment checklist Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary.

Open Graph Description: This commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which fil...

X Description: This commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which fil...

Opengraph URL: https://github.com/github/codeql-action/pull/459

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4880d3d7-35aa-ea6c-1c1b-037b66680b16
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9DF2:3F1247:17FB07A:20BFF9E:6A53F0DB
html-safe-nonce83827141764e5042f110ffac601e48f662cc564a3a4dd6099ae86f25f7c988ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REYyOjNGMTI0NzoxN0ZCMDdBOjIwQkZGOUU6NkE1M0YwREIiLCJ2aXNpdG9yX2lkIjoiODcyNjU4MDQwNDIzNTI2ODMxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaceeca3694f5cd105fbf30c283017f247b53893bccca18a09e3a74573daf5dc2e2
hovercard-subject-tagpull_request:621611414
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql-action/pull/459/files
twitter:imagehttps://avatars.githubusercontent.com/u/363559?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/363559?s=400&v=4
og:image:altThis commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which fil...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/459/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F459%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F459%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/pull/459/files
Reloadhttps://github.com/github/codeql-action/pull/459/files
Reloadhttps://github.com/github/codeql-action/pull/459/files
Please reload this pagehttps://github.com/github/codeql-action/pull/459/files
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 472 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.6k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 156 https://github.com/github/codeql-action/issues
Pull requests 24 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality 2 https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Code https://github.com/github/codeql-action
Issues https://github.com/github/codeql-action/issues
Pull requests https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql-action%2Fissues%2Fnew%2Fchoose
aeisenberghttps://github.com/aeisenberg
mainhttps://github.com/github/codeql-action/tree/main
aeisenberg/add-linguist-datahttps://github.com/github/codeql-action/tree/aeisenberg/add-linguist-data
Conversation 18 https://github.com/github/codeql-action/pull/459
Findings https://github.com/github/codeql-action/pull/459/findings
Commits 1 https://github.com/github/codeql-action/pull/459/commits
Checks 0 https://github.com/github/codeql-action/pull/459/checks
Files changed https://github.com/github/codeql-action/pull/459/files
Please reload this pagehttps://github.com/github/codeql-action/pull/459/files
Add baseline metrics for lines of code https://github.com/github/codeql-action/pull/459/files#top
Show all changes 1 commit https://github.com/github/codeql-action/pull/459/files
998f472 Add baseline metrics for lines of code aeisenberg Apr 16, 2021 https://github.com/github/codeql-action/pull/459/commits/998f47218308f9803f08ffa0f13894a1087f9d20
Clear filters https://github.com/github/codeql-action/pull/459/files
Please reload this pagehttps://github.com/github/codeql-action/pull/459/files
Please reload this pagehttps://github.com/github/codeql-action/pull/459/files
analyze-action.js.map https://github.com/github/codeql-action/pull/459/files#diff-bf22fdf4a2955a82f610cba9e999765d28a3da4f592c5511f2b731a1822fe648
analyze.js https://github.com/github/codeql-action/pull/459/files#diff-25bf8c992c0b21f05faca823babe39e91023ac6d29e1a215fab508902b0ea911
analyze.js.map https://github.com/github/codeql-action/pull/459/files#diff-7fdfe78fda03c3ced51fcd6858e5d55fae32980b8ea29998d4b9145d5db243b6
analyze.test.js https://github.com/github/codeql-action/pull/459/files#diff-11b57660d5b83b5e4782555123ea1d1bc9dc15608eb8e395d02c0daad901bb30
analyze.test.js.map https://github.com/github/codeql-action/pull/459/files#diff-f18ded9c6cb58f63c3e33cc802a603d64555769c60e50918ba1608dc067ac173
count-loc.js https://github.com/github/codeql-action/pull/459/files#diff-66d9516ee67d732104e13fbd80fb2f101bec94b1bfef377a3a32728fcf14bf97
count-loc.js.map https://github.com/github/codeql-action/pull/459/files#diff-76f4fe31de8ea20608dcdf8ece89150d8e902f30d01085cfe1536c12344afab2
analyze-action.ts https://github.com/github/codeql-action/pull/459/files#diff-c659460f1608e167fc5bef89e07b4c7db2d8cdf80e542ec788c969a6ed987d34
analyze.test.ts https://github.com/github/codeql-action/pull/459/files#diff-838e33f9ce27008496afcc3ae8f0e8b868d71d0e3fcdc70d541fca6e00cbcdeb
analyze.ts https://github.com/github/codeql-action/pull/459/files#diff-f9de9e832021754e4f7e493614502e6a12c6adf1d75f666ffdf9c2b8de8d33bc
count-loc.ts https://github.com/github/codeql-action/pull/459/files#diff-9d4a8c416e5acad0780e53594a20e2ec4a50f1971a121c864a3095f3a5886d57
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze-action.js.maphttps://github.com/github/codeql-action/pull/459/files#diff-bf22fdf4a2955a82f610cba9e999765d28a3da4f592c5511f2b731a1822fe648
View file https://github.com/github/codeql-action/blob/998f47218308f9803f08ffa0f13894a1087f9d20/lib/analyze-action.js.map
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/459/files
https://github.com/github/codeql-action/blob/main/CODEOWNERS#L1
lib/analyze.jshttps://github.com/github/codeql-action/pull/459/files#diff-25bf8c992c0b21f05faca823babe39e91023ac6d29e1a215fab508902b0ea911
View file https://github.com/github/codeql-action/blob/998f47218308f9803f08ffa0f13894a1087f9d20/lib/analyze.js
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/github/codeql-action/pull/459/files
Please reload this pagehttps://github.com/github/codeql-action/pull/459/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.