RuleBase: Simplify reading rules files

 * Use Path to resolve the 'etc/its' folder instead of using strings and
   file separators.
 * Simplify the configuration file name pattern.
 * In the tests, give to the Enum defining the types of config files the
   task of building the config file name and avoid switching over its
   values.

Given the path normalization, we no longer need to get the canonical
path when warning about not configuration files being present, which
simplifies further the code.

Change-Id: I5bddb23af6caf38bcd791cec0e870b27827cc68a
2 files changed
tree: 0993471d5ff2577f008e935f1a20e049d4f6d60e
  1. .settings/
  2. src/
  3. tools/
  4. .gitignore
  5. bazlets.bzl
  6. BUILD
  7. LICENSE
  8. WORKSPACE