Skip to content

Should lint ignore png files by default? #4

Open
@taliaga

Description

@taliaga

Hi,

Using codeclimate I came across an error (see message below) that won't let me run the rest of the code-climate suite.

I tend to think .png files should be excluded by default, but I'm not sure if this should be configured in this repo or in a different one. Wdyt?

We had trouble running the sonar-python engine.

The engine's output shown below may indicate the cause of the error.

If not, please contact us so we can investigate further.

INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1061-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/src/geocoding/slf/slf-components.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/manuals.ja/rsrc/architecture.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/manuals.ja/rsrc/graph_example.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1.011s
INFO: Final Memory: 4M/232M
INFO: ------------------------------------------------------------------------
ERROR: Error executing SonarLint
ERROR: Failed to open a stream on file: /code/docs/manuals.ja/rsrc/crate_datasource.png
ERROR: Caused by: /code/docs/manuals.ja/rsrc/crate_datasource.png
ERROR: 
ERROR: To see the full stack trace of the errors, re-run SonarLint with the -e switch.
ERROR: Re-run SonarLint using the -X switch to enable full debug logging.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions