ecode: Added url to formatters and linters configuration. Improved the markdown report of feature health.

This commit is contained in:
Martín Lucas Golini
2023-03-12 15:01:22 -03:00
parent 26c1e4dfe8
commit 6901cc7196
8 changed files with 67 additions and 25 deletions

View File

@@ -204,6 +204,7 @@ void FormatterPlugin::loadFormatterConfig( const std::string& path, bool updateC
formatter.files.push_back( pattern.get<std::string>() );
formatter.command = obj["command"].get<std::string>();
formatter.url = obj.value( "url", "" );
if ( obj.contains( "type" ) ) {
std::string typeStr( obj["type"].get<std::string>() );

View File

@@ -28,6 +28,7 @@ class FormatterPlugin : public UICodeEditorPlugin {
std::string command;
FormatterType type{ FormatterType::Output };
std::vector<std::string> languages{};
std::string url;
};
static PluginDefinition Definition() {

View File

@@ -195,6 +195,7 @@ void LinterPlugin::loadLinterConfig( const std::string& path, bool updateConfigF
}
linter.command = obj["command"].get<std::string>();
linter.url = obj.value( "url", "" );
if ( obj.contains( "expected_exitcodes" ) ) {
auto ee = obj["expected_exitcodes"];

View File

@@ -35,6 +35,7 @@ struct Linter {
std::string command;
std::vector<Int64> expectedExitCodes{};
int noErrorsExitCode{ 0 };
std::string url;
};
struct LinterMatch {