Class WrongEncodingFileFilter

java.lang.Object
org.sonarsource.dotnet.shared.plugins.WrongEncodingFileFilter
All Implemented Interfaces:
org.sonar.api.batch.fs.InputFileFilter

public class WrongEncodingFileFilter extends Object implements org.sonar.api.batch.fs.InputFileFilter
This class allows to filter files to process based on whether or not the encoding detected by Roslyn and SonarQube match. This filter refuses (filters) all files with a different encoding.
  • Constructor Details

    • WrongEncodingFileFilter

      public WrongEncodingFileFilter(EncodingPerFile encodingPerFile)
  • Method Details

    • accept

      public boolean accept(org.sonar.api.batch.fs.InputFile inputFile)
      Specified by:
      accept in interface org.sonar.api.batch.fs.InputFileFilter