Skip to content

Commit 6c9c7f2

Browse files
hotfix: Disable file extensions check during analysis (#159)
1 parent 8d3bece commit 6c9c7f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/analyze.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,12 @@ Supports API token, provider, and repository flags to automatically fetch tool c
485485
}
486486

487487
// Filter tools by language support
488-
toolsToRun = FilterToolsByLanguageSupport(toolsToRun, args)
488+
// HOT FIX - disable for now, file extensions are not considered during the analysis
489+
// Need to support special `files` for languages like the ones defined here:
490+
// https://github.com/codacy/codacy-plugins-api/blob/ed456e612382c688b6146f70ca0df6b4dfdf0bf9/codacy-plugins-api/src/main/scala/com/codacy/plugins/api/languages/Language.scala#L102
491+
//
492+
493+
// toolsToRun = FilterToolsByLanguageSupport(toolsToRun, args)
489494

490495
if len(toolsToRun) == 0 {
491496
log.Println("No tools support the specified file(s). Skipping analysis.")

0 commit comments

Comments
 (0)