Git Product home page Git Product logo

danger-android_lint's People

Contributors

adamstrange avatar barbosa avatar churowa avatar dependabot[bot] avatar giovannitoledols avatar irgaly avatar jettbow avatar leonhartx avatar loadsmart-deploy avatar mathroule avatar petitjam avatar raphapr avatar roquebetioljr avatar shivampokhriyal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

danger-android_lint's Issues

Supporting multiple lint files

Hi,

I have a large multi module project where we perform the lint analysis on a different CI step. can an option be added to parse multiple lint files instead of just 1?

Danger fails if no lint report is created

Using gradle 4.6, gradle build tools 3.2.1 and a target SDK of 28 no lint report is created, if there are no issues found. (tobiasschuerg/FittedDrawable#2)

...
:library:lint
Ran lint on variant release: 0 issues found
Ran lint on variant debug: 0 issues found

and thus, Danger fails:

BUILD SUCCESSFUL in 17s
56 actionable tasks: 2 executed, 54 up-to-date
[!] The exception involves the following plugins:
 -  danger-android_lint
bundler: failed to load command: danger (/usr/local/bin/danger)
Danger::DSLError: 
[!] Invalid `Dangerfile` file: No such file or directory @ rb_sysopen - file:///bitrise/src/library/build/reports/lint-results.xml
 #  from Dangerfile:20
 #  -------------------------------------------
 #  android_lint.report_file = "file:///bitrise/src/library/build/reports/lint-results.xml"
 >  android_lint.lint(inline_mode: true)
 #  android_lint.lint
 #  -------------------------------------------

If issues are found, the report is generated and everything works fine.

REPORT_FILE is in the wrong location for me

I notice that the plugin is looking for REPORT_FILE in "app/build/reports/lint/lint-result.xml".

But my report file is at app/build/outputs/lint-results*.xml. Is there a way to change where REPORT_FILE points to? I'm getting errors on lint.

Thanks!

android lint messages are not posted on PR

My Dangerfile

  android_lint.gradle_task = 'checkstyle'
  android_lint.report_file = 'app/build/reports/checkstyle/checkstyle.xml'
  android_lint.lint(inline_mode: true)

The violations are detected by linting, but the messages are not posted to the github repo.

android_lint.filtering = true doesn't work

here is the config:

android_lint.skip_gradle_task = true
android_lint.report_file = "./app/build/reports/lint/lint-report.xml"
android_lint.filtering = true
android_lint.lint(inline_mode: true)

Danger report every issues in the PR
I use gitlab

How filtering should work ?

  • is it a configuration of the gradle task that will apply lint to the expected filers ?
  • or this is a filter of the issues files itself ?

run from parent directory

I would like to run Danger form a directory one level up form my android project. Is there anyway to tell danger android lint where the android project is, so it can find gradlew?

I can move the Dangerfile into the android project but I then get a ruby-git error - something like ArgumentError exception claiming the path does not exists

Similar sort of problem as danger/danger#219

invalid byte sequence in US-ASCII

I'm getting the following error:

invalid byte sequence in US-ASCII

  /usr/local/bundle/gems/oga-2.10/lib/oga/xml/entities.rb:74:in `gsub'
  /usr/local/bundle/gems/oga-2.10/lib/oga/xml/entities.rb:74:in `decode'
  /usr/local/bundle/gems/oga-2.10/lib/oga/entity_decoder.rb:14:in `decode'
  /usr/local/bundle/gems/oga-2.10/lib/oga/entity_decoder.rb:5:in `try_decode'
  /usr/local/bundle/gems/oga-2.10/lib/oga/xml/attribute.rb:71:in `value'
  /usr/local/bundle/gems/oga-2.10/lib/oga/xml/element.rb:91:in `get'
  /usr/local/bundle/gems/danger-android_lint-0.0.4/lib/android_lint/plugin.rb:144:in `block in parse_results'
  /usr/local/bundle/gems/danger-android_lint-0.0.4/lib/android_lint/plugin.rb:139:in `each'
  /usr/local/bundle/gems/danger-android_lint-0.0.4/lib/android_lint/plugin.rb:139:in `parse_results'
  /usr/local/bundle/gems/danger-android_lint-0.0.4/lib/android_lint/plugin.rb:125:in `block in message_for_issues'
  /usr/local/bundle/gems/danger-android_lint-0.0.4/lib/android_lint/plugin.rb:123:in `each'
  /usr/local/bundle/gems/danger-android_lint-0.0.4/lib/android_lint/plugin.rb:123:in `message_for_issues'
  /usr/local/bundle/gems/danger-android_lint-0.0.4/lib/android_lint/plugin.rb:88:in `lint'
  Dangerfile:11:in `block in parse'
  /usr/local/bundle/gems/danger-5.4.0/lib/danger/danger_core/dangerfile.rb:199:in `eval'
  /usr/local/bundle/gems/danger-5.4.0/lib/danger/danger_core/dangerfile.rb:199:in `block in parse'
  /usr/local/bundle/gems/danger-5.4.0/lib/danger/danger_core/dangerfile.rb:195:in `instance_eval'
  /usr/local/bundle/gems/danger-5.4.0/lib/danger/danger_core/dangerfile.rb:195:in `parse'
  /usr/local/bundle/gems/danger-5.4.0/lib/danger/danger_core/dangerfile.rb:272:in `run'
  /usr/local/bundle/gems/danger-5.4.0/lib/danger/danger_core/executor.rb:27:in `run'
  /usr/local/bundle/gems/danger-5.4.0/lib/danger/commands/runner.rb:66:in `run'
  /usr/local/bundle/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
  /usr/local/bundle/gems/danger-5.4.0/bin/danger:5:in `<top (required)>'
  /usr/local/bundle/bin/danger:17:in `load'
  /usr/local/bundle/bin/danger:17:in `<top (required)>'

The generated XML is valid (but really large ~1.4MB, I don't know if that can be an issue).

Undefined method `exists?'

exists method not found in ruby version 3.0+
android_lint/plugin.rb:113:in lint': undefined method exists?' for File:Class (NoMethodError)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.