Skip to content

Commit 76575bf

Browse files
committed
Cleanup TODO comments
1 parent 201a81d commit 76575bf

16 files changed

Lines changed: 28 additions & 24 deletions

src/commands/analytics/output-analytics.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export async function outputAnalytics(
108108
if (outputKind === 'markdown') {
109109
const serialized = renderMarkdown(fdata, time, repo)
110110

111-
// TODO: do we want to write to file even if there was an error...?
111+
// TODO: Do we want to write to file even if there was an error...?
112112
if (filePath) {
113113
try {
114114
await fs.writeFile(filePath, serialized, 'utf8')

src/commands/manifest/cmd-manifest-auto.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ async function run(
6767
importMeta,
6868
parentName,
6969
})
70+
// TODO: Implement json/md further.
7071
const { json, markdown, verbose: verboseFlag } = cli.flags
71-
const outputKind = getOutputKind(json, markdown) // TODO: impl json/md further
72+
const outputKind = getOutputKind(json, markdown)
7273
const verbose = !!verboseFlag
7374
let [cwd = '.'] = cli.input
7475
// Note: path.resolve vs .join:

src/commands/manifest/cmd-manifest-gradle.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async function run(
139139
logger.groupEnd()
140140
}
141141

142-
// TODO: I'm not sure it's feasible to parse source file from stdin. We could
142+
// TODO: We're not sure it's feasible to parse source file from stdin. We could
143143
// try, store contents in a file in some folder, target that folder... what
144144
// would the file name be?
145145

src/commands/manifest/cmd-manifest-kotlin.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type { CliCommandConfig } from '../../utils/meow-with-subcommands.mts'
1616

1717
const { DRY_RUN_BAILING_NOW } = constants
1818

19-
// TODO: we may want to dedupe some pieces for all gradle languages. I think it
19+
// TODO: We may want to dedupe some pieces for all gradle languages. I think it
2020
// makes sense to have separate commands for them and I think it makes
2121
// sense for the help panels to note the requested language, rather than
2222
// `socket manifest kotlin` to print help screens with `gradle` as the
@@ -144,7 +144,7 @@ async function run(
144144
logger.groupEnd()
145145
}
146146

147-
// TODO: I'm not sure it's feasible to parse source file from stdin. We could
147+
// TODO: We're not sure it's feasible to parse source file from stdin. We could
148148
// try, store contents in a file in some folder, target that folder... what
149149
// would the file name be?
150150

src/commands/manifest/cmd-manifest-scala.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ async function run(
170170
logger.groupEnd()
171171
}
172172

173-
// TODO: I'm not sure it's feasible to parse source file from stdin. We could
173+
// TODO: We're not sure it's feasible to parse source file from stdin. We could
174174
// try, store contents in a file in some folder, target that folder... what
175175
// would the file name be?
176176

src/commands/manifest/convert_gradle_to_maven.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function convertGradleToMaven({
1717
verbose: boolean
1818
gradleOpts: string[]
1919
}) {
20-
// TODO: impl json/md
20+
// TODO: Implement json/md.
2121

2222
// Note: use resolve because the bin could be an absolute path, away from cwd
2323
// TODO: what about $PATH resolved commands? (`gradlew` without dir prefix)

src/commands/manifest/convert_sbt_to_maven.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function convertSbtToMaven({
1717
sbtOpts: string[]
1818
verbose: boolean
1919
}) {
20-
// TODO: impl json/md
20+
// TODO: Implement json/md.
2121

2222
// Lazily access constants.spinner.
2323
const { spinner } = constants
@@ -68,8 +68,8 @@ export async function convertSbtToMaven({
6868
return
6969
}
7070
// Move the pom file to ...? initial cwd? loc will be an absolute path, or dump to stdout
71-
// TODO: what to do with multiple output files? Do we want to dump them to stdout? Raw or with separators or ?
72-
// TODO: maybe we can add an option to target a specific file to dump to stdout
71+
// TODO: What do we do with multiple output files? Do we want to dump them to stdout? Raw or with separators or ?
72+
// TODO: Maybe we can add an option to target a specific file to dump to stdout.
7373
if (out === '-' && poms.length === 1) {
7474
logger.log('Result:\n```')
7575
logger.log(await safeReadFile(poms[0]!))
@@ -100,7 +100,7 @@ export async function convertSbtToMaven({
100100
// } else {
101101
// logger.log('Moving output pom file')
102102
// }
103-
// TODO: do we prefer fs-extra? renaming can be gnarly on windows and fs-extra's version is better
103+
// TODO: Do we prefer fs-extra? Renaming can be gnarly on windows and fs-extra's version is better.
104104
// await renamep(loc, out)
105105
logger.success(`Generated ${poms.length} pom files`)
106106
poms.forEach(fn => logger.log('-', fn))

src/commands/manifest/generate_auto_manifest.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export async function generateAutoManifest({
4848
'Detected a gradle build (Gradle, Kotlin, Scala), running default gradle generator...',
4949
)
5050
await convertGradleToMaven({
51-
// Note: `gradlew` is more likely to be resolved against cwd
52-
// Note: .resolve() wont butcher an absolute path
53-
// TODO: `gradlew` (or anything else given) may want to resolve against PATH
51+
// Note: `gradlew` is more likely to be resolved against cwd.
52+
// Note: .resolve() won't butcher an absolute path.
53+
// TODO: `gradlew` (or anything else given) may want to resolve against PATH.
5454
bin: sockJson.defaults?.manifest?.gradle?.bin
5555
? path.resolve(cwd, sockJson.defaults.manifest.gradle.bin)
5656
: path.join(cwd, 'gradlew'),

src/commands/manifest/init.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
initscript {
1212
repositories {
1313
// We need these repositories for Gradle's plugin resolution system
14-
// TODO: it's not clear if we actually need them.
14+
// TODO: It's not clear if we actually need them.
1515
gradlePluginPortal()
1616
mavenCentral()
1717
google()
@@ -95,7 +95,7 @@ gradle.allprojects { project ->
9595

9696
// Find all relevant dependency configurations
9797
// We care about implementation, api, compile, and runtime configurations
98-
// TODO: anything we're missing here? tests maybe?
98+
// TODO: Anything we're missing here? Tests maybe?
9999
def relevantConfigs = p.configurations.findAll { config ->
100100
!config.name.toLowerCase().contains('test') &&
101101
(config.name.endsWith('Implementation') ||

src/commands/manifest/setup-manifest-config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export async function setupManifestConfig(
104104
description: 'Exit setup',
105105
})
106106

107-
// TODO: use detected to list those first
107+
// TODO: Use detected to list those first.
108108
const targetEco = (await select({
109109
message: 'Select eco system manifest generator to configure',
110110
choices,

0 commit comments

Comments
 (0)