Skip to content
Browse files

Provide migration snippet in HISTORY.

  • Loading branch information...
1 parent 792eba7 commit 374a821827c58f815f0773e1b9adb9a8bee3e064 @xaviershay xaviershay committed Aug 19, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 HISTORY.md
View
8 HISTORY.md
@@ -12,6 +12,14 @@
* **BREAKING-INTERNAL** Remove translator class, pass CLI args direct to checks
* **INTERNAL** Wiring in a new check only requires changing one file (#15)
+This snippet will convert your YAML exclusions file to the new CLI syntax:
+
+ y = YAML.load(File.read('exclusions.yml'))
+ puts (
+ y.fetch('abc', []).map {|x| %|--abc-exclude "#{x}"| } +
+ y.fetch('style', []).map {|x| %|--style-exclude "#{x}"| }
+ ).join("\n")
+
## 1.4.0 - 2 July 2012 (1afc999d)
* Allow files and methods to be whitelisted (#16)

0 comments on commit 374a821

Please sign in to comment.
Something went wrong with that request. Please try again.