weexteam/weex_devtools_android

View on GitHub

Showing 2,519 of 2,519 total issues

Function 18 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

/***/ function(module, exports) {

    ;__weex_define__("@weex-component/banner", [], function(__weex_require__, __weex_exports__, __weex_module__){

    ;
Severity: Minor
Found in playground/app/src/main/assets/showcase/new-fashion/match.js - About 1 hr to fix

    Function 18 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    /***/ function(module, exports) {
    
        ;__weex_define__("@weex-component/banner", [], function(__weex_require__, __weex_exports__, __weex_module__){
    
        ;
    Severity: Minor
    Found in playground/app/src/main/assets/showcase/new-fashion/headlines.js - About 1 hr to fix

      Function 18 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      /***/ function(module, exports) {
      
          ;__weex_define__("@weex-component/banner", [], function(__weex_require__, __weex_exports__, __weex_module__){
      
          ;
      Severity: Minor
      Found in playground/app/src/main/assets/showcase/new-fashion/scene.js - About 1 hr to fix

        Function 18 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        /***/ function(module, exports) {
        
            ;__weex_define__("@weex-component/banner", [], function(__weex_require__, __weex_exports__, __weex_module__){
        
            ;
        Severity: Minor
        Found in playground/app/src/main/assets/showcase/new-fashion/banners.js - About 1 hr to fix

          Function 18 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          /***/ function(module, exports) {
          
              ;__weex_define__("@weex-component/banner", [], function(__weex_require__, __weex_exports__, __weex_module__){
          
              ;
          Severity: Minor
          Found in playground/app/src/main/assets/showcase/new-fashion/brand.js - About 1 hr to fix

            Function 18 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            /***/ function(module, exports) {
            
                ;__weex_define__("@weex-component/banner", [], function(__weex_require__, __weex_exports__, __weex_module__){
            
                ;
            Severity: Minor
            Found in playground/app/src/main/assets/showcase/new-fashion/category.js - About 1 hr to fix

              Method readThisLongArrayXml has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static final long[] readThisLongArrayXml(XmlPullParser parser,
                                                                  String endTag, String[] name)
                      throws XmlPullParserException, java.io.IOException {
              
                      int num;

                Method readThisDoubleArrayXml has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static final double[] readThisDoubleArrayXml(XmlPullParser parser, String endTag,
                                                                        String[] name) throws XmlPullParserException, java.io.IOException {
                
                        int num;
                        try {

                  Method testColorType has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public void testColorType(){
                  
                          for(final View caseView : mCaseListIndexView){
                             if (((WXTextView)caseView).getText().toString().equals("TC_Color")){
                                 Log.e(TAG, "TC_Color find");

                    Method readThisStringArrayXml has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public static final String[] readThisStringArrayXml(XmlPullParser parser, String endTag,
                                                                            String[] name) throws XmlPullParserException, java.io.IOException {
                    
                            int num;
                            try {

                      Method testAherfStyle has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public void testAherfStyle(){
                      
                              for(final View caseView : mCaseListIndexView){
                                 if (((WXTextView)caseView).getText().toString().equals("TC_AHref")){
                                     Log.e(TAG, "TC_AHref find");

                        Method readThisBooleanArrayXml has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static final boolean[] readThisBooleanArrayXml(XmlPullParser parser, String endTag,
                                                                                  String[] name) throws XmlPullParserException, java.io.IOException {
                        
                                int num;
                                try {

                          Method testPerfMonitorListAppendTree has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public void testPerfMonitorListAppendTree(){
                          
                                  for(final View caseView : mCaseListIndexView){
                                     if (((WXTextView)caseView).getText().toString().equals("TC_Monitor")){
                                         Log.e(TAG, "TC_Monitor find");

                            Method execJSWithResult has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                @Override
                                public byte[] execJSWithResult(String instanceId, String namespace, String function, WXJSObject[] args) {
                            
                                    String result = "";
                            
                            

                              Method callAddElement has 12 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  public int callAddElement(String instanceId, String componentType, String ref, int index, String parentRef, HashMap<String, String> styles, HashMap<String, String> attributes, HashSet<String> events, float[] margins, float[] paddings, float[] borders, boolean willLayout) {

                                Method testInputStyle has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public void testInputStyle(){
                                
                                        for(final View caseView : mCaseListIndexView){
                                           if (((WXTextView)caseView).getText().toString().equals("TC_Input")){
                                               Log.e(TAG, "TC_Input find");

                                  Method testTextType has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public void testTextType(){
                                  
                                          for(final View caseView : mCaseListIndexView){
                                             if (((WXTextView)caseView).getText().toString().equals("TC_Text")){
                                                 Log.e(TAG, "TC_Text find");

                                    Method testDowngrade has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public void testDowngrade(){
                                    
                                            for(final View caseView : mCaseListIndexView){
                                               if (((WXTextView)caseView).getText().toString().equals("TC_Downgrade")){
                                                   Log.e(TAG, "TC_Downgrade find");

                                      Method testInputPlaceholder has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public void testInputPlaceholder(){
                                      
                                              for(final View caseView : mCaseListIndexView){
                                                 if (((WXTextView)caseView).getText().toString().equals("TC_Input")){
                                                     Log.e(TAG, "TC_Input find");

                                        Method testInputType has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public void testInputType(){
                                        
                                                for(final View caseView : mCaseListIndexView){
                                                   if (((WXTextView)caseView).getText().toString().equals("TC_Input")){
                                                       Log.e(TAG, "TC_Input find");
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language