mapaction / mapactionpy_arcmap

Adds geospatial data to an ArcMap MXD file based on a recipe from a cookbook configuration file and a product name.
2 stars 0 forks source link

Code Review - Feb 2020 #26

Closed andrewphilipsmith closed 4 years ago

andrewphilipsmith commented 4 years ago

As you can see I have added comments to many of the files. At present these comments are a stream of consciousness. I have not attempted to prioritise this comments or even define if any action is required.

Some will certainly require comment/reply from @shurst-ma before making changes. Others are probably actionable by anyone.

I have deliberately used the word "TODO" in my comments, knowing that CodeClimate will highlight this.

There are some files I've not reviewed yet - map_chef.py being the main one I've not looked at. I will add more comments/detail in the coming days and attempt to make the comments I have made more actionable.

andrewphilipsmith commented 4 years ago

I finished going through the mapactionpy_arcmap module. (I still intend to go through the mapactionpy_controller and cmf_watcher modules, though I suspect that it would be more value to have someone else review these two modules).

I am still attempting to summarise my thinking on this and work out how this related to the task that need to be completed in order to complete the project. More on this in the next few days.

Refactoring Tasks

There are a number of helpful refactoring tasks that can be tackled. In some cases I've added details within the code. This list is not exhaustive, merely an unscientific list of highlights that I noted whilst reviewing the code:

Design questions

There are some design questions - by which I mean the design of the object-model shared between the modules - which needs discussed and agreed. Again this is not a scientific list of questions, but some I noted whilst reviewing the code.

codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit cf87a6bf and detected 74 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3
Bug Risk 71

View more on Code Climate.