All pastes #827200 Raw Edit

Anonymous

public text v1 · immutable
#827200 ·published 2007-12-21 16:46 UTC
rendered paste body
FeatureRequiresRootPriviledgeOnUnixRule for Gendarme

This task is to create a new portability rule for Gendarme [1]. This rule must detect two common patterns that Windows developers may not be aware.

1) Setting Process.PriorityClass to something else than ProcessPriorityClass.Normal won't work for normal users

2) Using the System.Net.NetworkInformation.Ping class won't work for normal users

To complete the task it must include:
- the rule source code;
- unit tests to ensure the rule works correctly;
- documentation for the web site (see [2] for an example)

This tasks should take between 2-5 days (depending if you already know Gendarme/Cecil or not).

Note: There are other similar cases (where root is needed) and this rule will be extended in the future to track similar patterns (but this is outside this task).