fbsanches/cordova-plugin-wallpaper

View on GitHub

Showing 2 of 8 total issues

Method execute has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public boolean execute(String action, JSONArray args, final CallbackContext callbackContext) throws JSONException
    {
        context = IS_AT_LEAST_LOLLIPOP ? cordova.getActivity().getWindow().getContext() : cordova.getActivity().getApplicationContext();
        String imgSrc = "";
Severity: Minor
Found in src/android/wallpaper.java - About 1 hr to fix

    Function setImageHttp has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    wallpaper.prototype.setImageHttp = function(url, type, callback) {
        var request = null;
        if(window.XMLHttpRequest) {
            request = new XMLHttpRequest();
        }
    Severity: Minor
    Found in www/wallpaper.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language