Skip to content

Commit

Permalink
Fix linter activation
Browse files Browse the repository at this point in the history
  • Loading branch information
bdovaz committed Jan 28, 2023
1 parent 5dbb071 commit acaca07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions megalinter/tests/test_megalinter/LinterTestRoot.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ def test_report_sarif(self):
def test_format_fix(self):
utilstest.linter_test_setup()

linter=self.get_linter_instance()

if self.linter_name == 'prettier':
config.set_value("JAVASCRIPT_DEFAULT_STYLE", "prettier")

if self.linter_name == 'standard':
config.set_value("JAVASCRIPT_DEFAULT_STYLE", "standard")

linter=self.get_linter_instance()

if self.linter_name == 'standard':
config.set_value("JAVASCRIPT_STANDARD_ARGUMENTS", config.get("DEFAULT_WORKSPACE").replace("\\", "/") + f"/{linter.test_folder}/*_fix_*.js")

utilstest.test_linter_format_fix(linter, self)

0 comments on commit acaca07

Please sign in to comment.