adlint 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. data/AUTHORS +0 -1
  2. data/ChangeLog +185 -1
  3. data/MANIFEST +3 -0
  4. data/NEWS +28 -5
  5. data/bin/adlintize +70 -7
  6. data/etc/conf.d/fallback/traits.erb +12 -3
  7. data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +12 -3
  8. data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +12 -3
  9. data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +12 -3
  10. data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +12 -3
  11. data/etc/conf.d/x86_64-ubuntu_12.04/traits-gcc_4.6.3.erb +12 -4
  12. data/etc/mesg.d/c_builtin/en_US/messages.yml +1 -1
  13. data/etc/mesg.d/c_builtin/ja_JP/messages.yml +1 -1
  14. data/etc/mesg.d/core/en_US/messages.yml +1 -1
  15. data/etc/mesg.d/core/ja_JP/messages.yml +1 -1
  16. data/features/code_check/W0070.feature +51 -0
  17. data/features/code_check/W0071.feature +51 -0
  18. data/features/code_check/W0425.feature +279 -0
  19. data/features/code_check/W0692.feature +14 -1
  20. data/features/code_check/W0834.feature +7 -5
  21. data/features/code_check/W1073.feature +0 -1
  22. data/features/code_check/W1074.feature +6 -0
  23. data/features/code_check/W9003.feature +54 -0
  24. data/features/support/env.rb +15 -3
  25. data/lib/adlint/c/expr.rb +30 -6
  26. data/lib/adlint/c/interp.rb +4 -0
  27. data/lib/adlint/cpp/eval.rb +24 -14
  28. data/lib/adlint/cpp/macro.rb +52 -40
  29. data/lib/adlint/exam/c_builtin/c_check.rb +76 -42
  30. data/lib/adlint/exam/c_builtin/cpp_check.rb +4 -2
  31. data/lib/adlint/traits.rb +37 -23
  32. data/lib/adlint/util.rb +6 -0
  33. data/lib/adlint/version.rb +3 -3
  34. data/share/doc/developers_guide_ja.html +3 -3
  35. data/share/doc/developers_guide_ja.texi +1 -1
  36. data/share/doc/users_guide_en.html +1679 -1651
  37. data/share/doc/users_guide_en.texi +56 -24
  38. data/share/doc/users_guide_ja.html +1697 -1669
  39. data/share/doc/users_guide_ja.texi +57 -24
  40. data/share/sample/bison-2.5/adlint/adlint_traits.yml +13 -4
  41. data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +13 -4
  42. data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +13 -4
  43. data/share/sample/ctags-5.8/adlint/adlint_traits.yml +13 -4
  44. data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +13 -4
  45. data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +13 -4
  46. data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +13 -4
  47. data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +13 -4
  48. data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +13 -4
  49. data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +13 -4
  50. data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +13 -4
  51. data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +13 -4
  52. data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +13 -4
  53. data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +13 -4
  54. data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +13 -4
  55. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +13 -4
  56. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +13 -4
  57. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +13 -4
  58. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +13 -4
  59. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +13 -4
  60. data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +13 -4
  61. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +13 -4
  62. data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +13 -4
  63. data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +13 -4
  64. data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +13 -4
  65. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +13 -4
  66. data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +13 -4
  67. data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +13 -4
  68. data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +13 -4
  69. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +13 -4
  70. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +13 -4
  71. data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +13 -4
  72. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +13 -4
  73. data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +13 -4
  74. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +13 -4
  75. data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +13 -4
  76. data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +13 -4
  77. data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +13 -4
  78. data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +13 -4
  79. data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +13 -4
  80. data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +13 -4
  81. data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +13 -4
  82. data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +13 -4
  83. data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +13 -4
  84. data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +13 -4
  85. data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +13 -4
  86. data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +13 -4
  87. data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +13 -4
  88. data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +13 -4
  89. data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +13 -4
  90. data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +13 -4
  91. data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +13 -4
  92. data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +13 -4
  93. data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +13 -4
  94. data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +13 -4
  95. data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +13 -4
  96. data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +13 -4
  97. data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +13 -4
  98. data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +13 -4
  99. data/spec/conf.d/default_traits.yml +12 -4
  100. metadata +5 -2
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "ruby-1.9.3-p0"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../ruby-1.9.3-p0"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -245,9 +248,15 @@ message_traits:
245
248
  # Output messages with category and severity information?
246
249
  message_with_class: false
247
250
 
248
- # Warn only files in the specified directory. If omitted, all files (such as
249
- # system headers or 3rd-party library headers) will be warned.
250
- warn_only_files_in: "../../ruby-1.9.3-p0"
251
+ # Warn only files in the specified directory.
252
+ # If omitted, all files including system headers will be warned.
253
+ warn_files_in:
254
+ - "../../ruby-1.9.3-p0"
255
+
256
+ # Don't warn files in the specified directory.
257
+ # You can specify 3rd-party library header directories imported in the
258
+ # project to suppress warnings about unconcerned headers.
259
+ warn_files_not_in:
251
260
 
252
261
  # Enable translation-unit specific code check selection?
253
262
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "ruby-1.9.3-p0"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../ruby-1.9.3-p0"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -245,9 +248,15 @@ message_traits:
245
248
  # Output messages with category and severity information?
246
249
  message_with_class: false
247
250
 
248
- # Warn only files in the specified directory. If omitted, all files (such as
249
- # system headers or 3rd-party library headers) will be warned.
250
- warn_only_files_in: "../../ruby-1.9.3-p0"
251
+ # Warn only files in the specified directory.
252
+ # If omitted, all files including system headers will be warned.
253
+ warn_files_in:
254
+ - "../../ruby-1.9.3-p0"
255
+
256
+ # Don't warn files in the specified directory.
257
+ # You can specify 3rd-party library header directories imported in the
258
+ # project to suppress warnings about unconcerned headers.
259
+ warn_files_not_in:
251
260
 
252
261
  # Enable translation-unit specific code check selection?
253
262
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "ruby-1.9.3-p0"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../ruby-1.9.3-p0"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -245,9 +248,15 @@ message_traits:
245
248
  # Output messages with category and severity information?
246
249
  message_with_class: false
247
250
 
248
- # Warn only files in the specified directory. If omitted, all files (such as
249
- # system headers or 3rd-party library headers) will be warned.
250
- warn_only_files_in: "../../ruby-1.9.3-p0"
251
+ # Warn only files in the specified directory.
252
+ # If omitted, all files including system headers will be warned.
253
+ warn_files_in:
254
+ - "../../ruby-1.9.3-p0"
255
+
256
+ # Don't warn files in the specified directory.
257
+ # You can specify 3rd-party library header directories imported in the
258
+ # project to suppress warnings about unconcerned headers.
259
+ warn_files_not_in:
251
260
 
252
261
  # Enable translation-unit specific code check selection?
253
262
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "ruby-1.9.3-p0"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../ruby-1.9.3-p0"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -245,9 +248,15 @@ message_traits:
245
248
  # Output messages with category and severity information?
246
249
  message_with_class: false
247
250
 
248
- # Warn only files in the specified directory. If omitted, all files (such as
249
- # system headers or 3rd-party library headers) will be warned.
250
- warn_only_files_in: "../../ruby-1.9.3-p0"
251
+ # Warn only files in the specified directory.
252
+ # If omitted, all files including system headers will be warned.
253
+ warn_files_in:
254
+ - "../../ruby-1.9.3-p0"
255
+
256
+ # Don't warn files in the specified directory.
257
+ # You can specify 3rd-party library header directories imported in the
258
+ # project to suppress warnings about unconcerned headers.
259
+ warn_files_not_in:
251
260
 
252
261
  # Enable translation-unit specific code check selection?
253
262
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "ruby-1.9.3-p0"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../ruby-1.9.3-p0"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -245,9 +248,15 @@ message_traits:
245
248
  # Output messages with category and severity information?
246
249
  message_with_class: false
247
250
 
248
- # Warn only files in the specified directory. If omitted, all files (such as
249
- # system headers or 3rd-party library headers) will be warned.
250
- warn_only_files_in: "../../ruby-1.9.3-p0"
251
+ # Warn only files in the specified directory.
252
+ # If omitted, all files including system headers will be warned.
253
+ warn_files_in:
254
+ - "../../ruby-1.9.3-p0"
255
+
256
+ # Don't warn files in the specified directory.
257
+ # You can specify 3rd-party library header directories imported in the
258
+ # project to suppress warnings about unconcerned headers.
259
+ warn_files_not_in:
251
260
 
252
261
  # Enable translation-unit specific code check selection?
253
262
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "screen-4.0.3"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../screen-4.0.3"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -242,9 +245,15 @@ message_traits:
242
245
  # Output messages with category and severity information?
243
246
  message_with_class: false
244
247
 
245
- # Warn only files in the specified directory. If omitted, all files (such as
246
- # system headers or 3rd-party library headers) will be warned.
247
- warn_only_files_in: "../screen-4.0.3"
248
+ # Warn only files in the specified directory.
249
+ # If omitted, all files including system headers will be warned.
250
+ warn_files_in:
251
+ - "../screen-4.0.3"
252
+
253
+ # Don't warn files in the specified directory.
254
+ # You can specify 3rd-party library header directories imported in the
255
+ # project to suppress warnings about unconcerned headers.
256
+ warn_files_not_in:
248
257
 
249
258
  # Enable translation-unit specific code check selection?
250
259
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "vim-7.3"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../vim73"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -254,9 +257,15 @@ message_traits:
254
257
  # Output messages with category and severity information?
255
258
  message_with_class: false
256
259
 
257
- # Warn only files in the specified directory. If omitted, all files (such as
258
- # system headers or 3rd-party library headers) will be warned.
259
- warn_only_files_in: "../../vim73"
260
+ # Warn only files in the specified directory.
261
+ # If omitted, all files including system headers will be warned.
262
+ warn_files_in:
263
+ - "../../vim73"
264
+
265
+ # Don't warn files in the specified directory.
266
+ # You can specify 3rd-party library header directories imported in the
267
+ # project to suppress warnings about unconcerned headers.
268
+ warn_files_not_in:
260
269
 
261
270
  # Enable translation-unit specific code check selection?
262
271
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "xxd-7.3"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../vim73"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -241,9 +244,15 @@ message_traits:
241
244
  # Output messages with category and severity information?
242
245
  message_with_class: false
243
246
 
244
- # Warn only files in the specified directory. If omitted, all files (such as
245
- # system headers or 3rd-party library headers) will be warned.
246
- warn_only_files_in: "../../vim73"
247
+ # Warn only files in the specified directory.
248
+ # If omitted, all files including system headers will be warned.
249
+ warn_files_in:
250
+ - "../../vim73"
251
+
252
+ # Don't warn files in the specified directory.
253
+ # You can specify 3rd-party library header directories imported in the
254
+ # project to suppress warnings about unconcerned headers.
255
+ warn_files_not_in:
247
256
 
248
257
  # Enable translation-unit specific code check selection?
249
258
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "zsh-4.3.15"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../zsh-4.3.15"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -229,9 +232,15 @@ message_traits:
229
232
  # Output messages with category and severity information?
230
233
  message_with_class: false
231
234
 
232
- # Warn only files in the specified directory. If omitted, all files (such as
233
- # system headers or 3rd-party library headers) will be warned.
234
- warn_only_files_in: "../zsh-4.3.15"
235
+ # Warn only files in the specified directory.
236
+ # If omitted, all files including system headers will be warned.
237
+ warn_files_in:
238
+ - "../zsh-4.3.15"
239
+
240
+ # Don't warn files in the specified directory.
241
+ # You can specify 3rd-party library header directories imported in the
242
+ # project to suppress warnings about unconcerned headers.
243
+ warn_files_not_in:
235
244
 
236
245
  # Enable translation-unit specific code check selection?
237
246
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "zsh-4.3.15"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../zsh-4.3.15"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -244,9 +247,15 @@ message_traits:
244
247
  # Output messages with category and severity information?
245
248
  message_with_class: false
246
249
 
247
- # Warn only files in the specified directory. If omitted, all files (such as
248
- # system headers or 3rd-party library headers) will be warned.
249
- warn_only_files_in: "../../zsh-4.3.15"
250
+ # Warn only files in the specified directory.
251
+ # If omitted, all files including system headers will be warned.
252
+ warn_files_in:
253
+ - "../../zsh-4.3.15"
254
+
255
+ # Don't warn files in the specified directory.
256
+ # You can specify 3rd-party library header directories imported in the
257
+ # project to suppress warnings about unconcerned headers.
258
+ warn_files_not_in:
250
259
 
251
260
  # Enable translation-unit specific code check selection?
252
261
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "zsh-4.3.15"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../zsh-4.3.15"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -243,9 +246,15 @@ message_traits:
243
246
  # Output messages with category and severity information?
244
247
  message_with_class: false
245
248
 
246
- # Warn only files in the specified directory. If omitted, all files (such as
247
- # system headers or 3rd-party library headers) will be warned.
248
- warn_only_files_in: "../../zsh-4.3.15"
249
+ # Warn only files in the specified directory.
250
+ # If omitted, all files including system headers will be warned.
251
+ warn_files_in:
252
+ - "../../zsh-4.3.15"
253
+
254
+ # Don't warn files in the specified directory.
255
+ # You can specify 3rd-party library header directories imported in the
256
+ # project to suppress warnings about unconcerned headers.
257
+ warn_files_not_in:
249
258
 
250
259
  # Enable translation-unit specific code check selection?
251
260
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "zsh-4.3.15"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../zsh-4.3.15"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -244,9 +247,15 @@ message_traits:
244
247
  # Output messages with category and severity information?
245
248
  message_with_class: false
246
249
 
247
- # Warn only files in the specified directory. If omitted, all files (such as
248
- # system headers or 3rd-party library headers) will be warned.
249
- warn_only_files_in: "../../zsh-4.3.15"
250
+ # Warn only files in the specified directory.
251
+ # If omitted, all files including system headers will be warned.
252
+ warn_files_in:
253
+ - "../../zsh-4.3.15"
254
+
255
+ # Don't warn files in the specified directory.
256
+ # You can specify 3rd-party library header directories imported in the
257
+ # project to suppress warnings about unconcerned headers.
258
+ warn_files_not_in:
250
259
 
251
260
  # Enable translation-unit specific code check selection?
252
261
  individual_selection: true
@@ -21,7 +21,7 @@
21
21
 
22
22
  # Schema version of the traits file.
23
23
  # DO NOT EDIT MANUALLY!
24
- version: "2.0.0"
24
+ version: "2.4.0"
25
25
 
26
26
  # List of names of source code examination packages.
27
27
  #
@@ -39,6 +39,9 @@ project_traits:
39
39
  # Project name.
40
40
  project_name: "zsh-4.3.15"
41
41
 
42
+ # Project root directory.
43
+ project_root: "../../zsh-4.3.15"
44
+
42
45
  # Project specific additional include paths.
43
46
  # Ex.
44
47
  # include_path:
@@ -243,9 +246,15 @@ message_traits:
243
246
  # Output messages with category and severity information?
244
247
  message_with_class: false
245
248
 
246
- # Warn only files in the specified directory. If omitted, all files (such as
247
- # system headers or 3rd-party library headers) will be warned.
248
- warn_only_files_in: "../../zsh-4.3.15"
249
+ # Warn only files in the specified directory.
250
+ # If omitted, all files including system headers will be warned.
251
+ warn_files_in:
252
+ - "../../zsh-4.3.15"
253
+
254
+ # Don't warn files in the specified directory.
255
+ # You can specify 3rd-party library header directories imported in the
256
+ # project to suppress warnings about unconcerned headers.
257
+ warn_files_not_in:
249
258
 
250
259
  # Enable translation-unit specific code check selection?
251
260
  individual_selection: true
@@ -8,7 +8,7 @@
8
8
 
9
9
  # Schema version of the traits file.
10
10
  # DO NOT EDIT MANUALLY!
11
- version: "2.0.0"
11
+ version: "2.4.0"
12
12
 
13
13
  # List of names of source code examination packages.
14
14
  #
@@ -26,6 +26,9 @@ project_traits:
26
26
  # Project name.
27
27
  project_name: "spec"
28
28
 
29
+ # Project root directory.
30
+ project_root: "."
31
+
29
32
  # Project specific additional include paths.
30
33
  # Ex.
31
34
  # include_path:
@@ -220,9 +223,14 @@ message_traits:
220
223
  # Output messages with category and severity information?
221
224
  message_with_class: false
222
225
 
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
+ # Warn only files in the specified directory.
227
+ # If omitted, all files including system headers will be warned.
228
+ warn_files_in:
229
+
230
+ # Don't warn files in the specified directory.
231
+ # You can specify 3rd-party library header directories imported in the
232
+ # project to suppress warnings about unconcerned headers.
233
+ warn_files_not_in:
226
234
 
227
235
  # Enable translation-unit specific code check selection?
228
236
  individual_selection: true
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: 2.2.0
4
+ version: 2.4.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-09-12 00:00:00.000000000 Z
12
+ date: 2012-09-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'AdLint is a source code static analyzer.
15
15
 
@@ -76,6 +76,8 @@ files:
76
76
  - features/code_check/W0017.feature
77
77
  - features/code_check/W0025.feature
78
78
  - features/code_check/W0026.feature
79
+ - features/code_check/W0070.feature
80
+ - features/code_check/W0071.feature
79
81
  - features/code_check/W0093.feature
80
82
  - features/code_check/W0104.feature
81
83
  - features/code_check/W0109.feature
@@ -215,6 +217,7 @@ files:
215
217
  - features/code_check/W0252.feature
216
218
  - features/code_check/W0253.feature
217
219
  - features/code_check/W0254.feature
220
+ - features/code_check/W0425.feature
218
221
  - features/code_check/W0431.feature
219
222
  - features/code_check/W0432.feature
220
223
  - features/code_check/W0477.feature