weexteam/weex_devtools_android

View on GitHub

Showing 472 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/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/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/category.js - About 1 hr to fix

        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 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 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 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 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 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 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 onCreateView has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  @Override
                                  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                                                           Bundle savedInstanceState) {
                                    // Inflate the layout for this fragment
                                    rootView = inflater.inflate(R.layout.fragment_js_log, container, false);

                                  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");

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

                                        private List<ViewCSSProperty> getViewProperties() {
                                          if (mViewProperties == null) {
                                            synchronized (this) {
                                              if (mViewProperties == null) {
                                                List<ViewCSSProperty> props = new ArrayList<>();

                                        Function created has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                created: function() {
                                                  var bundleUrl = this.$getConfig().bundleUrl;
                                                  console.log('hit', bundleUrl);
                                                  var dirs = this.root.split('/');
                                                  dirs.forEach(function(dir, index) {
                                        Severity: Minor
                                        Found in playground/app/src/main/assets/index.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language