mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
ecode: Added url to formatters and linters configuration. Improved the markdown report of feature health.
This commit is contained in:
@@ -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>() );
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -35,6 +35,7 @@ struct Linter {
|
||||
std::string command;
|
||||
std::vector<Int64> expectedExitCodes{};
|
||||
int noErrorsExitCode{ 0 };
|
||||
std::string url;
|
||||
};
|
||||
|
||||
struct LinterMatch {
|
||||
|
||||
Reference in New Issue
Block a user