adlint 1.18.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +287 -188
- data/MANIFEST +278 -92
- data/NEWS +16 -4
- data/bin/adlintize +124 -3
- data/etc/conf.d/fallback/traits.erb +54 -1
- data/etc/conf.d/i686-cygwin/traits-gcc_4.3.4.erb +54 -1
- data/etc/conf.d/i686-devkit/traits-gcc_4.5.2.erb +54 -1
- data/etc/conf.d/i686-linux/traits-gcc_4.5.1.erb +54 -1
- data/etc/conf.d/i686-mingw/traits-gcc_4.6.1.erb +54 -1
- data/etc/mesg.d/c_builtin/en_US/messages.yml +2998 -0
- data/etc/mesg.d/c_builtin/ja_JP/messages.yml +2998 -0
- data/etc/mesg.d/core/en_US/messages.yml +134 -0
- data/etc/mesg.d/core/ja_JP/messages.yml +134 -0
- data/features/{message_detection → code_check}/E0013.feature +2 -2
- data/features/{message_detection → code_check}/W0001.feature +4 -4
- data/features/{message_detection → code_check}/W0002.feature +6 -6
- data/features/{message_detection → code_check}/W0003.feature +8 -8
- data/features/{message_detection → code_check}/W0007.feature +16 -16
- data/features/{message_detection → code_check}/W0010.feature +8 -8
- data/features/{message_detection → code_check}/W0013.feature +16 -16
- data/features/code_check/W0016.feature +200 -0
- data/features/code_check/W0017.feature +270 -0
- data/features/code_check/W0025.feature +66 -0
- data/features/code_check/W0026.feature +143 -0
- data/features/{message_detection → code_check}/W0093.feature +6 -6
- data/features/{message_detection → code_check}/W0104.feature +14 -14
- data/features/{message_detection → code_check}/W0109.feature +6 -6
- data/features/code_check/W0119.feature +151 -0
- data/features/code_check/W0120.feature +137 -0
- data/features/code_check/W0121.feature +147 -0
- data/features/code_check/W0122.feature +142 -0
- data/features/code_check/W0123.feature +147 -0
- data/features/code_check/W0124.feature +142 -0
- data/features/code_check/W0125.feature +147 -0
- data/features/code_check/W0126.feature +142 -0
- data/features/code_check/W0127.feature +147 -0
- data/features/code_check/W0128.feature +147 -0
- data/features/code_check/W0129.feature +147 -0
- data/features/code_check/W0130.feature +159 -0
- data/features/code_check/W0131.feature +154 -0
- data/features/code_check/W0132.feature +137 -0
- data/features/code_check/W0133.feature +151 -0
- data/features/code_check/W0134.feature +151 -0
- data/features/code_check/W0135.feature +147 -0
- data/features/code_check/W0136.feature +151 -0
- data/features/code_check/W0137.feature +147 -0
- data/features/code_check/W0138.feature +151 -0
- data/features/code_check/W0139.feature +147 -0
- data/features/code_check/W0140.feature +159 -0
- data/features/code_check/W0141.feature +155 -0
- data/features/code_check/W0142.feature +152 -0
- data/features/code_check/W0143.feature +147 -0
- data/features/code_check/W0144.feature +146 -0
- data/features/code_check/W0145.feature +147 -0
- data/features/code_check/W0146.feature +146 -0
- data/features/code_check/W0147.feature +146 -0
- data/features/code_check/W0148.feature +147 -0
- data/features/code_check/W0149.feature +146 -0
- data/features/code_check/W0150.feature +146 -0
- data/features/code_check/W0151.feature +146 -0
- data/features/code_check/W0152.feature +155 -0
- data/features/code_check/W0153.feature +155 -0
- data/features/code_check/W0154.feature +154 -0
- data/features/code_check/W0155.feature +154 -0
- data/features/code_check/W0156.feature +167 -0
- data/features/code_check/W0157.feature +152 -0
- data/features/code_check/W0158.feature +147 -0
- data/features/code_check/W0159.feature +147 -0
- data/features/code_check/W0160.feature +147 -0
- data/features/code_check/W0161.feature +151 -0
- data/features/code_check/W0162.feature +146 -0
- data/features/code_check/W0163.feature +146 -0
- data/features/code_check/W0164.feature +146 -0
- data/features/code_check/W0165.feature +151 -0
- data/features/code_check/W0166.feature +146 -0
- data/features/code_check/W0167.feature +146 -0
- data/features/code_check/W0168.feature +146 -0
- data/features/code_check/W0169.feature +151 -0
- data/features/code_check/W0170.feature +146 -0
- data/features/code_check/W0171.feature +146 -0
- data/features/code_check/W0172.feature +146 -0
- data/features/code_check/W0173.feature +159 -0
- data/features/code_check/W0174.feature +159 -0
- data/features/code_check/W0175.feature +158 -0
- data/features/code_check/W0176.feature +158 -0
- data/features/code_check/W0177.feature +159 -0
- data/features/code_check/W0178.feature +155 -0
- data/features/code_check/W0179.feature +154 -0
- data/features/code_check/W0180.feature +154 -0
- data/features/code_check/W0181.feature +167 -0
- data/features/code_check/W0182.feature +147 -0
- data/features/code_check/W0183.feature +147 -0
- data/features/code_check/W0184.feature +148 -0
- data/features/code_check/W0185.feature +142 -0
- data/features/code_check/W0186.feature +142 -0
- data/features/code_check/W0187.feature +142 -0
- data/features/code_check/W0188.feature +142 -0
- data/features/code_check/W0189.feature +142 -0
- data/features/code_check/W0190.feature +142 -0
- data/features/code_check/W0191.feature +142 -0
- data/features/code_check/W0192.feature +142 -0
- data/features/code_check/W0193.feature +143 -0
- data/features/code_check/W0194.feature +142 -0
- data/features/code_check/W0195.feature +142 -0
- data/features/code_check/W0196.feature +142 -0
- data/features/code_check/W0197.feature +142 -0
- data/features/code_check/W0198.feature +142 -0
- data/features/code_check/W0199.feature +143 -0
- data/features/code_check/W0200.feature +142 -0
- data/features/code_check/W0201.feature +142 -0
- data/features/code_check/W0202.feature +142 -0
- data/features/code_check/W0203.feature +142 -0
- data/features/code_check/W0204.feature +142 -0
- data/features/code_check/W0205.feature +143 -0
- data/features/code_check/W0206.feature +150 -0
- data/features/code_check/W0207.feature +150 -0
- data/features/code_check/W0208.feature +150 -0
- data/features/code_check/W0209.feature +151 -0
- data/features/code_check/W0210.feature +151 -0
- data/features/code_check/W0211.feature +151 -0
- data/features/code_check/W0212.feature +147 -0
- data/features/code_check/W0213.feature +142 -0
- data/features/code_check/W0214.feature +147 -0
- data/features/code_check/W0215.feature +142 -0
- data/features/code_check/W0216.feature +142 -0
- data/features/code_check/W0217.feature +142 -0
- data/features/code_check/W0218.feature +142 -0
- data/features/code_check/W0219.feature +142 -0
- data/features/code_check/W0220.feature +142 -0
- data/features/code_check/W0221.feature +147 -0
- data/features/code_check/W0222.feature +142 -0
- data/features/code_check/W0223.feature +147 -0
- data/features/code_check/W0224.feature +142 -0
- data/features/code_check/W0225.feature +142 -0
- data/features/code_check/W0226.feature +142 -0
- data/features/code_check/W0227.feature +142 -0
- data/features/code_check/W0228.feature +142 -0
- data/features/code_check/W0229.feature +142 -0
- data/features/code_check/W0230.feature +147 -0
- data/features/code_check/W0231.feature +142 -0
- data/features/code_check/W0232.feature +148 -0
- data/features/code_check/W0233.feature +142 -0
- data/features/code_check/W0234.feature +143 -0
- data/features/code_check/W0235.feature +142 -0
- data/features/code_check/W0236.feature +143 -0
- data/features/code_check/W0237.feature +142 -0
- data/features/code_check/W0238.feature +143 -0
- data/features/code_check/W0239.feature +154 -0
- data/features/code_check/W0240.feature +155 -0
- data/features/code_check/W0241.feature +154 -0
- data/features/code_check/W0242.feature +155 -0
- data/features/code_check/W0243.feature +154 -0
- data/features/code_check/W0244.feature +155 -0
- data/features/code_check/W0245.feature +147 -0
- data/features/code_check/W0246.feature +147 -0
- data/features/code_check/W0247.feature +147 -0
- data/features/code_check/W0248.feature +142 -0
- data/features/code_check/W0249.feature +142 -0
- data/features/code_check/W0250.feature +146 -0
- data/features/code_check/W0251.feature +159 -0
- data/features/code_check/W0252.feature +155 -0
- data/features/code_check/W0253.feature +154 -0
- data/features/code_check/W0254.feature +154 -0
- data/features/code_check/W0477.feature +77 -0
- data/features/code_check/W0478.feature +103 -0
- data/features/code_check/W0479.feature +65 -0
- data/features/code_check/W0480.feature +119 -0
- data/features/code_check/W0481.feature +28 -0
- data/features/code_check/W0482.feature +64 -0
- data/features/code_check/W0483.feature +62 -0
- data/features/code_check/W0573.feature +91 -0
- data/features/{message_detection → code_check}/W0583.feature +2 -2
- data/features/{message_detection → code_check}/W0606.feature +2 -2
- data/features/{message_detection → code_check}/W0641.feature +16 -16
- data/features/{message_detection → code_check}/W0643.feature +12 -12
- data/features/{message_detection → code_check}/W0644.feature +50 -50
- data/features/{message_detection → code_check}/W0645.feature +16 -16
- data/features/{message_detection → code_check}/W0646.feature +16 -16
- data/features/{message_detection → code_check}/W0649.feature +28 -28
- data/features/{message_detection → code_check}/W0650.feature +24 -24
- data/features/code_check/W0685.feature +120 -0
- data/features/code_check/W0686.feature +92 -0
- data/features/{message_detection → code_check}/W0687.feature +4 -4
- data/features/{message_detection → code_check}/W0688.feature +12 -12
- data/features/{message_detection → code_check}/W0689.feature +8 -8
- data/features/{message_detection → code_check}/W0690.feature +6 -6
- data/features/{message_detection → code_check}/W0691.feature +14 -14
- data/features/{message_detection → code_check}/W0692.feature +4 -4
- data/features/{message_detection → code_check}/W0694.feature +10 -10
- data/features/code_check/W0695.feature +78 -0
- data/features/{message_detection → code_check}/W0697.feature +18 -18
- data/features/{message_detection → code_check}/W0698.feature +2 -2
- data/features/{message_detection → code_check}/W0699.feature +2 -2
- data/features/{message_detection → code_check}/W0700.feature +6 -6
- data/features/{message_detection → code_check}/W0703.feature +6 -6
- data/features/{message_detection → code_check}/W0705.feature +24 -24
- data/features/{message_detection → code_check}/W0707.feature +20 -20
- data/features/{message_detection → code_check}/W0711.feature +10 -10
- data/features/{message_detection → code_check}/W0712.feature +10 -10
- data/features/{message_detection → code_check}/W0713.feature +10 -10
- data/features/{message_detection → code_check}/W0714.feature +10 -10
- data/features/{message_detection → code_check}/W0715.feature +11 -11
- data/features/{message_detection → code_check}/W0716.feature +6 -6
- data/features/{message_detection → code_check}/W0717.feature +6 -6
- data/features/{message_detection → code_check}/W0718.feature +6 -6
- data/features/{message_detection → code_check}/W0719.feature +16 -16
- data/features/{message_detection → code_check}/W0723.feature +6 -6
- data/features/code_check/W0726.feature +95 -0
- data/features/{message_detection → code_check}/W0732.feature +6 -6
- data/features/{message_detection → code_check}/W0733.feature +6 -6
- data/features/{message_detection → code_check}/W0734.feature +16 -16
- data/features/{message_detection → code_check}/W0735.feature +16 -16
- data/features/{message_detection → code_check}/W0745.feature +10 -10
- data/features/code_check/W0747.feature +146 -0
- data/features/code_check/W0748.feature +148 -0
- data/features/code_check/W0749.feature +146 -0
- data/features/code_check/W0750.feature +146 -0
- data/features/code_check/W0751.feature +148 -0
- data/features/code_check/W0752.feature +143 -0
- data/features/code_check/W0753.feature +146 -0
- data/features/code_check/W0754.feature +146 -0
- data/features/code_check/W0755.feature +142 -0
- data/features/code_check/W0756.feature +148 -0
- data/features/code_check/W0757.feature +143 -0
- data/features/code_check/W0758.feature +143 -0
- data/features/code_check/W0759.feature +154 -0
- data/features/code_check/W0760.feature +154 -0
- data/features/code_check/W0761.feature +154 -0
- data/features/code_check/W0762.feature +154 -0
- data/features/code_check/W0763.feature +156 -0
- data/features/code_check/W0764.feature +151 -0
- data/features/code_check/W0765.feature +151 -0
- data/features/code_check/W0766.feature +151 -0
- data/features/code_check/W0767.feature +142 -0
- data/features/code_check/W0768.feature +142 -0
- data/features/code_check/W0769.feature +142 -0
- data/features/{message_detection → code_check}/W0780.feature +12 -12
- data/features/code_check/W0781.feature +145 -0
- data/features/{message_detection → code_check}/W0783.feature +8 -8
- data/features/{message_detection → code_check}/W0792.feature +16 -16
- data/features/{message_detection → code_check}/W0793.feature +16 -16
- data/features/{message_detection → code_check}/W0794.feature +10 -10
- data/features/code_check/W0801.feature +84 -0
- data/features/{message_detection → code_check}/W0805.feature +14 -14
- data/features/code_check/W0806.feature +24 -0
- data/features/code_check/W0807.feature +35 -0
- data/features/code_check/W0808.feature +34 -0
- data/features/code_check/W0809.feature +114 -0
- data/features/{message_detection → code_check}/W0811.feature +10 -10
- data/features/{message_detection → code_check}/W0830.feature +12 -12
- data/features/{message_detection → code_check}/W0833.feature +30 -30
- data/features/{message_detection → code_check}/W0834.feature +26 -26
- data/features/{message_detection → code_check}/W1026.feature +8 -8
- data/features/code_check/W1030.feature +84 -0
- data/features/{message_detection → code_check}/W1031.feature +36 -36
- data/features/{message_detection → code_check}/W1039.feature +24 -24
- data/features/{message_detection → code_check}/W1040.feature +8 -8
- data/features/{message_detection → code_check}/W1041.feature +2 -2
- data/features/{message_detection → code_check}/W1046.feature +6 -6
- data/features/{message_detection → code_check}/W1047.feature +12 -12
- data/features/{message_detection → code_check}/W1052.feature +6 -6
- data/features/{message_detection → code_check}/W1066.feature +6 -6
- data/features/{message_detection → code_check}/W1067.feature +6 -6
- data/features/{message_detection → code_check}/W1068.feature +6 -6
- data/features/{message_detection → code_check}/W1069.feature +10 -10
- data/features/{message_detection → code_check}/W1070.feature +15 -15
- data/features/{message_detection → code_check}/W1071.feature +8 -8
- data/features/{message_detection → code_check}/W1072.feature +2 -2
- data/features/{message_detection → code_check}/W1073.feature +14 -14
- data/features/{message_detection → code_check}/W1074.feature +10 -10
- data/features/{message_detection → code_check}/W1075.feature +10 -10
- data/features/{message_detection → code_check}/W1076.feature +8 -8
- data/features/{message_detection → code_check}/W1077.feature +18 -18
- data/features/{message_detection → code_check}/W9001.feature +2 -2
- data/features/{message_detection → code_check}/W9003.feature +12 -12
- data/features/step_definitions/{message_detection_steps.rb → code_check_steps.rb} +1 -1
- data/features/support/env.rb +19 -3
- data/lib/adlint.rb +1 -0
- data/lib/adlint/analyzer.rb +17 -1
- data/lib/adlint/c.rb +0 -4
- data/lib/adlint/c/phase.rb +55 -745
- data/lib/adlint/code.rb +0 -24
- data/lib/adlint/cpp.rb +0 -3
- data/lib/adlint/cpp/phase.rb +50 -112
- data/lib/adlint/driver.rb +2 -2
- data/lib/adlint/error.rb +4 -4
- data/lib/adlint/exam.rb +143 -0
- data/lib/adlint/exam/c_builtin.rb +813 -0
- data/lib/adlint/{c/message.rb → exam/c_builtin/c_check.rb} +2130 -798
- data/lib/adlint/{c/message_shima.rb → exam/c_builtin/c_check_shima.rb} +99 -28
- data/lib/adlint/{c/code.rb → exam/c_builtin/c_code.rb} +31 -5
- data/lib/adlint/{c/metric.rb → exam/c_builtin/c_metric.rb} +43 -11
- data/lib/adlint/{cpp/message.rb → exam/c_builtin/cpp_check.rb} +177 -73
- data/lib/adlint/{cpp/message_shima.rb → exam/c_builtin/cpp_check_shima.rb} +28 -8
- data/lib/adlint/{cpp/code.rb → exam/c_builtin/cpp_code.rb} +14 -3
- data/lib/adlint/{ld/message.rb → exam/c_builtin/ld_check.rb} +33 -12
- data/lib/adlint/{ld/metric.rb → exam/c_builtin/ld_metric.rb} +8 -3
- data/lib/adlint/lang.rb +2 -2
- data/lib/adlint/ld.rb +0 -2
- data/lib/adlint/ld/phase.rb +101 -101
- data/lib/adlint/message.rb +155 -98
- data/lib/adlint/metric.rb +0 -27
- data/lib/adlint/phase.rb +28 -3
- data/lib/adlint/report.rb +22 -12
- data/lib/adlint/traits.rb +97 -5
- data/lib/adlint/util.rb +100 -11
- data/lib/adlint/version.rb +5 -5
- data/share/doc/developers_guide_ja.html +3 -3
- data/share/doc/developers_guide_ja.texi +1 -1
- data/share/doc/users_guide_en.html +1817 -1648
- data/share/doc/users_guide_en.texi +202 -22
- data/share/doc/users_guide_ja.html +1836 -1663
- data/share/doc/users_guide_ja.texi +203 -20
- data/share/sample/bison-2.5/adlint/adlint_traits.yml +55 -2
- data/share/sample/bison-2.5/adlint/lib/adlint_traits.yml +47 -2
- data/share/sample/bison-2.5/adlint/src/adlint_traits.yml +47 -2
- data/share/sample/ctags-5.8/adlint/adlint_traits.yml +47 -2
- data/share/sample/flex-2.5.35/adlint/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/core/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/enc-trans/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/enc/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-bigdecimal/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-continuation/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-coverage/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-curses/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-date/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-bubblebabble/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-md5/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-rmd160/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha1/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest-sha2/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-digest/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl-callback/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-dl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-etc/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fcntl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiber/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-fiddle/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-gdbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-iconv/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-console/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-nonblock/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-io-wait/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-generator/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-json-parser/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-complex/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-mathn-rational/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-nkf/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-openssl/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pathname/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-psych/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-pty/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-racc-cparse/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-readline/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-ripper/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-sdbm/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-socket/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-stringio/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-strscan/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syck/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-syslog/adlint_traits.yml +47 -2
- data/share/sample/ruby-1.9.3-p0/adlint/ext-zlib/adlint_traits.yml +47 -2
- data/share/sample/screen-4.0.3/adlint/adlint_traits.yml +47 -2
- data/share/sample/vim-7.3/adlint/vim/adlint_traits.yml +47 -2
- data/share/sample/vim-7.3/adlint/xxd/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/builtins/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/core/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/modules/adlint_traits.yml +47 -2
- data/share/sample/zsh-4.3.15/adlint/zle/adlint_traits.yml +47 -2
- data/spec/conf.d/default_traits.yml +56 -3
- metadata +280 -94
- data/etc/mesg.d/en_US/messages.yml +0 -797
- data/etc/mesg.d/ja_JP/messages.yml +0 -797
@@ -2,7 +2,7 @@
|
|
2
2
|
@setfilename users_guide_ja.info
|
3
3
|
@documentlanguage ja
|
4
4
|
@documentencoding utf-8
|
5
|
-
@settitle AdLint
|
5
|
+
@settitle AdLint 2.0.0 利用者ガイド
|
6
6
|
|
7
7
|
@copying
|
8
8
|
Copyright (C) 2010-2012, OGIS-RI Co.,Ltd.
|
@@ -651,14 +651,14 @@ Options:
|
|
651
651
|
|
652
652
|
@verbatim
|
653
653
|
% adlint -t adlint_traits.yml -o . -p 1 -l adlint_files.txt
|
654
|
-
../intro_demo.c:6:9:warning:W0492:同じ識別子名 `i' が構造体/共用体のメンバの他に、ラベル、タグ、または通常の識別子としても使われています。
|
655
|
-
../intro_demo.c:12:13:warning:W0027:ポインタ型の変数に対して比較演算が行われています。
|
656
|
-
../intro_demo.c:16:14:warning:W0422:値が NULL になることがあるポインタに対して間接参照が行われています。
|
657
|
-
../intro_demo.c:31:13:warning:W0613:この制御式の値は常に偽になります。
|
654
|
+
../intro_demo.c:6:9:warning:c_builtin:W0492:UNC:X99:同じ識別子名 `i' が構造体/共用体のメンバの他に、ラベル、タグ、または通常の識別子としても使われています。
|
655
|
+
../intro_demo.c:12:13:warning:c_builtin:W0027:UNC:X99:ポインタ型の変数に対して比較演算が行われています。
|
656
|
+
../intro_demo.c:16:14:warning:c_builtin:W0422:UNC:X99:値が NULL になることがあるポインタに対して間接参照が行われています。
|
657
|
+
../intro_demo.c:31:13:warning:c_builtin:W0613:UNC:X99:この制御式の値は常に偽になります。
|
658
658
|
...snip...
|
659
|
-
../intro_demo.c:55:9:warning:W9001:この文には制御が到達しません。
|
660
|
-
../intro_demo.c:2:1:warning:W0071:インクルードされている "../useless_header.h" の内容は翻訳単位の中で全く参照されていません。削除することができます。
|
661
|
-
../intro_demo.c:61:19:warning:W0628:関数 `int bar(void)' が定義されていますが、このプロジェクトでは使われていません。
|
659
|
+
../intro_demo.c:55:9:warning:c_builtin:W9001:UNC:X99:この文には制御が到達しません。
|
660
|
+
../intro_demo.c:2:1:warning:c_builtin:W0071:UNC:X99:インクルードされている "../useless_header.h" の内容は翻訳単位の中で全く参照されていません。削除することができます。
|
661
|
+
../intro_demo.c:61:19:warning:c_builtin:W0628:UNC:X99:関数 `int bar(void)' が定義されていますが、このプロジェクトでは使われていません。
|
662
662
|
@end verbatim
|
663
663
|
|
664
664
|
@subsection ヘルプメッセージ
|
@@ -715,13 +715,13 @@ Options:
|
|
715
715
|
|
716
716
|
@verbatim
|
717
717
|
% adlint_sma -t adlint_traits.yml -o . -p 1 ../intro_demo.c
|
718
|
-
../intro_demo.c:6:9:warning:W0492:同じ識別子名 `i' が構造体/共用体のメンバの他に、ラベル、タグ、または通常の識別子としても使われています。
|
719
|
-
../intro_demo.c:12:13:warning:W0027:ポインタ型の変数に対して比較演算が行われています。
|
720
|
-
../intro_demo.c:16:14:warning:W0422:値が NULL になることがあるポインタに対して間接参照が行われています。
|
721
|
-
../intro_demo.c:31:13:warning:W0613:この制御式の値は常に偽になります。
|
718
|
+
../intro_demo.c:6:9:warning:c_builtin:W0492:UNC:X99:同じ識別子名 `i' が構造体/共用体のメンバの他に、ラベル、タグ、または通常の識別子としても使われています。
|
719
|
+
../intro_demo.c:12:13:warning:c_builtin:W0027:UNC:X99:ポインタ型の変数に対して比較演算が行われています。
|
720
|
+
../intro_demo.c:16:14:warning:c_builtin:W0422:UNC:X99:値が NULL になることがあるポインタに対して間接参照が行われています。
|
721
|
+
../intro_demo.c:31:13:warning:c_builtin:W0613:UNC:X99:この制御式の値は常に偽になります。
|
722
722
|
...snip...
|
723
|
-
../intro_demo.c:55:9:warning:W9001:この文には制御が到達しません。
|
724
|
-
../intro_demo.c:2:1:warning:W0071:インクルードされている "../useless_header.h" の内容は翻訳単位の中で全く参照されていません。削除することができます。
|
723
|
+
../intro_demo.c:55:9:warning:c_builtin:W9001:UNC:X99:この文には制御が到達しません。
|
724
|
+
../intro_demo.c:2:1:warning:c_builtin:W0071:UNC:X99:インクルードされている "../useless_header.h" の内容は翻訳単位の中で全く参照されていません。削除することができます。
|
725
725
|
@end verbatim
|
726
726
|
|
727
727
|
@subsection ヘルプメッセージ
|
@@ -781,7 +781,7 @@ intro_demo.c.met.csv
|
|
781
781
|
|
782
782
|
@verbatim
|
783
783
|
% adlint_cma -t adlint_traits.yml -o . intro_demo.c.met.csv
|
784
|
-
../intro_demo.c:61:19:warning:W0628:関数 `int bar(void)' が定義されていますが、このプロジェクトでは使われていません。
|
784
|
+
../intro_demo.c:61:19:warning:c_builtin:W0628:UNC:X99:関数 `int bar(void)' が定義されていますが、このプロジェクトでは使われていません。
|
785
785
|
@end verbatim
|
786
786
|
|
787
787
|
@subsection ヘルプメッセージ
|
@@ -889,6 +889,7 @@ Command, @command{adlint_sma}}、@ref{AdLint CMA Command, @command{adlint_cma}}
|
|
889
889
|
@section 特性ファイル
|
890
890
|
|
891
891
|
@menu
|
892
|
+
* グローバル特性:Global Traits.
|
892
893
|
* プロジェクト特性:Project Traits.
|
893
894
|
* コンパイラ特性:Compiler Traits.
|
894
895
|
* リンカ特性:Linker Traits.
|
@@ -914,6 +915,57 @@ adlint_all.bat adlint_cinit.h adlint_pinit.h
|
|
914
915
|
@end verbatim
|
915
916
|
|
916
917
|
|
918
|
+
@node Global Traits
|
919
|
+
@subsection グローバル特性
|
920
|
+
|
921
|
+
グローバル特性は、特性ファイルのルート項目で設定します。
|
922
|
+
|
923
|
+
@multitable @columnfractions .01 .3 .1
|
924
|
+
@headitem No. @tab 項目名 @tab 形式 @tab 内容
|
925
|
+
@item 1
|
926
|
+
@cindex version
|
927
|
+
@anchor{global_traits:version}
|
928
|
+
@tab
|
929
|
+
@code{version}
|
930
|
+
@tab
|
931
|
+
文字列
|
932
|
+
@tab
|
933
|
+
特性ファイルフォーマットのバージョンを表します。この項目は編集してはいけません
|
934
|
+
。
|
935
|
+
@item 2
|
936
|
+
@cindex exam_packages
|
937
|
+
@anchor{global_traits:exam_packages}
|
938
|
+
@tab
|
939
|
+
@code{exam_packages}
|
940
|
+
@tab
|
941
|
+
文字列の配列
|
942
|
+
@tab
|
943
|
+
静的解析に用いるソースコード検査パッケージの名前を列挙します。
|
944
|
+
|
945
|
+
@code{"c_builtin"} は AdLint 本体に組み込み済みの検査パッケージ名です。
|
946
|
+
また、今後さまざまな用途に特化したオプションのソースコード検査パッケージを開発
|
947
|
+
する予定です。
|
948
|
+
|
949
|
+
例えば、@code{adlint-exam-c_ansi} という、ソースコードが ANSI C に準拠している
|
950
|
+
かを検査するパッケージをインストールした場合、@code{exam_packages} を下記のよう
|
951
|
+
に編集して解析することができます。
|
952
|
+
|
953
|
+
以下の場合は、ANSI C 準拠の検査パッケージのみが実行されます。
|
954
|
+
@example
|
955
|
+
exam_packages:
|
956
|
+
- "c_ansi"
|
957
|
+
@end example
|
958
|
+
|
959
|
+
以下の場合は、AdLint 組み込みの検査パッケージと、ANSI C 準拠の検査パッケージが実
|
960
|
+
行されます。
|
961
|
+
@example
|
962
|
+
exam_packages:
|
963
|
+
- "c_builtin"
|
964
|
+
- "c_ansi"
|
965
|
+
@end example
|
966
|
+
@end multitable
|
967
|
+
|
968
|
+
|
917
969
|
@node Project Traits
|
918
970
|
@subsection プロジェクト特性
|
919
971
|
|
@@ -1353,14 +1405,127 @@ extension_substitution:
|
|
1353
1405
|
メッセージ本文の言語を指定します。(現時点では) @code{"en_US"} か @code{"ja_JP"}
|
1354
1406
|
が指定可能です。
|
1355
1407
|
@item 2
|
1408
|
+
@cindex message_traits:message_with_class
|
1409
|
+
@anchor{message_traits:message_with_class}
|
1410
|
+
@tab
|
1411
|
+
@code{message_with_class}
|
1412
|
+
@tab
|
1413
|
+
真偽値
|
1414
|
+
@tab
|
1415
|
+
@code{true} の場合、@ref{Message File, メッセージファイル}に出力するメッセージ
|
1416
|
+
レコードに、ソースコード検査パッケージ名、カテゴリ、深刻度のフィールドを追加し
|
1417
|
+
ます。
|
1418
|
+
@item 3
|
1419
|
+
@cindex message_traits:warn_only_files_in
|
1420
|
+
@anchor{message_traits:warn_only_files_in}
|
1421
|
+
@tab
|
1422
|
+
@code{warn_only_files_in}
|
1423
|
+
@tab
|
1424
|
+
文字列
|
1425
|
+
@tab
|
1426
|
+
@b{AdLint 2.0.0 では、この項目による設定は未サポートです。}
|
1427
|
+
|
1428
|
+
解析対象プロジェクトのルートとなるディレクトリパス名を指定します。
|
1429
|
+
|
1430
|
+
ディレクトリパス名を指定した場合は、そのディレクトリ配下のソースコードについて
|
1431
|
+
のみ、警告メッセージを出力します。
|
1432
|
+
省略した場合は、システムヘッダやサードパーティーライブラリのヘッダなど、解析対
|
1433
|
+
象ソースコードがインクルードする全てのファイルについて、警告メッセージを出力し
|
1434
|
+
ます。
|
1435
|
+
@item 4
|
1436
|
+
@cindex message_traits:individual_selection
|
1437
|
+
@anchor{message_traits:individual_selection}
|
1438
|
+
@tab
|
1439
|
+
@code{individual_selection}
|
1440
|
+
@tab
|
1441
|
+
真偽値
|
1442
|
+
@tab
|
1443
|
+
@b{AdLint 2.0.0 では、この項目による設定は未サポートです。}
|
1444
|
+
|
1445
|
+
解析対象ソースコード内の注釈によるコードチェックの選択機能を有効化します。
|
1446
|
+
|
1447
|
+
@code{true} の場合、注釈によるコードチェックの選択が可能になります。
|
1448
|
+
@item 5
|
1449
|
+
@cindex message_traits:exclusion:categories
|
1450
|
+
@anchor{message_traits:exclusion:categories}
|
1451
|
+
@tab
|
1452
|
+
@code{exclusion:categories}
|
1453
|
+
@tab
|
1454
|
+
文字列の配列
|
1455
|
+
@tab
|
1456
|
+
@b{AdLint 2.0.0 では、この項目による設定は未サポートです。}
|
1457
|
+
|
1458
|
+
@ref{global_traits:exam_packages, exam_packages} で指定したソースコード検査パッ
|
1459
|
+
ケージ中のコードチェック機能で、実行を除外するものをメッセージのカテゴリにより
|
1460
|
+
指定します。
|
1461
|
+
@item 6
|
1462
|
+
@cindex message_traits:exclusion:severities
|
1463
|
+
@anchor{message_traits:exclusion:severities}
|
1464
|
+
@tab
|
1465
|
+
@code{exclusion:severities}
|
1466
|
+
@tab
|
1467
|
+
正規表現を表す文字列
|
1468
|
+
@tab
|
1469
|
+
@b{AdLint 2.0.0 では、この項目による設定は未サポートです。}
|
1470
|
+
|
1471
|
+
@ref{global_traits:exam_packages, exam_packages} で指定したソースコード検査パッ
|
1472
|
+
ケージ中のコードチェック機能で、実行を除外するものをメッセージの深刻度により指
|
1473
|
+
定します。
|
1474
|
+
@item 7
|
1475
|
+
@cindex message_traits:exclusion:messages
|
1476
|
+
@anchor{message_traits:exclusion:messages}
|
1477
|
+
@tab
|
1478
|
+
@code{exclusion:messages}
|
1479
|
+
@tab
|
1480
|
+
メッセージ ID と文字列のマップ
|
1481
|
+
@tab
|
1482
|
+
@b{AdLint 2.0.0 では、この項目による設定は未サポートです。}
|
1483
|
+
|
1484
|
+
@ref{global_traits:exam_packages, exam_packages} で指定したソースコード検査パッ
|
1485
|
+
ケージ中のコードチェック機能で、実行を除外するものをメッセージ ID により指定し
|
1486
|
+
ます。
|
1487
|
+
|
1488
|
+
メッセージ ID は、ソースコード検査パッケージをまたいでユニークではない場合があ
|
1489
|
+
るため、文字列として該当するメッセージ ID が含まれるソースコード検査パッケージ
|
1490
|
+
名も指定してください。
|
1491
|
+
@item 8
|
1492
|
+
@cindex message_traits:inclusion:messages
|
1493
|
+
@anchor{message_traits:inclusion:messages}
|
1494
|
+
@tab
|
1495
|
+
@code{inclusion:messages}
|
1496
|
+
@tab
|
1497
|
+
メッセージ ID と文字列のマップ
|
1498
|
+
@tab
|
1499
|
+
@b{AdLint 2.0.0 では、この項目による設定は未サポートです。}
|
1500
|
+
|
1501
|
+
@code{exclusion} セクションの設定内容により除外しましたが、メッセージ ID 指定で
|
1502
|
+
特定のコードチェック機能を含める場合に指定します。
|
1503
|
+
|
1504
|
+
例えば、@ref{message_traits:exclusion:categories, exclusion:categories} でカテ
|
1505
|
+
ゴリ指定により除外したコードチェック機能群のうち、特定のもののみを実行したい場
|
1506
|
+
合を想定した項目です。
|
1507
|
+
@item 9
|
1356
1508
|
@cindex message_traits:change_list
|
1357
1509
|
@anchor{message_traits:change_list}
|
1358
1510
|
@tab
|
1359
1511
|
@code{change_list}
|
1360
1512
|
@tab
|
1361
|
-
メッセージ ID
|
1513
|
+
メッセージ ID と変更内容のマップ
|
1362
1514
|
@tab
|
1363
|
-
|
1515
|
+
特定メッセージの定義情報を変更する場合に指定します。
|
1516
|
+
|
1517
|
+
例えば、@code{"c_builtin"} パッケージの @code{W9999} メッセージを変更する場合、
|
1518
|
+
下記のように設定します。
|
1519
|
+
|
1520
|
+
@example
|
1521
|
+
change_list:
|
1522
|
+
W9999:
|
1523
|
+
package: "c_builtin"
|
1524
|
+
classes:
|
1525
|
+
- "新しいカテゴリ名1:深刻度1"
|
1526
|
+
- "新しいカテゴリ名2:深刻度2"
|
1527
|
+
format: "新しいメッセージフォーマット。"
|
1528
|
+
@end example
|
1364
1529
|
@end multitable
|
1365
1530
|
|
1366
1531
|
|
@@ -1536,12 +1701,21 @@ macro_value
|
|
1536
1701
|
@anchor{pp_tokens}
|
1537
1702
|
pp_tokens : c_pp_tokens
|
1538
1703
|
|
1704
|
+
@anchor{exam_package_name}
|
1705
|
+
exam_package_name : 任意の文字列
|
1706
|
+
|
1539
1707
|
@anchor{message_id}
|
1540
1708
|
message_id
|
1541
1709
|
: 'W' [0-9]@{4@}
|
1542
1710
|
| 'E' [0-9]@{4@}
|
1543
1711
|
| 'C' [0-9]@{4@}
|
1544
1712
|
|
1713
|
+
@anchor{message_category}
|
1714
|
+
message_category : [A-Z]@{3@}
|
1715
|
+
|
1716
|
+
@anchor{message_severity}
|
1717
|
+
message_severity : [A-Z][0-9]@{2@}
|
1718
|
+
|
1545
1719
|
@anchor{message_text}
|
1546
1720
|
message_text : 任意の文字列
|
1547
1721
|
@end example
|
@@ -2124,7 +2298,10 @@ error_record
|
|
2124
2298
|
: @ref{error_line} @ref{new_line} @ref{context_line_list}
|
2125
2299
|
|
2126
2300
|
@anchor{error_line}
|
2127
|
-
error_line
|
2301
|
+
error_line (in case of @ref{message_traits:message_with_class, message_with_class} == true)
|
2302
|
+
: 'E' ',' @ref{file_path} ',' @ref{line_no} ',' @ref{column_no} ',' @ref{exam_package_name} ',' @ref{message_id} ',' @ref{message_category} ',' @ref{message_severity} ',' @ref{message_text}
|
2303
|
+
|
2304
|
+
error_line (in case of @ref{message_traits:message_with_class, message_with_class} != true)
|
2128
2305
|
: 'E' ',' @ref{file_path} ',' @ref{line_no} ',' @ref{column_no} ',' @ref{message_id} ',' @ref{message_text}
|
2129
2306
|
|
2130
2307
|
@anchor{warning_record}
|
@@ -2132,7 +2309,10 @@ warning_record
|
|
2132
2309
|
: @ref{warning_line} @ref{new_line} @ref{context_line_list}
|
2133
2310
|
|
2134
2311
|
@anchor{warning_line}
|
2135
|
-
warning_line
|
2312
|
+
warning_line (in case of @ref{message_traits:message_with_class, message_with_class} == true)
|
2313
|
+
: 'W' ',' @ref{file_path} ',' @ref{line_no} ',' @ref{column_no} ',' @ref{exam_package_name} ',' @ref{message_id} ',' @ref{message_category} ',' @ref{message_severity} ',' @ref{message_text}
|
2314
|
+
|
2315
|
+
warning_line (in case of @ref{message_traits:message_with_class, message_with_class} != true)
|
2136
2316
|
: 'W' ',' @ref{file_path} ',' @ref{line_no} ',' @ref{column_no} ',' @ref{message_id} ',' @ref{message_text}
|
2137
2317
|
|
2138
2318
|
@anchor{context_line_list}
|
@@ -2141,7 +2321,10 @@ context_line_list
|
|
2141
2321
|
| @ref{context_line} @ref{new_line} @ref{context_line_list}
|
2142
2322
|
|
2143
2323
|
@anchor{context_line}
|
2144
|
-
context_line
|
2324
|
+
context_line (in case of @ref{message_traits:message_with_class, message_with_class} == true)
|
2325
|
+
: 'C' ',' @ref{file_path} ',' @ref{line_no} ',' @ref{column_no} ',' @ref{exam_package_name} ',' @ref{message_id} ',' @ref{message_category} ',' @ref{message_severity} ',' @ref{message_text}
|
2326
|
+
|
2327
|
+
context_line (in case of @ref{message_traits:message_with_class, message_with_class} != true)
|
2145
2328
|
: 'C' ',' @ref{file_path} ',' @ref{line_no} ',' @ref{column_no} ',' @ref{message_id} ',' @ref{message_text}
|
2146
2329
|
@end example
|
2147
2330
|
|
@@ -21,7 +21,15 @@
|
|
21
21
|
|
22
22
|
# Schema version of the traits file.
|
23
23
|
# DO NOT EDIT MANUALLY!
|
24
|
-
version: "
|
24
|
+
version: "2.0.0"
|
25
|
+
|
26
|
+
# List of names of source code examination packages.
|
27
|
+
#
|
28
|
+
# "c_builtin" is a builtin source code examination package for C language.
|
29
|
+
# You can install optional examination packages and append (or replace) this
|
30
|
+
# list to specify which examination packages are to be run.
|
31
|
+
exam_packages:
|
32
|
+
- "c_builtin"
|
25
33
|
|
26
34
|
#
|
27
35
|
# Project specific traits section
|
@@ -218,8 +226,53 @@ message_traits:
|
|
218
226
|
# Please help to translate the message catalog into your language.
|
219
227
|
language: "ja_JP"
|
220
228
|
|
229
|
+
# Output messages with category and severity information?
|
230
|
+
message_with_class: false
|
231
|
+
|
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: "../bison-2.5"
|
235
|
+
|
236
|
+
# Enable translation-unit specific code check selection?
|
237
|
+
individual_selection: true
|
238
|
+
|
239
|
+
# Project-wide code check exclusion settings.
|
240
|
+
# Ex.
|
241
|
+
# exclusion:
|
242
|
+
# categories:
|
243
|
+
# - "REL"
|
244
|
+
# - "PRT"
|
245
|
+
# severities: "[ABC][5-9][0-9]"
|
246
|
+
# messages:
|
247
|
+
# W0001: "c_builtin"
|
248
|
+
# W0002: "c_ansi"
|
249
|
+
exclusion:
|
250
|
+
|
251
|
+
# Project-wide code check inclusion settings.
|
252
|
+
# Ex.
|
253
|
+
# inclusion:
|
254
|
+
# messages:
|
255
|
+
# W0001: "c_builtin"
|
256
|
+
# W0002: "c_ansi"
|
257
|
+
inclusion:
|
258
|
+
|
221
259
|
# Message text replacement.
|
222
260
|
# Ex.
|
223
261
|
# change_list:
|
224
|
-
# W9999:
|
262
|
+
# W9999:
|
263
|
+
# package: "c_builtin"
|
264
|
+
# classes:
|
265
|
+
# - "REL:A10"
|
266
|
+
# - "PRT:B20"
|
267
|
+
# format: "Your custom message for the warning of W9999."
|
268
|
+
# X9999:
|
269
|
+
# package: "core"
|
270
|
+
# classes:
|
271
|
+
# - "ERR:X99"
|
272
|
+
# format: "Your custom message for the warning of X9999."
|
273
|
+
# E9999:
|
274
|
+
# package: "core"
|
275
|
+
# classes:
|
276
|
+
# - "ERR:X99"
|
277
|
+
# format: "Your custom message for the warning of E9999."
|
225
278
|
change_list:
|
@@ -21,7 +21,15 @@
|
|
21
21
|
|
22
22
|
# Schema version of the traits file.
|
23
23
|
# DO NOT EDIT MANUALLY!
|
24
|
-
version: "
|
24
|
+
version: "2.0.0"
|
25
|
+
|
26
|
+
# List of names of source code examination packages.
|
27
|
+
#
|
28
|
+
# "c_builtin" is a builtin source code examination package for C language.
|
29
|
+
# You can install optional examination packages and append (or replace) this
|
30
|
+
# list to specify which examination packages are to be run.
|
31
|
+
exam_packages:
|
32
|
+
- "c_builtin"
|
25
33
|
|
26
34
|
#
|
27
35
|
# Project specific traits section
|
@@ -231,8 +239,45 @@ message_traits:
|
|
231
239
|
# Please help to translate the message catalog into your language.
|
232
240
|
language: "ja_JP"
|
233
241
|
|
242
|
+
# Output messages with category and severity information?
|
243
|
+
message_with_class: false
|
244
|
+
|
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: "../../bison-2.5"
|
248
|
+
|
249
|
+
# Enable translation-unit specific code check selection?
|
250
|
+
individual_selection: true
|
251
|
+
|
252
|
+
# Project-wide code check exclusion settings.
|
253
|
+
# Ex.
|
254
|
+
# exclusion:
|
255
|
+
# categories:
|
256
|
+
# - "REL"
|
257
|
+
# - "PRT"
|
258
|
+
# severities: "[ABC][5-9][0-9]"
|
259
|
+
# messages:
|
260
|
+
# W0001: "c_builtin"
|
261
|
+
# W0002: "c_ansi"
|
262
|
+
exclusion:
|
263
|
+
|
234
264
|
# Message text replacement.
|
235
265
|
# Ex.
|
236
266
|
# change_list:
|
237
|
-
# W9999:
|
267
|
+
# W9999:
|
268
|
+
# package: "c_builtin"
|
269
|
+
# classes:
|
270
|
+
# - "REL:A10"
|
271
|
+
# - "PRT:B20"
|
272
|
+
# format: "Your custom message for the warning of W9999."
|
273
|
+
# X9999:
|
274
|
+
# package: "core"
|
275
|
+
# classes:
|
276
|
+
# - "ERR:X99"
|
277
|
+
# format: "Your custom message for the warning of X9999."
|
278
|
+
# E9999:
|
279
|
+
# package: "core"
|
280
|
+
# classes:
|
281
|
+
# - "ERR:X99"
|
282
|
+
# format: "Your custom message for the warning of E9999."
|
238
283
|
change_list:
|
@@ -21,7 +21,15 @@
|
|
21
21
|
|
22
22
|
# Schema version of the traits file.
|
23
23
|
# DO NOT EDIT MANUALLY!
|
24
|
-
version: "
|
24
|
+
version: "2.0.0"
|
25
|
+
|
26
|
+
# List of names of source code examination packages.
|
27
|
+
#
|
28
|
+
# "c_builtin" is a builtin source code examination package for C language.
|
29
|
+
# You can install optional examination packages and append (or replace) this
|
30
|
+
# list to specify which examination packages are to be run.
|
31
|
+
exam_packages:
|
32
|
+
- "c_builtin"
|
25
33
|
|
26
34
|
#
|
27
35
|
# Project specific traits section
|
@@ -232,8 +240,45 @@ message_traits:
|
|
232
240
|
# Please help to translate the message catalog into your language.
|
233
241
|
language: "ja_JP"
|
234
242
|
|
243
|
+
# Output messages with category and severity information?
|
244
|
+
message_with_class: false
|
245
|
+
|
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: "../../bison-2.5"
|
249
|
+
|
250
|
+
# Enable translation-unit specific code check selection?
|
251
|
+
individual_selection: true
|
252
|
+
|
253
|
+
# Project-wide code check exclusion settings.
|
254
|
+
# Ex.
|
255
|
+
# exclusion:
|
256
|
+
# categories:
|
257
|
+
# - "REL"
|
258
|
+
# - "PRT"
|
259
|
+
# severities: "[ABC][5-9][0-9]"
|
260
|
+
# messages:
|
261
|
+
# W0001: "c_builtin"
|
262
|
+
# W0002: "c_ansi"
|
263
|
+
exclusion:
|
264
|
+
|
235
265
|
# Message text replacement.
|
236
266
|
# Ex.
|
237
267
|
# change_list:
|
238
|
-
# W9999:
|
268
|
+
# W9999:
|
269
|
+
# package: "c_builtin"
|
270
|
+
# classes:
|
271
|
+
# - "REL:A10"
|
272
|
+
# - "PRT:B20"
|
273
|
+
# format: "Your custom message for the warning of W9999."
|
274
|
+
# X9999:
|
275
|
+
# package: "core"
|
276
|
+
# classes:
|
277
|
+
# - "ERR:X99"
|
278
|
+
# format: "Your custom message for the warning of X9999."
|
279
|
+
# E9999:
|
280
|
+
# package: "core"
|
281
|
+
# classes:
|
282
|
+
# - "ERR:X99"
|
283
|
+
# format: "Your custom message for the warning of E9999."
|
239
284
|
change_list:
|