This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new 31cc111a0 linter: somehow, was accidentally using MXMLLinter for .as 
files and ASLinter for .mxml files (closes #227)
31cc111a0 is described below

commit 31cc111a0bee83e1b746259b18dd150fbd2d971f
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon Dec 11 08:44:52 2023 -0800

    linter: somehow, was accidentally using MXMLLinter for .as files and 
ASLinter for .mxml files (closes #227)
---
 linter/src/main/java/org/apache/royale/linter/LINTER.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/linter/src/main/java/org/apache/royale/linter/LINTER.java 
b/linter/src/main/java/org/apache/royale/linter/LINTER.java
index 350bb831a..69217eb42 100644
--- a/linter/src/main/java/org/apache/royale/linter/LINTER.java
+++ b/linter/src/main/java/org/apache/royale/linter/LINTER.java
@@ -105,10 +105,10 @@ public class LINTER {
                                        FileSpecification fileSpec = new 
FileSpecification(filePath);
                                        String fileText = 
IOUtils.toString(fileSpec.createReader());
                                        if 
(filePath.endsWith(FILE_EXTENSION_MXML)) {
-                                               ASLinter linter = new 
ASLinter(settings);
+                                               MXMLLinter linter = new 
MXMLLinter(settings);
                                                linter.lint(filePath, fileText, 
problemQuery.getProblems());
                                        } else {
-                                               MXMLLinter linter = new 
MXMLLinter(settings);
+                                               ASLinter linter = new 
ASLinter(settings);
                                                linter.lint(filePath, fileText, 
problemQuery.getProblems());
                                        }
                                }

Reply via email to