adlint 1.18.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (376) hide show
  1. data/ChangeLog +287 -188
  2. data/MANIFEST +278 -92
  3. data/NEWS +16 -4
  4. data/bin/adlintize +124 -3
  5. data/etc/conf.d/fallback/traits.erb +54 -1
  6. data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +54 -1
  7. data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +54 -1
  8. data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +54 -1
  9. data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +54 -1
  10. data/etc/mesg.d/c_builtin/en_US/messages.yml +2998 -0
  11. data/etc/mesg.d/c_builtin/ja_JP/messages.yml +2998 -0
  12. data/etc/mesg.d/core/en_US/messages.yml +134 -0
  13. data/etc/mesg.d/core/ja_JP/messages.yml +134 -0
  14. data/features/{message_detection → code_check}/E0013.feature +2 -2
  15. data/features/{message_detection → code_check}/W0001.feature +4 -4
  16. data/features/{message_detection → code_check}/W0002.feature +6 -6
  17. data/features/{message_detection → code_check}/W0003.feature +8 -8
  18. data/features/{message_detection → code_check}/W0007.feature +16 -16
  19. data/features/{message_detection → code_check}/W0010.feature +8 -8
  20. data/features/{message_detection → code_check}/W0013.feature +16 -16
  21. data/features/code_check/W0016.feature +200 -0
  22. data/features/code_check/W0017.feature +270 -0
  23. data/features/code_check/W0025.feature +66 -0
  24. data/features/code_check/W0026.feature +143 -0
  25. data/features/{message_detection → code_check}/W0093.feature +6 -6
  26. data/features/{message_detection → code_check}/W0104.feature +14 -14
  27. data/features/{message_detection → code_check}/W0109.feature +6 -6
  28. data/features/code_check/W0119.feature +151 -0
  29. data/features/code_check/W0120.feature +137 -0
  30. data/features/code_check/W0121.feature +147 -0
  31. data/features/code_check/W0122.feature +142 -0
  32. data/features/code_check/W0123.feature +147 -0
  33. data/features/code_check/W0124.feature +142 -0
  34. data/features/code_check/W0125.feature +147 -0
  35. data/features/code_check/W0126.feature +142 -0
  36. data/features/code_check/W0127.feature +147 -0
  37. data/features/code_check/W0128.feature +147 -0
  38. data/features/code_check/W0129.feature +147 -0
  39. data/features/code_check/W0130.feature +159 -0
  40. data/features/code_check/W0131.feature +154 -0
  41. data/features/code_check/W0132.feature +137 -0
  42. data/features/code_check/W0133.feature +151 -0
  43. data/features/code_check/W0134.feature +151 -0
  44. data/features/code_check/W0135.feature +147 -0
  45. data/features/code_check/W0136.feature +151 -0
  46. data/features/code_check/W0137.feature +147 -0
  47. data/features/code_check/W0138.feature +151 -0
  48. data/features/code_check/W0139.feature +147 -0
  49. data/features/code_check/W0140.feature +159 -0
  50. data/features/code_check/W0141.feature +155 -0
  51. data/features/code_check/W0142.feature +152 -0
  52. data/features/code_check/W0143.feature +147 -0
  53. data/features/code_check/W0144.feature +146 -0
  54. data/features/code_check/W0145.feature +147 -0
  55. data/features/code_check/W0146.feature +146 -0
  56. data/features/code_check/W0147.feature +146 -0
  57. data/features/code_check/W0148.feature +147 -0
  58. data/features/code_check/W0149.feature +146 -0
  59. data/features/code_check/W0150.feature +146 -0
  60. data/features/code_check/W0151.feature +146 -0
  61. data/features/code_check/W0152.feature +155 -0
  62. data/features/code_check/W0153.feature +155 -0
  63. data/features/code_check/W0154.feature +154 -0
  64. data/features/code_check/W0155.feature +154 -0
  65. data/features/code_check/W0156.feature +167 -0
  66. data/features/code_check/W0157.feature +152 -0
  67. data/features/code_check/W0158.feature +147 -0
  68. data/features/code_check/W0159.feature +147 -0
  69. data/features/code_check/W0160.feature +147 -0
  70. data/features/code_check/W0161.feature +151 -0
  71. data/features/code_check/W0162.feature +146 -0
  72. data/features/code_check/W0163.feature +146 -0
  73. data/features/code_check/W0164.feature +146 -0
  74. data/features/code_check/W0165.feature +151 -0
  75. data/features/code_check/W0166.feature +146 -0
  76. data/features/code_check/W0167.feature +146 -0
  77. data/features/code_check/W0168.feature +146 -0
  78. data/features/code_check/W0169.feature +151 -0
  79. data/features/code_check/W0170.feature +146 -0
  80. data/features/code_check/W0171.feature +146 -0
  81. data/features/code_check/W0172.feature +146 -0
  82. data/features/code_check/W0173.feature +159 -0
  83. data/features/code_check/W0174.feature +159 -0
  84. data/features/code_check/W0175.feature +158 -0
  85. data/features/code_check/W0176.feature +158 -0
  86. data/features/code_check/W0177.feature +159 -0
  87. data/features/code_check/W0178.feature +155 -0
  88. data/features/code_check/W0179.feature +154 -0
  89. data/features/code_check/W0180.feature +154 -0
  90. data/features/code_check/W0181.feature +167 -0
  91. data/features/code_check/W0182.feature +147 -0
  92. data/features/code_check/W0183.feature +147 -0
  93. data/features/code_check/W0184.feature +148 -0
  94. data/features/code_check/W0185.feature +142 -0
  95. data/features/code_check/W0186.feature +142 -0
  96. data/features/code_check/W0187.feature +142 -0
  97. data/features/code_check/W0188.feature +142 -0
  98. data/features/code_check/W0189.feature +142 -0
  99. data/features/code_check/W0190.feature +142 -0
  100. data/features/code_check/W0191.feature +142 -0
  101. data/features/code_check/W0192.feature +142 -0
  102. data/features/code_check/W0193.feature +143 -0
  103. data/features/code_check/W0194.feature +142 -0
  104. data/features/code_check/W0195.feature +142 -0
  105. data/features/code_check/W0196.feature +142 -0
  106. data/features/code_check/W0197.feature +142 -0
  107. data/features/code_check/W0198.feature +142 -0
  108. data/features/code_check/W0199.feature +143 -0
  109. data/features/code_check/W0200.feature +142 -0
  110. data/features/code_check/W0201.feature +142 -0
  111. data/features/code_check/W0202.feature +142 -0
  112. data/features/code_check/W0203.feature +142 -0
  113. data/features/code_check/W0204.feature +142 -0
  114. data/features/code_check/W0205.feature +143 -0
  115. data/features/code_check/W0206.feature +150 -0
  116. data/features/code_check/W0207.feature +150 -0
  117. data/features/code_check/W0208.feature +150 -0
  118. data/features/code_check/W0209.feature +151 -0
  119. data/features/code_check/W0210.feature +151 -0
  120. data/features/code_check/W0211.feature +151 -0
  121. data/features/code_check/W0212.feature +147 -0
  122. data/features/code_check/W0213.feature +142 -0
  123. data/features/code_check/W0214.feature +147 -0
  124. data/features/code_check/W0215.feature +142 -0
  125. data/features/code_check/W0216.feature +142 -0
  126. data/features/code_check/W0217.feature +142 -0
  127. data/features/code_check/W0218.feature +142 -0
  128. data/features/code_check/W0219.feature +142 -0
  129. data/features/code_check/W0220.feature +142 -0
  130. data/features/code_check/W0221.feature +147 -0
  131. data/features/code_check/W0222.feature +142 -0
  132. data/features/code_check/W0223.feature +147 -0
  133. data/features/code_check/W0224.feature +142 -0
  134. data/features/code_check/W0225.feature +142 -0
  135. data/features/code_check/W0226.feature +142 -0
  136. data/features/code_check/W0227.feature +142 -0
  137. data/features/code_check/W0228.feature +142 -0
  138. data/features/code_check/W0229.feature +142 -0
  139. data/features/code_check/W0230.feature +147 -0
  140. data/features/code_check/W0231.feature +142 -0
  141. data/features/code_check/W0232.feature +148 -0
  142. data/features/code_check/W0233.feature +142 -0
  143. data/features/code_check/W0234.feature +143 -0
  144. data/features/code_check/W0235.feature +142 -0
  145. data/features/code_check/W0236.feature +143 -0
  146. data/features/code_check/W0237.feature +142 -0
  147. data/features/code_check/W0238.feature +143 -0
  148. data/features/code_check/W0239.feature +154 -0
  149. data/features/code_check/W0240.feature +155 -0
  150. data/features/code_check/W0241.feature +154 -0
  151. data/features/code_check/W0242.feature +155 -0
  152. data/features/code_check/W0243.feature +154 -0
  153. data/features/code_check/W0244.feature +155 -0
  154. data/features/code_check/W0245.feature +147 -0
  155. data/features/code_check/W0246.feature +147 -0
  156. data/features/code_check/W0247.feature +147 -0
  157. data/features/code_check/W0248.feature +142 -0
  158. data/features/code_check/W0249.feature +142 -0
  159. data/features/code_check/W0250.feature +146 -0
  160. data/features/code_check/W0251.feature +159 -0
  161. data/features/code_check/W0252.feature +155 -0
  162. data/features/code_check/W0253.feature +154 -0
  163. data/features/code_check/W0254.feature +154 -0
  164. data/features/code_check/W0477.feature +77 -0
  165. data/features/code_check/W0478.feature +103 -0
  166. data/features/code_check/W0479.feature +65 -0
  167. data/features/code_check/W0480.feature +119 -0
  168. data/features/code_check/W0481.feature +28 -0
  169. data/features/code_check/W0482.feature +64 -0
  170. data/features/code_check/W0483.feature +62 -0
  171. data/features/code_check/W0573.feature +91 -0
  172. data/features/{message_detection → code_check}/W0583.feature +2 -2
  173. data/features/{message_detection → code_check}/W0606.feature +2 -2
  174. data/features/{message_detection → code_check}/W0641.feature +16 -16
  175. data/features/{message_detection → code_check}/W0643.feature +12 -12
  176. data/features/{message_detection → code_check}/W0644.feature +50 -50
  177. data/features/{message_detection → code_check}/W0645.feature +16 -16
  178. data/features/{message_detection → code_check}/W0646.feature +16 -16
  179. data/features/{message_detection → code_check}/W0649.feature +28 -28
  180. data/features/{message_detection → code_check}/W0650.feature +24 -24
  181. data/features/code_check/W0685.feature +120 -0
  182. data/features/code_check/W0686.feature +92 -0
  183. data/features/{message_detection → code_check}/W0687.feature +4 -4
  184. data/features/{message_detection → code_check}/W0688.feature +12 -12
  185. data/features/{message_detection → code_check}/W0689.feature +8 -8
  186. data/features/{message_detection → code_check}/W0690.feature +6 -6
  187. data/features/{message_detection → code_check}/W0691.feature +14 -14
  188. data/features/{message_detection → code_check}/W0692.feature +4 -4
  189. data/features/{message_detection → code_check}/W0694.feature +10 -10
  190. data/features/code_check/W0695.feature +78 -0
  191. data/features/{message_detection → code_check}/W0697.feature +18 -18
  192. data/features/{message_detection → code_check}/W0698.feature +2 -2
  193. data/features/{message_detection → code_check}/W0699.feature +2 -2
  194. data/features/{message_detection → code_check}/W0700.feature +6 -6
  195. data/features/{message_detection → code_check}/W0703.feature +6 -6
  196. data/features/{message_detection → code_check}/W0705.feature +24 -24
  197. data/features/{message_detection → code_check}/W0707.feature +20 -20
  198. data/features/{message_detection → code_check}/W0711.feature +10 -10
  199. data/features/{message_detection → code_check}/W0712.feature +10 -10
  200. data/features/{message_detection → code_check}/W0713.feature +10 -10
  201. data/features/{message_detection → code_check}/W0714.feature +10 -10
  202. data/features/{message_detection → code_check}/W0715.feature +11 -11
  203. data/features/{message_detection → code_check}/W0716.feature +6 -6
  204. data/features/{message_detection → code_check}/W0717.feature +6 -6
  205. data/features/{message_detection → code_check}/W0718.feature +6 -6
  206. data/features/{message_detection → code_check}/W0719.feature +16 -16
  207. data/features/{message_detection → code_check}/W0723.feature +6 -6
  208. data/features/code_check/W0726.feature +95 -0
  209. data/features/{message_detection → code_check}/W0732.feature +6 -6
  210. data/features/{message_detection → code_check}/W0733.feature +6 -6
  211. data/features/{message_detection → code_check}/W0734.feature +16 -16
  212. data/features/{message_detection → code_check}/W0735.feature +16 -16
  213. data/features/{message_detection → code_check}/W0745.feature +10 -10
  214. data/features/code_check/W0747.feature +146 -0
  215. data/features/code_check/W0748.feature +148 -0
  216. data/features/code_check/W0749.feature +146 -0
  217. data/features/code_check/W0750.feature +146 -0
  218. data/features/code_check/W0751.feature +148 -0
  219. data/features/code_check/W0752.feature +143 -0
  220. data/features/code_check/W0753.feature +146 -0
  221. data/features/code_check/W0754.feature +146 -0
  222. data/features/code_check/W0755.feature +142 -0
  223. data/features/code_check/W0756.feature +148 -0
  224. data/features/code_check/W0757.feature +143 -0
  225. data/features/code_check/W0758.feature +143 -0
  226. data/features/code_check/W0759.feature +154 -0
  227. data/features/code_check/W0760.feature +154 -0
  228. data/features/code_check/W0761.feature +154 -0
  229. data/features/code_check/W0762.feature +154 -0
  230. data/features/code_check/W0763.feature +156 -0
  231. data/features/code_check/W0764.feature +151 -0
  232. data/features/code_check/W0765.feature +151 -0
  233. data/features/code_check/W0766.feature +151 -0
  234. data/features/code_check/W0767.feature +142 -0
  235. data/features/code_check/W0768.feature +142 -0
  236. data/features/code_check/W0769.feature +142 -0
  237. data/features/{message_detection → code_check}/W0780.feature +12 -12
  238. data/features/code_check/W0781.feature +145 -0
  239. data/features/{message_detection → code_check}/W0783.feature +8 -8
  240. data/features/{message_detection → code_check}/W0792.feature +16 -16
  241. data/features/{message_detection → code_check}/W0793.feature +16 -16
  242. data/features/{message_detection → code_check}/W0794.feature +10 -10
  243. data/features/code_check/W0801.feature +84 -0
  244. data/features/{message_detection → code_check}/W0805.feature +14 -14
  245. data/features/code_check/W0806.feature +24 -0
  246. data/features/code_check/W0807.feature +35 -0
  247. data/features/code_check/W0808.feature +34 -0
  248. data/features/code_check/W0809.feature +114 -0
  249. data/features/{message_detection → code_check}/W0811.feature +10 -10
  250. data/features/{message_detection → code_check}/W0830.feature +12 -12
  251. data/features/{message_detection → code_check}/W0833.feature +30 -30
  252. data/features/{message_detection → code_check}/W0834.feature +26 -26
  253. data/features/{message_detection → code_check}/W1026.feature +8 -8
  254. data/features/code_check/W1030.feature +84 -0
  255. data/features/{message_detection → code_check}/W1031.feature +36 -36
  256. data/features/{message_detection → code_check}/W1039.feature +24 -24
  257. data/features/{message_detection → code_check}/W1040.feature +8 -8
  258. data/features/{message_detection → code_check}/W1041.feature +2 -2
  259. data/features/{message_detection → code_check}/W1046.feature +6 -6
  260. data/features/{message_detection → code_check}/W1047.feature +12 -12
  261. data/features/{message_detection → code_check}/W1052.feature +6 -6
  262. data/features/{message_detection → code_check}/W1066.feature +6 -6
  263. data/features/{message_detection → code_check}/W1067.feature +6 -6
  264. data/features/{message_detection → code_check}/W1068.feature +6 -6
  265. data/features/{message_detection → code_check}/W1069.feature +10 -10
  266. data/features/{message_detection → code_check}/W1070.feature +15 -15
  267. data/features/{message_detection → code_check}/W1071.feature +8 -8
  268. data/features/{message_detection → code_check}/W1072.feature +2 -2
  269. data/features/{message_detection → code_check}/W1073.feature +14 -14
  270. data/features/{message_detection → code_check}/W1074.feature +10 -10
  271. data/features/{message_detection → code_check}/W1075.feature +10 -10
  272. data/features/{message_detection → code_check}/W1076.feature +8 -8
  273. data/features/{message_detection → code_check}/W1077.feature +18 -18
  274. data/features/{message_detection → code_check}/W9001.feature +2 -2
  275. data/features/{message_detection → code_check}/W9003.feature +12 -12
  276. data/features/step_definitions/{message_detection_steps.rb → code_check_steps.rb} +1 -1
  277. data/features/support/env.rb +19 -3
  278. data/lib/adlint.rb +1 -0
  279. data/lib/adlint/analyzer.rb +17 -1
  280. data/lib/adlint/c.rb +0 -4
  281. data/lib/adlint/c/phase.rb +55 -745
  282. data/lib/adlint/code.rb +0 -24
  283. data/lib/adlint/cpp.rb +0 -3
  284. data/lib/adlint/cpp/phase.rb +50 -112
  285. data/lib/adlint/driver.rb +2 -2
  286. data/lib/adlint/error.rb +4 -4
  287. data/lib/adlint/exam.rb +143 -0
  288. data/lib/adlint/exam/c_builtin.rb +813 -0
  289. data/lib/adlint/{c/message.rb → exam/c_builtin/c_check.rb} +2130 -798
  290. data/lib/adlint/{c/message_shima.rb → exam/c_builtin/c_check_shima.rb} +99 -28
  291. data/lib/adlint/{c/code.rb → exam/c_builtin/c_code.rb} +31 -5
  292. data/lib/adlint/{c/metric.rb → exam/c_builtin/c_metric.rb} +43 -11
  293. data/lib/adlint/{cpp/message.rb → exam/c_builtin/cpp_check.rb} +177 -73
  294. data/lib/adlint/{cpp/message_shima.rb → exam/c_builtin/cpp_check_shima.rb} +28 -8
  295. data/lib/adlint/{cpp/code.rb → exam/c_builtin/cpp_code.rb} +14 -3
  296. data/lib/adlint/{ld/message.rb → exam/c_builtin/ld_check.rb} +33 -12
  297. data/lib/adlint/{ld/metric.rb → exam/c_builtin/ld_metric.rb} +8 -3
  298. data/lib/adlint/lang.rb +2 -2
  299. data/lib/adlint/ld.rb +0 -2
  300. data/lib/adlint/ld/phase.rb +101 -101
  301. data/lib/adlint/message.rb +155 -98
  302. data/lib/adlint/metric.rb +0 -27
  303. data/lib/adlint/phase.rb +28 -3
  304. data/lib/adlint/report.rb +22 -12
  305. data/lib/adlint/traits.rb +97 -5
  306. data/lib/adlint/util.rb +100 -11
  307. data/lib/adlint/version.rb +5 -5
  308. data/share/doc/developers_guide_ja.html +3 -3
  309. data/share/doc/developers_guide_ja.texi +1 -1
  310. data/share/doc/users_guide_en.html +1817 -1648
  311. data/share/doc/users_guide_en.texi +202 -22
  312. data/share/doc/users_guide_ja.html +1836 -1663
  313. data/share/doc/users_guide_ja.texi +203 -20
  314. data/share/sample/bison-2.5/adlint/adlint_traits.yml +55 -2
  315. data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +47 -2
  316. data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +47 -2
  317. data/share/sample/ctags-5.8/adlint/adlint_traits.yml +47 -2
  318. data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +47 -2
  319. data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +47 -2
  320. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +47 -2
  321. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +47 -2
  322. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +47 -2
  323. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +47 -2
  324. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +47 -2
  325. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +47 -2
  326. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +47 -2
  327. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +47 -2
  328. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +47 -2
  329. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +47 -2
  330. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +47 -2
  331. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +47 -2
  332. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +47 -2
  333. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +47 -2
  334. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +47 -2
  335. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +47 -2
  336. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +47 -2
  337. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +47 -2
  338. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +47 -2
  339. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +47 -2
  340. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +47 -2
  341. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +47 -2
  342. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +47 -2
  343. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +47 -2
  344. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +47 -2
  345. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +47 -2
  346. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +47 -2
  347. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +47 -2
  348. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +47 -2
  349. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +47 -2
  350. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +47 -2
  351. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +47 -2
  352. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +47 -2
  353. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +47 -2
  354. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +47 -2
  355. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +47 -2
  356. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +47 -2
  357. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +47 -2
  358. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +47 -2
  359. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +47 -2
  360. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +47 -2
  361. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +47 -2
  362. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +47 -2
  363. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +47 -2
  364. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +47 -2
  365. data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +47 -2
  366. data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +47 -2
  367. data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +47 -2
  368. data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +47 -2
  369. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +47 -2
  370. data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +47 -2
  371. data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +47 -2
  372. data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +47 -2
  373. data/spec/conf.d/default_traits.yml +56 -3
  374. metadata +280 -94
  375. data/etc/mesg.d/en_US/messages.yml +0 -797
  376. data/etc/mesg.d/ja_JP/messages.yml +0 -797
@@ -4,7 +4,7 @@ Feature: W1039
4
4
  function call.
5
5
 
6
6
  Scenario: an `ll' in printf function call
7
- Given a target source named "W1039.c" with:
7
+ Given a target source named "fixture.c" with:
8
8
  """
9
9
  #include <stdio.h>
10
10
 
@@ -13,7 +13,7 @@ Feature: W1039
13
13
  printf("%lld", ll); /* W1039 */
14
14
  }
15
15
  """
16
- When I successfully run `adlint W1039.c` on noarch
16
+ When I successfully run `adlint fixture.c` on noarch
17
17
  Then the output should exactly match with:
18
18
  | mesg | line | column |
19
19
  | W0117 | 3 | 6 |
@@ -25,7 +25,7 @@ Feature: W1039
25
25
  | W0628 | 3 | 6 |
26
26
 
27
27
  Scenario: an `ll' in scanf function call
28
- Given a target source named "W1039.c" with:
28
+ Given a target source named "fixture.c" with:
29
29
  """
30
30
  #include <stdio.h>
31
31
 
@@ -35,7 +35,7 @@ Feature: W1039
35
35
  scanf("%lld", &ll); /* W1039 */
36
36
  }
37
37
  """
38
- When I successfully run `adlint W1039.c` on noarch
38
+ When I successfully run `adlint fixture.c` on noarch
39
39
  Then the output should exactly match with:
40
40
  | mesg | line | column |
41
41
  | W0117 | 3 | 6 |
@@ -46,7 +46,7 @@ Feature: W1039
46
46
  | W0628 | 3 | 6 |
47
47
 
48
48
  Scenario: an `ll' with one of conversion-specifiers in printf function call
49
- Given a target source named "W1039.c" with:
49
+ Given a target source named "fixture.c" with:
50
50
  """
51
51
  #include <stdio.h>
52
52
 
@@ -55,7 +55,7 @@ Feature: W1039
55
55
  printf("%d %lld %lu", i, ll, ul); /* W1039 */
56
56
  }
57
57
  """
58
- When I successfully run `adlint W1039.c` on noarch
58
+ When I successfully run `adlint fixture.c` on noarch
59
59
  Then the output should exactly match with:
60
60
  | mesg | line | column |
61
61
  | W0117 | 3 | 6 |
@@ -69,7 +69,7 @@ Feature: W1039
69
69
  | W0628 | 3 | 6 |
70
70
 
71
71
  Scenario: an `ll' with one of conversion-specifiers in scanf function call
72
- Given a target source named "W1039.c" with:
72
+ Given a target source named "fixture.c" with:
73
73
  """
74
74
  #include <stdio.h>
75
75
 
@@ -81,7 +81,7 @@ Feature: W1039
81
81
  scanf("%d %lld %lu", &i, &ll, &ul); /* W1039 */
82
82
  }
83
83
  """
84
- When I successfully run `adlint W1039.c` on noarch
84
+ When I successfully run `adlint fixture.c` on noarch
85
85
  Then the output should exactly match with:
86
86
  | mesg | line | column |
87
87
  | W0117 | 3 | 6 |
@@ -92,7 +92,7 @@ Feature: W1039
92
92
  | W0628 | 3 | 6 |
93
93
 
94
94
  Scenario: an `ll' with conversion-specifier `i' in printf function call
95
- Given a target source named "W1039.c" with:
95
+ Given a target source named "fixture.c" with:
96
96
  """
97
97
  #include <stdio.h>
98
98
 
@@ -101,7 +101,7 @@ Feature: W1039
101
101
  printf("%lli", ll); /* W1039 */
102
102
  }
103
103
  """
104
- When I successfully run `adlint W1039.c` on noarch
104
+ When I successfully run `adlint fixture.c` on noarch
105
105
  Then the output should exactly match with:
106
106
  | mesg | line | column |
107
107
  | W0117 | 3 | 6 |
@@ -113,7 +113,7 @@ Feature: W1039
113
113
  | W0628 | 3 | 6 |
114
114
 
115
115
  Scenario: an `ll' with conversion-specifier `o' in printf function call
116
- Given a target source named "W1039.c" with:
116
+ Given a target source named "fixture.c" with:
117
117
  """
118
118
  #include <stdio.h>
119
119
 
@@ -122,7 +122,7 @@ Feature: W1039
122
122
  printf("%llo", ull); /* W1039 */
123
123
  }
124
124
  """
125
- When I successfully run `adlint W1039.c` on noarch
125
+ When I successfully run `adlint fixture.c` on noarch
126
126
  Then the output should exactly match with:
127
127
  | mesg | line | column |
128
128
  | W0117 | 3 | 6 |
@@ -134,7 +134,7 @@ Feature: W1039
134
134
  | W0628 | 3 | 6 |
135
135
 
136
136
  Scenario: an `ll' with conversion-specifier `u' in printf function call
137
- Given a target source named "W1039.c" with:
137
+ Given a target source named "fixture.c" with:
138
138
  """
139
139
  #include <stdio.h>
140
140
 
@@ -143,7 +143,7 @@ Feature: W1039
143
143
  printf("%llu", ull); /* W1039 */
144
144
  }
145
145
  """
146
- When I successfully run `adlint W1039.c` on noarch
146
+ When I successfully run `adlint fixture.c` on noarch
147
147
  Then the output should exactly match with:
148
148
  | mesg | line | column |
149
149
  | W0117 | 3 | 6 |
@@ -155,7 +155,7 @@ Feature: W1039
155
155
  | W0628 | 3 | 6 |
156
156
 
157
157
  Scenario: an `ll' with conversion-specifier `x' in printf function call
158
- Given a target source named "W1039.c" with:
158
+ Given a target source named "fixture.c" with:
159
159
  """
160
160
  #include <stdio.h>
161
161
 
@@ -164,7 +164,7 @@ Feature: W1039
164
164
  printf("%llx", ull); /* W1039 */
165
165
  }
166
166
  """
167
- When I successfully run `adlint W1039.c` on noarch
167
+ When I successfully run `adlint fixture.c` on noarch
168
168
  Then the output should exactly match with:
169
169
  | mesg | line | column |
170
170
  | W0117 | 3 | 6 |
@@ -176,7 +176,7 @@ Feature: W1039
176
176
  | W0628 | 3 | 6 |
177
177
 
178
178
  Scenario: an `ll' with conversion-specifier `X' in printf function call
179
- Given a target source named "W1039.c" with:
179
+ Given a target source named "fixture.c" with:
180
180
  """
181
181
  #include <stdio.h>
182
182
 
@@ -185,7 +185,7 @@ Feature: W1039
185
185
  printf("%llX", ull); /* W1039 */
186
186
  }
187
187
  """
188
- When I successfully run `adlint W1039.c` on noarch
188
+ When I successfully run `adlint fixture.c` on noarch
189
189
  Then the output should exactly match with:
190
190
  | mesg | line | column |
191
191
  | W0117 | 3 | 6 |
@@ -197,7 +197,7 @@ Feature: W1039
197
197
  | W0628 | 3 | 6 |
198
198
 
199
199
  Scenario: an `ll' with conversion-specifier `d' in fprintf function call
200
- Given a target source named "W1039.c" with:
200
+ Given a target source named "fixture.c" with:
201
201
  """
202
202
  #include <stdio.h>
203
203
 
@@ -206,7 +206,7 @@ Feature: W1039
206
206
  fprintf(stdout, "%lld", ll); /* W1039 */
207
207
  }
208
208
  """
209
- When I successfully run `adlint W1039.c` on noarch
209
+ When I successfully run `adlint fixture.c` on noarch
210
210
  Then the output should exactly match with:
211
211
  | mesg | line | column |
212
212
  | W0117 | 3 | 6 |
@@ -218,7 +218,7 @@ Feature: W1039
218
218
  | W0628 | 3 | 6 |
219
219
 
220
220
  Scenario: multiple `ll' in printf function call
221
- Given a target source named "W1039.c" with:
221
+ Given a target source named "fixture.c" with:
222
222
  """
223
223
  #include <stdio.h>
224
224
 
@@ -227,7 +227,7 @@ Feature: W1039
227
227
  printf("%lld %llu", ll, ull); /* W1039 */
228
228
  }
229
229
  """
230
- When I successfully run `adlint W1039.c` on noarch
230
+ When I successfully run `adlint fixture.c` on noarch
231
231
  Then the output should exactly match with:
232
232
  | mesg | line | column |
233
233
  | W0117 | 3 | 6 |
@@ -242,7 +242,7 @@ Feature: W1039
242
242
  | W0628 | 3 | 6 |
243
243
 
244
244
  Scenario: multiple `ll' in scanf function call
245
- Given a target source named "W1039.c" with:
245
+ Given a target source named "fixture.c" with:
246
246
  """
247
247
  #include <stdio.h>
248
248
 
@@ -253,7 +253,7 @@ Feature: W1039
253
253
  scanf("%lld %llu", &ll, &ull); /* W1039 */
254
254
  }
255
255
  """
256
- When I successfully run `adlint W1039.c` on noarch
256
+ When I successfully run `adlint fixture.c` on noarch
257
257
  Then the output should exactly match with:
258
258
  | mesg | line | column |
259
259
  | W0117 | 3 | 6 |
@@ -3,7 +3,7 @@ Feature: W1040
3
3
  W1040 detects that extra tokens after the preprocessing directive.
4
4
 
5
5
  Scenario: extra tokens after #endif directive
6
- Given a target source named "W1040.c" with:
6
+ Given a target source named "fixture.c" with:
7
7
  """
8
8
  #define TEST
9
9
 
@@ -17,14 +17,14 @@ Feature: W1040
17
17
  int i = 0;
18
18
  #endif TEST /* W1040 */
19
19
  """
20
- When I successfully run `adlint W1040.c` on noarch
20
+ When I successfully run `adlint fixture.c` on noarch
21
21
  Then the output should exactly match with:
22
22
  | mesg | line | column |
23
23
  | W1040 | 8 | 8 |
24
24
  | W1040 | 11 | 8 |
25
25
 
26
26
  Scenario: extra tokens after #endif directive in an invisible branch
27
- Given a target source named "W1040.c" with:
27
+ Given a target source named "fixture.c" with:
28
28
  """
29
29
  #ifdef TEST
30
30
  #if defined(CASE_1)
@@ -36,14 +36,14 @@ Feature: W1040
36
36
  int i = 0;
37
37
  #endif TEST /* W1040 */
38
38
  """
39
- When I successfully run `adlint W1040.c` on noarch
39
+ When I successfully run `adlint fixture.c` on noarch
40
40
  Then the output should exactly match with:
41
41
  | mesg | line | column |
42
42
  | W1040 | 9 | 8 |
43
43
  | W0117 | 8 | 5 |
44
44
 
45
45
  Scenario: extra tokens after #else directive
46
- Given a target source named "W1040.c" with:
46
+ Given a target source named "fixture.c" with:
47
47
  """
48
48
  #define TEST
49
49
 
@@ -59,7 +59,7 @@ Feature: W1040
59
59
  int i = 0;
60
60
  #endif TEST /* W1040 */
61
61
  """
62
- When I successfully run `adlint W1040.c` on noarch
62
+ When I successfully run `adlint fixture.c` on noarch
63
63
  Then the output should exactly match with:
64
64
  | mesg | line | column |
65
65
  | W1040 | 8 | 7 |
@@ -67,7 +67,7 @@ Feature: W1040
67
67
  | W0117 | 9 | 5 |
68
68
 
69
69
  Scenario: extra tokens after #else directive in an invisible branch
70
- Given a target source named "W1040.c" with:
70
+ Given a target source named "fixture.c" with:
71
71
  """
72
72
  #ifdef TEST
73
73
  #if defined(CASE_1)
@@ -81,7 +81,7 @@ Feature: W1040
81
81
  int i = 0;
82
82
  #endif
83
83
  """
84
- When I successfully run `adlint W1040.c` on noarch
84
+ When I successfully run `adlint fixture.c` on noarch
85
85
  Then the output should exactly match with:
86
86
  | mesg | line | column |
87
87
  | W0117 | 10 | 5 |
@@ -3,11 +3,11 @@ Feature: W1041
3
3
  W1041 detects that a non-standard preprocessing directive is found.
4
4
 
5
5
  Scenario: a compiler-specific preprocessing directive
6
- Given a target source named "W1041.c" with:
6
+ Given a target source named "fixture.c" with:
7
7
  """
8
8
  #compiler_specific_extension 1 2.3 "4" /* W1041 */
9
9
  """
10
- When I successfully run `adlint W1041.c` on noarch
10
+ When I successfully run `adlint fixture.c` on noarch
11
11
  Then the output should exactly match with:
12
12
  | mesg | line | column |
13
13
  | W1041 | 1 | 1 |
@@ -4,14 +4,14 @@ Feature: W1046
4
4
  `\' character.
5
5
 
6
6
  Scenario: illformed newline escape in #define directive
7
- Given a target source named "W1046.c" with:
7
+ Given a target source named "fixture.c" with:
8
8
  """
9
9
  #define FOO(a, b) /* OK */ \
10
10
  ( /* W1046 */ \
11
11
  (a) + (b) /* W1046 */ \
12
12
  )
13
13
  """
14
- When I successfully run `adlint W1046.c` on noarch
14
+ When I successfully run `adlint fixture.c` on noarch
15
15
  Then the output should exactly match with:
16
16
  | mesg | line | column |
17
17
  | W1046 | 2 | 33 |
@@ -20,14 +20,14 @@ Feature: W1046
20
20
  | W0443 | 1 | 1 |
21
21
 
22
22
  Scenario: illformed newline escape in declaration
23
- Given a target source named "W1046.c" with:
23
+ Given a target source named "fixture.c" with:
24
24
  """
25
25
  const char *str = "foo" /* OK */ \
26
26
  "bar" /* W1046 */ \
27
27
  "baz" /* W1046 */ \
28
28
  "qux";
29
29
  """
30
- When I successfully run `adlint W1046.c` on noarch
30
+ When I successfully run `adlint fixture.c` on noarch
31
31
  Then the output should exactly match with:
32
32
  | mesg | line | column |
33
33
  | W1046 | 2 | 41 |
@@ -36,7 +36,7 @@ Feature: W1046
36
36
  | W0947 | 1 | 19 |
37
37
 
38
38
  Scenario: illformed newline escape in expression
39
- Given a target source named "W1046.c" with:
39
+ Given a target source named "fixture.c" with:
40
40
  """
41
41
  static void bar(const char *str);
42
42
 
@@ -48,7 +48,7 @@ Feature: W1046
48
48
  "qux");
49
49
  }
50
50
  """
51
- When I successfully run `adlint W1046.c` on noarch
51
+ When I successfully run `adlint fixture.c` on noarch
52
52
  Then the output should exactly match with:
53
53
  | mesg | line | column |
54
54
  | W1046 | 6 | 31 |
@@ -4,7 +4,7 @@ Feature: W1047
4
4
  non-constant expressions.
5
5
 
6
6
  Scenario: initializing array with non-constant expressions
7
- Given a target source named "W1047.c" with:
7
+ Given a target source named "fixture.c" with:
8
8
  """
9
9
  int foo(int i, int j)
10
10
  {
@@ -12,7 +12,7 @@ Feature: W1047
12
12
  return a[1];
13
13
  }
14
14
  """
15
- When I successfully run `adlint W1047.c` on noarch
15
+ When I successfully run `adlint fixture.c` on noarch
16
16
  Then the output should exactly match with:
17
17
  | mesg | line | column |
18
18
  | W0117 | 1 | 5 |
@@ -23,7 +23,7 @@ Feature: W1047
23
23
  | W0628 | 1 | 5 |
24
24
 
25
25
  Scenario: initializing struct with non-constant expressions
26
- Given a target source named "W1047.c" with:
26
+ Given a target source named "fixture.c" with:
27
27
  """
28
28
  struct Coord {
29
29
  int x;
@@ -37,7 +37,7 @@ Feature: W1047
37
37
  return c.y;
38
38
  }
39
39
  """
40
- When I successfully run `adlint W1047.c` on noarch
40
+ When I successfully run `adlint fixture.c` on noarch
41
41
  Then the output should exactly match with:
42
42
  | mesg | line | column |
43
43
  | W0117 | 7 | 5 |
@@ -48,7 +48,7 @@ Feature: W1047
48
48
  | W0628 | 7 | 5 |
49
49
 
50
50
  Scenario: initializing union with non-constant expressions
51
- Given a target source named "W1047.c" with:
51
+ Given a target source named "fixture.c" with:
52
52
  """
53
53
  struct Color {
54
54
  int r;
@@ -75,7 +75,7 @@ Feature: W1047
75
75
  return ev.body.color.g;
76
76
  }
77
77
  """
78
- When I successfully run `adlint W1047.c` on noarch
78
+ When I successfully run `adlint fixture.c` on noarch
79
79
  Then the output should exactly match with:
80
80
  | mesg | line | column |
81
81
  | W0117 | 20 | 5 |
@@ -87,7 +87,7 @@ Feature: W1047
87
87
  | W0628 | 20 | 5 |
88
88
 
89
89
  Scenario: initializing array with all constant expressions
90
- Given a target source named "W1047.c" with:
90
+ Given a target source named "fixture.c" with:
91
91
  """
92
92
  int foo(void)
93
93
  {
@@ -95,7 +95,7 @@ Feature: W1047
95
95
  return a[1];
96
96
  }
97
97
  """
98
- When I successfully run `adlint W1047.c` on noarch
98
+ When I successfully run `adlint fixture.c` on noarch
99
99
  Then the output should exactly match with:
100
100
  | mesg | line | column |
101
101
  | W0117 | 1 | 5 |
@@ -103,7 +103,7 @@ Feature: W1047
103
103
  | W0628 | 1 | 5 |
104
104
 
105
105
  Scenario: initializing struct with all constant expressions
106
- Given a target source named "W1047.c" with:
106
+ Given a target source named "fixture.c" with:
107
107
  """
108
108
  struct Coord {
109
109
  int x;
@@ -117,7 +117,7 @@ Feature: W1047
117
117
  return c.y;
118
118
  }
119
119
  """
120
- When I successfully run `adlint W1047.c` on noarch
120
+ When I successfully run `adlint fixture.c` on noarch
121
121
  Then the output should exactly match with:
122
122
  | mesg | line | column |
123
123
  | W0117 | 7 | 5 |
@@ -125,7 +125,7 @@ Feature: W1047
125
125
  | W0628 | 7 | 5 |
126
126
 
127
127
  Scenario: initializing union with all constant expressions
128
- Given a target source named "W1047.c" with:
128
+ Given a target source named "fixture.c" with:
129
129
  """
130
130
  struct Color {
131
131
  int r;
@@ -152,7 +152,7 @@ Feature: W1047
152
152
  return ev.body.color.g;
153
153
  }
154
154
  """
155
- When I successfully run `adlint W1047.c` on noarch
155
+ When I successfully run `adlint fixture.c` on noarch
156
156
  Then the output should exactly match with:
157
157
  | mesg | line | column |
158
158
  | W0117 | 20 | 5 |
@@ -4,14 +4,14 @@ Feature: W1052
4
4
  overflow.
5
5
 
6
6
  Scenario: multiplication of two arbitrary `unsigned char' values
7
- Given a target source named "W1052.c" with:
7
+ Given a target source named "fixture.c" with:
8
8
  """
9
9
  static unsigned int foo(unsigned char a, unsigned char b)
10
10
  {
11
11
  return a * b; /* W1052 should not be output */
12
12
  }
13
13
  """
14
- When I successfully run `adlint W1052.c` on noarch
14
+ When I successfully run `adlint fixture.c` on noarch
15
15
  Then the output should exactly match with:
16
16
  | mesg | line | column |
17
17
  | W1076 | 1 | 21 |
@@ -27,14 +27,14 @@ Feature: W1052
27
27
  | W0628 | 1 | 21 |
28
28
 
29
29
  Scenario: multiplication of two arbitrary `unsigned short' values
30
- Given a target source named "W1052.c" with:
30
+ Given a target source named "fixture.c" with:
31
31
  """
32
32
  static unsigned int foo(unsigned short a, unsigned short b)
33
33
  {
34
34
  return a * b; /* W1052 */
35
35
  }
36
36
  """
37
- When I successfully run `adlint W1052.c` on noarch
37
+ When I successfully run `adlint fixture.c` on noarch
38
38
  Then the output should exactly match with:
39
39
  | mesg | line | column |
40
40
  | W1076 | 1 | 21 |
@@ -49,14 +49,14 @@ Feature: W1052
49
49
  | W0628 | 1 | 21 |
50
50
 
51
51
  Scenario: multiplication of two arbitrary `unsigned int' values
52
- Given a target source named "W1052.c" with:
52
+ Given a target source named "fixture.c" with:
53
53
  """
54
54
  static unsigned int foo(unsigned int a, unsigned int b)
55
55
  {
56
56
  return a * b; /* W1052 */
57
57
  }
58
58
  """
59
- When I successfully run `adlint W1052.c` on noarch
59
+ When I successfully run `adlint fixture.c` on noarch
60
60
  Then the output should exactly match with:
61
61
  | mesg | line | column |
62
62
  | W1076 | 1 | 21 |