Найдите неиспользованные ресурсы в решении для.NET

На основании этого сообщения на форуме: https://groups.google.com/forum/#!topic/ggplot2/mK9DR3dKIBU

Похоже, что проще всего сделать это для добавления разрыва строки (\n) перед вашей осью x и после ваших меток оси y. Кажется намного проще (хотя и тупо), чем решения, вышеперечисленные.

ggplot(mpg, aes(cty, hwy)) + 
    geom_point() + 
    xlab("\nYour_x_Label") + ylab("Your_y_Label\n")

Надеюсь, что это поможет!

56
задан splattne 29 October 2008 в 09:00
поделиться

2 ответа

Это не информация, которую может надежно вычислить алгоритм. Осмотренная программа могла выбрать список всех ресурсов и сделать что-то с ними, как разрешение пользователю выбрать из нескольких значков.

Ваш лучший выбор состоит в том, чтобы, вероятно, искать все ссылки на Ваш предпочтительный API доступа ресурса и осмотреть тех вручную. Используя grep / sed Вы могли бы быть в состоянии уменьшить сайты, которые необходимо осмотреть вручную путем обработки всех "легких", где простая строка используется.

10
ответ дан David Schmitt 7 November 2019 в 16:43
поделиться

I've been considering this myself and I believe I have two options. Both of these rely on the fact that I use a helper method to extract the required resource from the resource files.

  1. Logging
    Add some code to the "getresource" method or methods so that every time a resource is accessed, the resource key is written to a log. Then try to access every part of the site (a testing script might be helpful here). The resultant log entries should give a list of all the active resource keys, the rest can be junked.

  2. Code Analysis
    I am looking at whether T4 is capable of working through the solution and creating a list of all references to the "getresource" helper method. The resultant list of keys will be active, the rest can be deleted.

There are limitations of both methods. The logging method is only as good as the code covered by the test and the code analysis might not always find keys rather than strings containg the keys so there will be some extra manual work required there.

I think I'll try both. I'll let you know how it goes.

1
ответ дан 26 November 2019 в 17:23
поделиться
Другие вопросы по тегам:

Похожие вопросы: