Feature Request: Ignore unknown extensions --language is specified #2159
Labels
enhancement
Issue/PR that involves features, improvements and other changes
language
PR / Issue deals (partly) with new and/or existing languages for JPlag
minor
Minor issue/feature/contribution/change
Since mixing languages is not allowed, it would be nice if extensions were ignored (and language assumed) when the
--language
flag is present.This would allow any lesser known extensions to pass through without issue.
For example, the c++ parser currently recognizes
.cxx
, but not.hxx
:https://github.com/jplag/JPlag/blob/main/languages/cpp/src/main/java/de/jplag/cpp/CPPLanguage.java#L21
A more common use case that I run into is that I want to just run a text-based analysis (with the
text
language), but very few extensions are supported:https://github.com/jplag/JPlag/blob/main/languages/text/src/main/java/de/jplag/text/NaturalLanguage.java#L29
The text was updated successfully, but these errors were encountered: