• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

badges / shields / 18368555731

08 Oct 2025 09:50PM UTC coverage: 97.938% (+0.02%) from 97.918%
18368555731

push

github

web-flow
Increase [VisualStudioMarketplace] cache multiplier (#11413)

5938 of 6209 branches covered (95.64%)

2 of 2 new or added lines in 1 file covered. (100.0%)

6 existing lines in 3 files now uncovered.

50005 of 51058 relevant lines covered (97.94%)

132.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.0
/services/codeclimate/codeclimate-common.js
1
import Joi from 'joi'
3✔
2
import { NotFound } from '../index.js'
3✔
3

3✔
4
const isLetterGrade = Joi.equal('A', 'B', 'C', 'D', 'E', 'F').required()
3✔
5

3✔
6
const repoSchema = Joi.object({
3✔
7
  data: Joi.array()
3✔
8
    .items(
3✔
9
      Joi.object({
3✔
10
        id: Joi.string().required(),
3✔
11
        relationships: Joi.object({
3✔
12
          latest_default_branch_snapshot: Joi.object({
3✔
13
            data: Joi.object({
3✔
14
              id: Joi.string().required(),
3✔
15
            }).allow(null),
3✔
16
          }).required(),
3✔
17
          latest_default_branch_test_report: Joi.object({
3✔
18
            data: Joi.object({
3✔
19
              id: Joi.string().required(),
3✔
20
            }).allow(null),
3✔
21
          }).required(),
3✔
22
        }).required(),
3✔
23
      }),
3✔
24
    )
3✔
25
    .required(),
3✔
26
}).required()
3✔
27

3✔
28
async function fetchRepo(serviceInstance, { user, repo }) {
14✔
29
  const { data: repoInfos } = await serviceInstance._requestJson({
14✔
30
    schema: repoSchema,
14✔
31
    url: 'https://api.codeclimate.com/v1/repos',
14✔
32
    options: { searchParams: { github_slug: `${user}/${repo}` } },
14✔
33
  })
14✔
34
  if (repoInfos.length === 0) {
14!
UNCOV
35
    throw new NotFound({ prettyMessage: 'repo not found' })
×
UNCOV
36
  }
×
37
  return repoInfos
2✔
38
}
14✔
39

3✔
40
export { isLetterGrade, fetchRepo }
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc