add code map for WatcherRule