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,11 +4,19 @@
4
4
  # / __ |/ /_/ / /___/ / /| / / /
5
5
  # /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2012, OGIS-RI Co.,Ltd.
6
6
  #
7
- # Traits file generated by adlintize 1.6.0 at 2012-04-23 21:48:10 +0900.
7
+ # Traits file generated by adlintize 1.19.0 at 2012-04-23 21:48:10 +0900.
8
8
 
9
9
  # Schema version of the traits file.
10
10
  # DO NOT EDIT MANUALLY!
11
- version: "1.0.0"
11
+ version: "2.0.0"
12
+
13
+ # List of names of source code examination packages.
14
+ #
15
+ # "c_builtin" is a builtin source code examination package for C language.
16
+ # You can install optional examination packages and append (or replace) this
17
+ # list to specify which examination packages are to be run.
18
+ exam_packages:
19
+ - "c_builtin"
12
20
 
13
21
  #
14
22
  # Project specific traits section
@@ -209,8 +217,53 @@ message_traits:
209
217
  # Please help to translate the message catalog into your language.
210
218
  language: "ja_JP"
211
219
 
220
+ # Output messages with category and severity information?
221
+ message_with_class: false
222
+
223
+ # Warn only files in the specified directory. If omitted, all files (such as
224
+ # system headers or 3rd-party library headers) will be warned.
225
+ warn_only_files_in:
226
+
227
+ # Enable translation-unit specific code check selection?
228
+ individual_selection: true
229
+
230
+ # Project-wide code check exclusion settings.
231
+ # Ex.
232
+ # exclusion:
233
+ # categories:
234
+ # - "REL"
235
+ # - "PRT"
236
+ # severities: "[ABC][5-9][0-9]"
237
+ # messages:
238
+ # W0001: "c_builtin"
239
+ # W0002: "c_ansi"
240
+ exclusion:
241
+
242
+ # Project-wide code check inclusion settings.
243
+ # Ex.
244
+ # inclusion:
245
+ # messages:
246
+ # W0001: "c_builtin"
247
+ # W0002: "c_ansi"
248
+ inclusion:
249
+
212
250
  # Message text replacement.
213
251
  # Ex.
214
252
  # change_list:
215
- # W9999: "Your custom message for the warning of #9999."
253
+ # W9999:
254
+ # package: "c_builtin"
255
+ # classes:
256
+ # - "REL:A10"
257
+ # - "PRT:B20"
258
+ # format: "Your custom message for the warning of W9999."
259
+ # X9999:
260
+ # package: "core"
261
+ # classes:
262
+ # - "ERR:X99"
263
+ # format: "Your custom message for the warning of X9999."
264
+ # E9999:
265
+ # package: "core"
266
+ # classes:
267
+ # - "ERR:X99"
268
+ # format: "Your custom message for the warning of E9999."
216
269
  change_list:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.6
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-14 00:00:00.000000000 Z
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'AdLint is a source code static analyzer.
15
15
 
@@ -59,96 +59,279 @@ files:
59
59
  - etc/conf.d/noarch/adlint_all_bat.erb
60
60
  - etc/conf.d/noarch/adlint_all_sh.erb
61
61
  - etc/conf.d/noarch/pinit.erb
62
- - etc/mesg.d/en_US/messages.yml
63
- - etc/mesg.d/ja_JP/messages.yml
64
- - features/message_detection/E0013.feature
65
- - features/message_detection/W0001.feature
66
- - features/message_detection/W0002.feature
67
- - features/message_detection/W0003.feature
68
- - features/message_detection/W0007.feature
69
- - features/message_detection/W0010.feature
70
- - features/message_detection/W0013.feature
71
- - features/message_detection/W0093.feature
72
- - features/message_detection/W0104.feature
73
- - features/message_detection/W0109.feature
74
- - features/message_detection/W0583.feature
75
- - features/message_detection/W0606.feature
76
- - features/message_detection/W0641.feature
77
- - features/message_detection/W0643.feature
78
- - features/message_detection/W0644.feature
79
- - features/message_detection/W0645.feature
80
- - features/message_detection/W0646.feature
81
- - features/message_detection/W0649.feature
82
- - features/message_detection/W0650.feature
83
- - features/message_detection/W0687.feature
84
- - features/message_detection/W0688.feature
85
- - features/message_detection/W0689.feature
86
- - features/message_detection/W0690.feature
87
- - features/message_detection/W0691.feature
88
- - features/message_detection/W0692.feature
89
- - features/message_detection/W0694.feature
90
- - features/message_detection/W0697.feature
91
- - features/message_detection/W0698.feature
92
- - features/message_detection/W0699.feature
93
- - features/message_detection/W0700.feature
94
- - features/message_detection/W0703.feature
95
- - features/message_detection/W0705.feature
96
- - features/message_detection/W0707.feature
97
- - features/message_detection/W0711.feature
98
- - features/message_detection/W0712.feature
99
- - features/message_detection/W0713.feature
100
- - features/message_detection/W0714.feature
101
- - features/message_detection/W0715.feature
102
- - features/message_detection/W0716.feature
103
- - features/message_detection/W0717.feature
104
- - features/message_detection/W0718.feature
105
- - features/message_detection/W0719.feature
106
- - features/message_detection/W0723.feature
107
- - features/message_detection/W0732.feature
108
- - features/message_detection/W0733.feature
109
- - features/message_detection/W0734.feature
110
- - features/message_detection/W0735.feature
111
- - features/message_detection/W0745.feature
112
- - features/message_detection/W0780.feature
113
- - features/message_detection/W0783.feature
114
- - features/message_detection/W0792.feature
115
- - features/message_detection/W0793.feature
116
- - features/message_detection/W0794.feature
117
- - features/message_detection/W0805.feature
118
- - features/message_detection/W0811.feature
119
- - features/message_detection/W0830.feature
120
- - features/message_detection/W0833.feature
121
- - features/message_detection/W0834.feature
122
- - features/message_detection/W1026.feature
123
- - features/message_detection/W1031.feature
124
- - features/message_detection/W1039.feature
125
- - features/message_detection/W1040.feature
126
- - features/message_detection/W1041.feature
127
- - features/message_detection/W1046.feature
128
- - features/message_detection/W1047.feature
129
- - features/message_detection/W1052.feature
130
- - features/message_detection/W1066.feature
131
- - features/message_detection/W1067.feature
132
- - features/message_detection/W1068.feature
133
- - features/message_detection/W1069.feature
134
- - features/message_detection/W1070.feature
135
- - features/message_detection/W1071.feature
136
- - features/message_detection/W1072.feature
137
- - features/message_detection/W1073.feature
138
- - features/message_detection/W1074.feature
139
- - features/message_detection/W1075.feature
140
- - features/message_detection/W1076.feature
141
- - features/message_detection/W1077.feature
142
- - features/message_detection/W9001.feature
143
- - features/message_detection/W9003.feature
144
- - features/step_definitions/message_detection_steps.rb
62
+ - etc/mesg.d/c_builtin/en_US/messages.yml
63
+ - etc/mesg.d/c_builtin/ja_JP/messages.yml
64
+ - etc/mesg.d/core/en_US/messages.yml
65
+ - etc/mesg.d/core/ja_JP/messages.yml
66
+ - features/code_check/E0013.feature
67
+ - features/code_check/W0001.feature
68
+ - features/code_check/W0002.feature
69
+ - features/code_check/W0003.feature
70
+ - features/code_check/W0007.feature
71
+ - features/code_check/W0010.feature
72
+ - features/code_check/W0013.feature
73
+ - features/code_check/W0016.feature
74
+ - features/code_check/W0017.feature
75
+ - features/code_check/W0025.feature
76
+ - features/code_check/W0026.feature
77
+ - features/code_check/W0093.feature
78
+ - features/code_check/W0104.feature
79
+ - features/code_check/W0109.feature
80
+ - features/code_check/W0119.feature
81
+ - features/code_check/W0120.feature
82
+ - features/code_check/W0121.feature
83
+ - features/code_check/W0122.feature
84
+ - features/code_check/W0123.feature
85
+ - features/code_check/W0124.feature
86
+ - features/code_check/W0125.feature
87
+ - features/code_check/W0126.feature
88
+ - features/code_check/W0127.feature
89
+ - features/code_check/W0128.feature
90
+ - features/code_check/W0129.feature
91
+ - features/code_check/W0130.feature
92
+ - features/code_check/W0131.feature
93
+ - features/code_check/W0132.feature
94
+ - features/code_check/W0133.feature
95
+ - features/code_check/W0134.feature
96
+ - features/code_check/W0135.feature
97
+ - features/code_check/W0136.feature
98
+ - features/code_check/W0137.feature
99
+ - features/code_check/W0138.feature
100
+ - features/code_check/W0139.feature
101
+ - features/code_check/W0140.feature
102
+ - features/code_check/W0141.feature
103
+ - features/code_check/W0142.feature
104
+ - features/code_check/W0143.feature
105
+ - features/code_check/W0144.feature
106
+ - features/code_check/W0145.feature
107
+ - features/code_check/W0146.feature
108
+ - features/code_check/W0147.feature
109
+ - features/code_check/W0148.feature
110
+ - features/code_check/W0149.feature
111
+ - features/code_check/W0150.feature
112
+ - features/code_check/W0151.feature
113
+ - features/code_check/W0152.feature
114
+ - features/code_check/W0153.feature
115
+ - features/code_check/W0154.feature
116
+ - features/code_check/W0155.feature
117
+ - features/code_check/W0156.feature
118
+ - features/code_check/W0157.feature
119
+ - features/code_check/W0158.feature
120
+ - features/code_check/W0159.feature
121
+ - features/code_check/W0160.feature
122
+ - features/code_check/W0161.feature
123
+ - features/code_check/W0162.feature
124
+ - features/code_check/W0163.feature
125
+ - features/code_check/W0164.feature
126
+ - features/code_check/W0165.feature
127
+ - features/code_check/W0166.feature
128
+ - features/code_check/W0167.feature
129
+ - features/code_check/W0168.feature
130
+ - features/code_check/W0169.feature
131
+ - features/code_check/W0170.feature
132
+ - features/code_check/W0171.feature
133
+ - features/code_check/W0172.feature
134
+ - features/code_check/W0173.feature
135
+ - features/code_check/W0174.feature
136
+ - features/code_check/W0175.feature
137
+ - features/code_check/W0176.feature
138
+ - features/code_check/W0177.feature
139
+ - features/code_check/W0178.feature
140
+ - features/code_check/W0179.feature
141
+ - features/code_check/W0180.feature
142
+ - features/code_check/W0181.feature
143
+ - features/code_check/W0182.feature
144
+ - features/code_check/W0183.feature
145
+ - features/code_check/W0184.feature
146
+ - features/code_check/W0185.feature
147
+ - features/code_check/W0186.feature
148
+ - features/code_check/W0187.feature
149
+ - features/code_check/W0188.feature
150
+ - features/code_check/W0189.feature
151
+ - features/code_check/W0190.feature
152
+ - features/code_check/W0191.feature
153
+ - features/code_check/W0192.feature
154
+ - features/code_check/W0193.feature
155
+ - features/code_check/W0194.feature
156
+ - features/code_check/W0195.feature
157
+ - features/code_check/W0196.feature
158
+ - features/code_check/W0197.feature
159
+ - features/code_check/W0198.feature
160
+ - features/code_check/W0199.feature
161
+ - features/code_check/W0200.feature
162
+ - features/code_check/W0201.feature
163
+ - features/code_check/W0202.feature
164
+ - features/code_check/W0203.feature
165
+ - features/code_check/W0204.feature
166
+ - features/code_check/W0205.feature
167
+ - features/code_check/W0206.feature
168
+ - features/code_check/W0207.feature
169
+ - features/code_check/W0208.feature
170
+ - features/code_check/W0209.feature
171
+ - features/code_check/W0210.feature
172
+ - features/code_check/W0211.feature
173
+ - features/code_check/W0212.feature
174
+ - features/code_check/W0213.feature
175
+ - features/code_check/W0214.feature
176
+ - features/code_check/W0215.feature
177
+ - features/code_check/W0216.feature
178
+ - features/code_check/W0217.feature
179
+ - features/code_check/W0218.feature
180
+ - features/code_check/W0219.feature
181
+ - features/code_check/W0220.feature
182
+ - features/code_check/W0221.feature
183
+ - features/code_check/W0222.feature
184
+ - features/code_check/W0223.feature
185
+ - features/code_check/W0224.feature
186
+ - features/code_check/W0225.feature
187
+ - features/code_check/W0226.feature
188
+ - features/code_check/W0227.feature
189
+ - features/code_check/W0228.feature
190
+ - features/code_check/W0229.feature
191
+ - features/code_check/W0230.feature
192
+ - features/code_check/W0231.feature
193
+ - features/code_check/W0232.feature
194
+ - features/code_check/W0233.feature
195
+ - features/code_check/W0234.feature
196
+ - features/code_check/W0235.feature
197
+ - features/code_check/W0236.feature
198
+ - features/code_check/W0237.feature
199
+ - features/code_check/W0238.feature
200
+ - features/code_check/W0239.feature
201
+ - features/code_check/W0240.feature
202
+ - features/code_check/W0241.feature
203
+ - features/code_check/W0242.feature
204
+ - features/code_check/W0243.feature
205
+ - features/code_check/W0244.feature
206
+ - features/code_check/W0245.feature
207
+ - features/code_check/W0246.feature
208
+ - features/code_check/W0247.feature
209
+ - features/code_check/W0248.feature
210
+ - features/code_check/W0249.feature
211
+ - features/code_check/W0250.feature
212
+ - features/code_check/W0251.feature
213
+ - features/code_check/W0252.feature
214
+ - features/code_check/W0253.feature
215
+ - features/code_check/W0254.feature
216
+ - features/code_check/W0477.feature
217
+ - features/code_check/W0478.feature
218
+ - features/code_check/W0479.feature
219
+ - features/code_check/W0480.feature
220
+ - features/code_check/W0481.feature
221
+ - features/code_check/W0482.feature
222
+ - features/code_check/W0483.feature
223
+ - features/code_check/W0573.feature
224
+ - features/code_check/W0583.feature
225
+ - features/code_check/W0606.feature
226
+ - features/code_check/W0641.feature
227
+ - features/code_check/W0643.feature
228
+ - features/code_check/W0644.feature
229
+ - features/code_check/W0645.feature
230
+ - features/code_check/W0646.feature
231
+ - features/code_check/W0649.feature
232
+ - features/code_check/W0650.feature
233
+ - features/code_check/W0685.feature
234
+ - features/code_check/W0686.feature
235
+ - features/code_check/W0687.feature
236
+ - features/code_check/W0688.feature
237
+ - features/code_check/W0689.feature
238
+ - features/code_check/W0690.feature
239
+ - features/code_check/W0691.feature
240
+ - features/code_check/W0692.feature
241
+ - features/code_check/W0694.feature
242
+ - features/code_check/W0695.feature
243
+ - features/code_check/W0697.feature
244
+ - features/code_check/W0698.feature
245
+ - features/code_check/W0699.feature
246
+ - features/code_check/W0700.feature
247
+ - features/code_check/W0703.feature
248
+ - features/code_check/W0705.feature
249
+ - features/code_check/W0707.feature
250
+ - features/code_check/W0711.feature
251
+ - features/code_check/W0712.feature
252
+ - features/code_check/W0713.feature
253
+ - features/code_check/W0714.feature
254
+ - features/code_check/W0715.feature
255
+ - features/code_check/W0716.feature
256
+ - features/code_check/W0717.feature
257
+ - features/code_check/W0718.feature
258
+ - features/code_check/W0719.feature
259
+ - features/code_check/W0723.feature
260
+ - features/code_check/W0726.feature
261
+ - features/code_check/W0732.feature
262
+ - features/code_check/W0733.feature
263
+ - features/code_check/W0734.feature
264
+ - features/code_check/W0735.feature
265
+ - features/code_check/W0745.feature
266
+ - features/code_check/W0747.feature
267
+ - features/code_check/W0748.feature
268
+ - features/code_check/W0749.feature
269
+ - features/code_check/W0750.feature
270
+ - features/code_check/W0751.feature
271
+ - features/code_check/W0752.feature
272
+ - features/code_check/W0753.feature
273
+ - features/code_check/W0754.feature
274
+ - features/code_check/W0755.feature
275
+ - features/code_check/W0756.feature
276
+ - features/code_check/W0757.feature
277
+ - features/code_check/W0758.feature
278
+ - features/code_check/W0759.feature
279
+ - features/code_check/W0760.feature
280
+ - features/code_check/W0761.feature
281
+ - features/code_check/W0762.feature
282
+ - features/code_check/W0763.feature
283
+ - features/code_check/W0764.feature
284
+ - features/code_check/W0765.feature
285
+ - features/code_check/W0766.feature
286
+ - features/code_check/W0767.feature
287
+ - features/code_check/W0768.feature
288
+ - features/code_check/W0769.feature
289
+ - features/code_check/W0780.feature
290
+ - features/code_check/W0781.feature
291
+ - features/code_check/W0783.feature
292
+ - features/code_check/W0792.feature
293
+ - features/code_check/W0793.feature
294
+ - features/code_check/W0794.feature
295
+ - features/code_check/W0801.feature
296
+ - features/code_check/W0805.feature
297
+ - features/code_check/W0806.feature
298
+ - features/code_check/W0807.feature
299
+ - features/code_check/W0808.feature
300
+ - features/code_check/W0809.feature
301
+ - features/code_check/W0811.feature
302
+ - features/code_check/W0830.feature
303
+ - features/code_check/W0833.feature
304
+ - features/code_check/W0834.feature
305
+ - features/code_check/W1026.feature
306
+ - features/code_check/W1030.feature
307
+ - features/code_check/W1031.feature
308
+ - features/code_check/W1039.feature
309
+ - features/code_check/W1040.feature
310
+ - features/code_check/W1041.feature
311
+ - features/code_check/W1046.feature
312
+ - features/code_check/W1047.feature
313
+ - features/code_check/W1052.feature
314
+ - features/code_check/W1066.feature
315
+ - features/code_check/W1067.feature
316
+ - features/code_check/W1068.feature
317
+ - features/code_check/W1069.feature
318
+ - features/code_check/W1070.feature
319
+ - features/code_check/W1071.feature
320
+ - features/code_check/W1072.feature
321
+ - features/code_check/W1073.feature
322
+ - features/code_check/W1074.feature
323
+ - features/code_check/W1075.feature
324
+ - features/code_check/W1076.feature
325
+ - features/code_check/W1077.feature
326
+ - features/code_check/W9001.feature
327
+ - features/code_check/W9003.feature
328
+ - features/step_definitions/code_check_steps.rb
145
329
  - features/support/env.rb
146
330
  - lib/adlint.rb
147
331
  - lib/adlint/analyzer.rb
148
332
  - lib/adlint/c.rb
149
333
  - lib/adlint/c/branch.rb
150
334
  - lib/adlint/c/builtin.rb
151
- - lib/adlint/c/code.rb
152
335
  - lib/adlint/c/const.rb
153
336
  - lib/adlint/c/conv.rb
154
337
  - lib/adlint/c/ctrlexpr.rb
@@ -160,9 +343,6 @@ files:
160
343
  - lib/adlint/c/interp.rb
161
344
  - lib/adlint/c/lexer.rb
162
345
  - lib/adlint/c/mediator.rb
163
- - lib/adlint/c/message.rb
164
- - lib/adlint/c/message_shima.rb
165
- - lib/adlint/c/metric.rb
166
346
  - lib/adlint/c/object.rb
167
347
  - lib/adlint/c/operator.rb
168
348
  - lib/adlint/c/option.rb
@@ -180,14 +360,11 @@ files:
180
360
  - lib/adlint/code.rb
181
361
  - lib/adlint/cpp.rb
182
362
  - lib/adlint/cpp/asm.rb
183
- - lib/adlint/cpp/code.rb
184
363
  - lib/adlint/cpp/constexpr.rb
185
364
  - lib/adlint/cpp/constexpr.y
186
365
  - lib/adlint/cpp/eval.rb
187
366
  - lib/adlint/cpp/lexer.rb
188
367
  - lib/adlint/cpp/macro.rb
189
- - lib/adlint/cpp/message.rb
190
- - lib/adlint/cpp/message_shima.rb
191
368
  - lib/adlint/cpp/phase.rb
192
369
  - lib/adlint/cpp/scanner.rb
193
370
  - lib/adlint/cpp/source.rb
@@ -196,10 +373,19 @@ files:
196
373
  - lib/adlint/cpp/util.rb
197
374
  - lib/adlint/driver.rb
198
375
  - lib/adlint/error.rb
376
+ - lib/adlint/exam.rb
377
+ - lib/adlint/exam/c_builtin.rb
378
+ - lib/adlint/exam/c_builtin/c_check.rb
379
+ - lib/adlint/exam/c_builtin/c_check_shima.rb
380
+ - lib/adlint/exam/c_builtin/c_code.rb
381
+ - lib/adlint/exam/c_builtin/c_metric.rb
382
+ - lib/adlint/exam/c_builtin/cpp_check.rb
383
+ - lib/adlint/exam/c_builtin/cpp_check_shima.rb
384
+ - lib/adlint/exam/c_builtin/cpp_code.rb
385
+ - lib/adlint/exam/c_builtin/ld_check.rb
386
+ - lib/adlint/exam/c_builtin/ld_metric.rb
199
387
  - lib/adlint/lang.rb
200
388
  - lib/adlint/ld.rb
201
- - lib/adlint/ld/message.rb
202
- - lib/adlint/ld/metric.rb
203
389
  - lib/adlint/ld/object.rb
204
390
  - lib/adlint/ld/phase.rb
205
391
  - lib/adlint/ld/typedef.rb