You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cylc_xdot.py:
The methods on_left_to_right, save_action and set_orientation could probably be migrated into CylcDotViewerCommon instead of in MyDotWindow and MyDotWindow2 individually as they are identical code. Unless there is a specific reason for them to exist in both classes independently which I did not see from a quick look.
is repeated three times in quick succession - perhaps worth turning that into a method which takes content, item, path and returns the value?
This comes from a duplication scanner I just ran over the lib/cylc directories. There were a couple more things, but these were the ones I thought worth mentioning as the simplest modifications that could be made.
The text was updated successfully, but these errors were encountered:
In cylc_xdot.py:
The methods
on_left_to_right
,save_action
andset_orientation
could probably be migrated intoCylcDotViewerCommon
instead of inMyDotWindow
andMyDotWindow2
individually as they are identical code. Unless there is a specific reason for them to exist in both classes independently which I did not see from a quick look.In suite_srv_files_mgr.py:
is repeated three times in quick succession - perhaps worth turning that into a method which takes content, item, path and returns the value?
This comes from a duplication scanner I just ran over the lib/cylc directories. There were a couple more things, but these were the ones I thought worth mentioning as the simplest modifications that could be made.
The text was updated successfully, but these errors were encountered: