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
@@ -4,14 +4,14 @@ Feature: W0698
|
|
4
4
|
non-void function.
|
5
5
|
|
6
6
|
Scenario: returning nothing from `int' function
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
int func(void)
|
10
10
|
{
|
11
11
|
return; /* W0698 */
|
12
12
|
}
|
13
13
|
"""
|
14
|
-
When I successfully run `adlint
|
14
|
+
When I successfully run `adlint fixture.c` on noarch
|
15
15
|
Then the output should exactly match with:
|
16
16
|
| mesg | line | column |
|
17
17
|
| W0117 | 1 | 5 |
|
@@ -3,14 +3,14 @@ Feature: W0699
|
|
3
3
|
W0699 detects that`return;' statement is found at except void function.
|
4
4
|
|
5
5
|
Scenario: return statement
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
extern func(void)
|
9
9
|
{
|
10
10
|
return; /* W0699 */
|
11
11
|
}
|
12
12
|
"""
|
13
|
-
When I successfully run `adlint
|
13
|
+
When I successfully run `adlint fixture.c` on noarch
|
14
14
|
Then the output should exactly match with:
|
15
15
|
| mesg | line | column |
|
16
16
|
| W0117 | 1 | 8 |
|
@@ -4,13 +4,13 @@ Feature: W0700
|
|
4
4
|
which is implicitly declared to return `int' value.
|
5
5
|
|
6
6
|
Scenario: no `return' statement in the implicitly typed function
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
extern func(void) /* W0700 */
|
10
10
|
{
|
11
11
|
}
|
12
12
|
"""
|
13
|
-
When I successfully run `adlint
|
13
|
+
When I successfully run `adlint fixture.c` on noarch
|
14
14
|
Then the output should exactly match with:
|
15
15
|
| mesg | line | column |
|
16
16
|
| W0117 | 1 | 8 |
|
@@ -21,14 +21,14 @@ Feature: W0700
|
|
21
21
|
|
22
22
|
Scenario: a `return' statement without expression in the implicitly typed
|
23
23
|
function
|
24
|
-
Given a target source named "
|
24
|
+
Given a target source named "fixture.c" with:
|
25
25
|
"""
|
26
26
|
extern func(void) /* W0700 */
|
27
27
|
{
|
28
28
|
return;
|
29
29
|
}
|
30
30
|
"""
|
31
|
-
When I successfully run `adlint
|
31
|
+
When I successfully run `adlint fixture.c` on noarch
|
32
32
|
Then the output should exactly match with:
|
33
33
|
| mesg | line | column |
|
34
34
|
| W0117 | 1 | 8 |
|
@@ -39,14 +39,14 @@ Feature: W0700
|
|
39
39
|
|
40
40
|
Scenario: a `return' statement with expression in the implicitly typed
|
41
41
|
function
|
42
|
-
Given a target source named "
|
42
|
+
Given a target source named "fixture.c" with:
|
43
43
|
"""
|
44
44
|
extern func(void) /* OK */
|
45
45
|
{
|
46
46
|
return 0;
|
47
47
|
}
|
48
48
|
"""
|
49
|
-
When I successfully run `adlint
|
49
|
+
When I successfully run `adlint fixture.c` on noarch
|
50
50
|
Then the output should exactly match with:
|
51
51
|
| mesg | line | column |
|
52
52
|
| W0117 | 1 | 8 |
|
@@ -3,7 +3,7 @@ Feature: W0703
|
|
3
3
|
W0703 detects that a tag name is hiding other tag names.
|
4
4
|
|
5
5
|
Scenario: tag hiding declaration in function-definition
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
struct Foo {
|
9
9
|
int i;
|
@@ -19,7 +19,7 @@ Feature: W0703
|
|
19
19
|
return foo.i;
|
20
20
|
}
|
21
21
|
"""
|
22
|
-
When I successfully run `adlint
|
22
|
+
When I successfully run `adlint fixture.c` on noarch
|
23
23
|
Then the output should exactly match with:
|
24
24
|
| mesg | line | column |
|
25
25
|
| W0703 | 7 | 11 |
|
@@ -29,7 +29,7 @@ Feature: W0703
|
|
29
29
|
| W0551 | 7 | 11 |
|
30
30
|
|
31
31
|
Scenario: tag hiding declaration in the global scope
|
32
|
-
Given a target source named "
|
32
|
+
Given a target source named "fixture.c" with:
|
33
33
|
"""
|
34
34
|
struct Foo {
|
35
35
|
int i;
|
@@ -40,7 +40,7 @@ Feature: W0703
|
|
40
40
|
int j;
|
41
41
|
} foo = { 0 };
|
42
42
|
"""
|
43
|
-
When I successfully run `adlint
|
43
|
+
When I successfully run `adlint fixture.c` on noarch
|
44
44
|
Then the output should exactly match with:
|
45
45
|
| mesg | line | column |
|
46
46
|
| W0703 | 5 | 14 |
|
@@ -49,7 +49,7 @@ Feature: W0703
|
|
49
49
|
| W0551 | 5 | 14 |
|
50
50
|
|
51
51
|
Scenario: enum declaration in global and function scope
|
52
|
-
Given a target source named "
|
52
|
+
Given a target source named "fixture.c" with:
|
53
53
|
"""
|
54
54
|
enum E { FOO, BAR };
|
55
55
|
|
@@ -59,7 +59,7 @@ Feature: W0703
|
|
59
59
|
return e;
|
60
60
|
}
|
61
61
|
"""
|
62
|
-
When I successfully run `adlint
|
62
|
+
When I successfully run `adlint fixture.c` on noarch
|
63
63
|
Then the output should exactly match with:
|
64
64
|
| mesg | line | column |
|
65
65
|
| W0703 | 5 | 10 |
|
@@ -5,7 +5,7 @@ Feature: W0705
|
|
5
5
|
|
6
6
|
Scenario: array-subscript-expression with non-constant subscript may cause
|
7
7
|
OOB access in an initializer
|
8
|
-
Given a target source named "
|
8
|
+
Given a target source named "fixture.c" with:
|
9
9
|
"""
|
10
10
|
extern int a[5];
|
11
11
|
|
@@ -18,7 +18,7 @@ Feature: W0705
|
|
18
18
|
return i;
|
19
19
|
}
|
20
20
|
"""
|
21
|
-
When I successfully run `adlint
|
21
|
+
When I successfully run `adlint fixture.c` on noarch
|
22
22
|
Then the output should exactly match with:
|
23
23
|
| mesg | line | column |
|
24
24
|
| W0118 | 1 | 12 |
|
@@ -34,7 +34,7 @@ Feature: W0705
|
|
34
34
|
|
35
35
|
Scenario: array-subscript-expression with non-constant subscript may cause
|
36
36
|
OOB access in rhs operand of an assignment-expression
|
37
|
-
Given a target source named "
|
37
|
+
Given a target source named "fixture.c" with:
|
38
38
|
"""
|
39
39
|
extern int a[5];
|
40
40
|
|
@@ -47,7 +47,7 @@ Feature: W0705
|
|
47
47
|
return j;
|
48
48
|
}
|
49
49
|
"""
|
50
|
-
When I successfully run `adlint
|
50
|
+
When I successfully run `adlint fixture.c` on noarch
|
51
51
|
Then the output should exactly match with:
|
52
52
|
| mesg | line | column |
|
53
53
|
| W0118 | 1 | 12 |
|
@@ -61,7 +61,7 @@ Feature: W0705
|
|
61
61
|
|
62
62
|
Scenario: array-subscript-expression with non-constant subscript may cause
|
63
63
|
OOB access in lhs operand of an assignment-expression
|
64
|
-
Given a target source named "
|
64
|
+
Given a target source named "fixture.c" with:
|
65
65
|
"""
|
66
66
|
extern int a[5];
|
67
67
|
|
@@ -72,7 +72,7 @@ Feature: W0705
|
|
72
72
|
}
|
73
73
|
}
|
74
74
|
"""
|
75
|
-
When I successfully run `adlint
|
75
|
+
When I successfully run `adlint fixture.c` on noarch
|
76
76
|
Then the output should exactly match with:
|
77
77
|
| mesg | line | column |
|
78
78
|
| W0118 | 1 | 12 |
|
@@ -86,7 +86,7 @@ Feature: W0705
|
|
86
86
|
|
87
87
|
Scenario: indirection-expression with non-constant subscript may cause OOB
|
88
88
|
access in rhs operand of an assignment-expression
|
89
|
-
Given a target source named "
|
89
|
+
Given a target source named "fixture.c" with:
|
90
90
|
"""
|
91
91
|
extern int a[5];
|
92
92
|
|
@@ -99,7 +99,7 @@ Feature: W0705
|
|
99
99
|
return j;
|
100
100
|
}
|
101
101
|
"""
|
102
|
-
When I successfully run `adlint
|
102
|
+
When I successfully run `adlint fixture.c` on noarch
|
103
103
|
Then the output should exactly match with:
|
104
104
|
| mesg | line | column |
|
105
105
|
| W0118 | 1 | 12 |
|
@@ -116,7 +116,7 @@ Feature: W0705
|
|
116
116
|
|
117
117
|
Scenario: indirection-expression with non-constant subscript may cause OOB
|
118
118
|
access in lhs operand of an assignment-expression
|
119
|
-
Given a target source named "
|
119
|
+
Given a target source named "fixture.c" with:
|
120
120
|
"""
|
121
121
|
extern int a[5];
|
122
122
|
|
@@ -127,7 +127,7 @@ Feature: W0705
|
|
127
127
|
}
|
128
128
|
}
|
129
129
|
"""
|
130
|
-
When I successfully run `adlint
|
130
|
+
When I successfully run `adlint fixture.c` on noarch
|
131
131
|
Then the output should exactly match with:
|
132
132
|
| mesg | line | column |
|
133
133
|
| W0118 | 1 | 12 |
|
@@ -146,7 +146,7 @@ Feature: W0705
|
|
146
146
|
|
147
147
|
Scenario: array-subscript-expression with non-constant subscript must not
|
148
148
|
cuase OOB access in initializer
|
149
|
-
Given a target source named "
|
149
|
+
Given a target source named "fixture.c" with:
|
150
150
|
"""
|
151
151
|
extern int a[5];
|
152
152
|
|
@@ -159,7 +159,7 @@ Feature: W0705
|
|
159
159
|
return i;
|
160
160
|
}
|
161
161
|
"""
|
162
|
-
When I successfully run `adlint
|
162
|
+
When I successfully run `adlint fixture.c` on noarch
|
163
163
|
Then the output should exactly match with:
|
164
164
|
| mesg | line | column |
|
165
165
|
| W0118 | 1 | 12 |
|
@@ -174,7 +174,7 @@ Feature: W0705
|
|
174
174
|
|
175
175
|
Scenario: array-subscript-expression with non-constant subscript must not
|
176
176
|
cause OOB access in rhs operand of an assignment-expression
|
177
|
-
Given a target source named "
|
177
|
+
Given a target source named "fixture.c" with:
|
178
178
|
"""
|
179
179
|
extern int a[5];
|
180
180
|
|
@@ -187,7 +187,7 @@ Feature: W0705
|
|
187
187
|
return j;
|
188
188
|
}
|
189
189
|
"""
|
190
|
-
When I successfully run `adlint
|
190
|
+
When I successfully run `adlint fixture.c` on noarch
|
191
191
|
Then the output should exactly match with:
|
192
192
|
| mesg | line | column |
|
193
193
|
| W0118 | 1 | 12 |
|
@@ -200,7 +200,7 @@ Feature: W0705
|
|
200
200
|
|
201
201
|
Scenario: array-subscript-expression with non-constant subscript must not
|
202
202
|
cause OOB access in lhs operand of an assignment-expression
|
203
|
-
Given a target source named "
|
203
|
+
Given a target source named "fixture.c" with:
|
204
204
|
"""
|
205
205
|
extern int a[5];
|
206
206
|
|
@@ -211,7 +211,7 @@ Feature: W0705
|
|
211
211
|
}
|
212
212
|
}
|
213
213
|
"""
|
214
|
-
When I successfully run `adlint
|
214
|
+
When I successfully run `adlint fixture.c` on noarch
|
215
215
|
Then the output should exactly match with:
|
216
216
|
| mesg | line | column |
|
217
217
|
| W0118 | 1 | 12 |
|
@@ -224,7 +224,7 @@ Feature: W0705
|
|
224
224
|
|
225
225
|
Scenario: indirection-expression with non-constant subscript must not cause
|
226
226
|
OOB access in rhs operand of an assignment-expression
|
227
|
-
Given a target source named "
|
227
|
+
Given a target source named "fixture.c" with:
|
228
228
|
"""
|
229
229
|
extern int a[5];
|
230
230
|
|
@@ -237,7 +237,7 @@ Feature: W0705
|
|
237
237
|
return j;
|
238
238
|
}
|
239
239
|
"""
|
240
|
-
When I successfully run `adlint
|
240
|
+
When I successfully run `adlint fixture.c` on noarch
|
241
241
|
Then the output should exactly match with:
|
242
242
|
| mesg | line | column |
|
243
243
|
| W0118 | 1 | 12 |
|
@@ -253,7 +253,7 @@ Feature: W0705
|
|
253
253
|
|
254
254
|
Scenario: indirection-expression with non-constant subscript must not cause
|
255
255
|
OOB access in lhs operand of an assignment-expression
|
256
|
-
Given a target source named "
|
256
|
+
Given a target source named "fixture.c" with:
|
257
257
|
"""
|
258
258
|
extern int a[5];
|
259
259
|
|
@@ -264,7 +264,7 @@ Feature: W0705
|
|
264
264
|
}
|
265
265
|
}
|
266
266
|
"""
|
267
|
-
When I successfully run `adlint
|
267
|
+
When I successfully run `adlint fixture.c` on noarch
|
268
268
|
Then the output should exactly match with:
|
269
269
|
| mesg | line | column |
|
270
270
|
| W0118 | 1 | 12 |
|
@@ -282,7 +282,7 @@ Feature: W0705
|
|
282
282
|
|
283
283
|
Scenario: indirection-expression with non-constant subscript should not cause
|
284
284
|
OOB access in an initializer
|
285
|
-
Given a target source named "
|
285
|
+
Given a target source named "fixture.c" with:
|
286
286
|
"""
|
287
287
|
extern int a[5];
|
288
288
|
|
@@ -296,7 +296,7 @@ Feature: W0705
|
|
296
296
|
return i;
|
297
297
|
}
|
298
298
|
"""
|
299
|
-
When I successfully run `adlint
|
299
|
+
When I successfully run `adlint fixture.c` on noarch
|
300
300
|
Then the output should exactly match with:
|
301
301
|
| mesg | line | column |
|
302
302
|
| W0118 | 1 | 12 |
|
@@ -315,7 +315,7 @@ Feature: W0705
|
|
315
315
|
|
316
316
|
Scenario: indirection-expression with non-constant subscript may and should
|
317
317
|
not cause OOB access in an initializer
|
318
|
-
Given a target source named "
|
318
|
+
Given a target source named "fixture.c" with:
|
319
319
|
"""
|
320
320
|
extern int a[5];
|
321
321
|
|
@@ -329,7 +329,7 @@ Feature: W0705
|
|
329
329
|
return i;
|
330
330
|
}
|
331
331
|
"""
|
332
|
-
When I successfully run `adlint
|
332
|
+
When I successfully run `adlint fixture.c` on noarch
|
333
333
|
Then the output should exactly match with:
|
334
334
|
| mesg | line | column |
|
335
335
|
| W0118 | 1 | 12 |
|
@@ -5,7 +5,7 @@ Feature: W0707
|
|
5
5
|
|
6
6
|
Scenario: array-subscript-expression with constant subscript must cause OOB
|
7
7
|
access in an initializer
|
8
|
-
Given a target source named "
|
8
|
+
Given a target source named "fixture.c" with:
|
9
9
|
"""
|
10
10
|
extern int a[5];
|
11
11
|
|
@@ -15,7 +15,7 @@ Feature: W0707
|
|
15
15
|
return i;
|
16
16
|
}
|
17
17
|
"""
|
18
|
-
When I successfully run `adlint
|
18
|
+
When I successfully run `adlint fixture.c` on noarch
|
19
19
|
Then the output should exactly match with:
|
20
20
|
| mesg | line | column |
|
21
21
|
| W0118 | 1 | 12 |
|
@@ -26,7 +26,7 @@ Feature: W0707
|
|
26
26
|
|
27
27
|
Scenario: array-subscript-expression with constant subscript must cause OOB
|
28
28
|
access in rhs operand of an assignment-expression
|
29
|
-
Given a target source named "
|
29
|
+
Given a target source named "fixture.c" with:
|
30
30
|
"""
|
31
31
|
extern int a[5];
|
32
32
|
|
@@ -37,7 +37,7 @@ Feature: W0707
|
|
37
37
|
return i;
|
38
38
|
}
|
39
39
|
"""
|
40
|
-
When I successfully run `adlint
|
40
|
+
When I successfully run `adlint fixture.c` on noarch
|
41
41
|
Then the output should exactly match with:
|
42
42
|
| mesg | line | column |
|
43
43
|
| W0118 | 1 | 12 |
|
@@ -47,7 +47,7 @@ Feature: W0707
|
|
47
47
|
|
48
48
|
Scenario: array-subscript-expression with constant subscript must cause OOB
|
49
49
|
access in lhs operand of an assignment-expression
|
50
|
-
Given a target source named "
|
50
|
+
Given a target source named "fixture.c" with:
|
51
51
|
"""
|
52
52
|
extern int a[5];
|
53
53
|
|
@@ -56,7 +56,7 @@ Feature: W0707
|
|
56
56
|
a[5] = i; /* W0707 */
|
57
57
|
}
|
58
58
|
"""
|
59
|
-
When I successfully run `adlint
|
59
|
+
When I successfully run `adlint fixture.c` on noarch
|
60
60
|
Then the output should exactly match with:
|
61
61
|
| mesg | line | column |
|
62
62
|
| W0118 | 1 | 12 |
|
@@ -67,7 +67,7 @@ Feature: W0707
|
|
67
67
|
|
68
68
|
Scenario: indirection-expression with constant subscript must cause OOB
|
69
69
|
access in rhs operand of an assignment-expression
|
70
|
-
Given a target source named "
|
70
|
+
Given a target source named "fixture.c" with:
|
71
71
|
"""
|
72
72
|
extern int a[5];
|
73
73
|
|
@@ -78,7 +78,7 @@ Feature: W0707
|
|
78
78
|
return i;
|
79
79
|
}
|
80
80
|
"""
|
81
|
-
When I successfully run `adlint
|
81
|
+
When I successfully run `adlint fixture.c` on noarch
|
82
82
|
Then the output should exactly match with:
|
83
83
|
| mesg | line | column |
|
84
84
|
| W0118 | 1 | 12 |
|
@@ -92,7 +92,7 @@ Feature: W0707
|
|
92
92
|
|
93
93
|
Scenario: indirection-expression with constant subscript must cause OOB
|
94
94
|
access in lhs operand of an assignment-expression
|
95
|
-
Given a target source named "
|
95
|
+
Given a target source named "fixture.c" with:
|
96
96
|
"""
|
97
97
|
extern int a[5];
|
98
98
|
|
@@ -101,7 +101,7 @@ Feature: W0707
|
|
101
101
|
*(a - 1 + 6) = i; /* W0707 */
|
102
102
|
}
|
103
103
|
"""
|
104
|
-
When I successfully run `adlint
|
104
|
+
When I successfully run `adlint fixture.c` on noarch
|
105
105
|
Then the output should exactly match with:
|
106
106
|
| mesg | line | column |
|
107
107
|
| W0118 | 1 | 12 |
|
@@ -116,7 +116,7 @@ Feature: W0707
|
|
116
116
|
|
117
117
|
Scenario: array-subscript-expression with constant subscript must not cause
|
118
118
|
OOB access in an initializer
|
119
|
-
Given a target source named "
|
119
|
+
Given a target source named "fixture.c" with:
|
120
120
|
"""
|
121
121
|
extern int a[5];
|
122
122
|
|
@@ -126,7 +126,7 @@ Feature: W0707
|
|
126
126
|
return i;
|
127
127
|
}
|
128
128
|
"""
|
129
|
-
When I successfully run `adlint
|
129
|
+
When I successfully run `adlint fixture.c` on noarch
|
130
130
|
Then the output should exactly match with:
|
131
131
|
| mesg | line | column |
|
132
132
|
| W0118 | 1 | 12 |
|
@@ -136,7 +136,7 @@ Feature: W0707
|
|
136
136
|
|
137
137
|
Scenario: array-subscript-expression with constant subscript must not cause
|
138
138
|
OOB access in rhs operand of an assignment-expression
|
139
|
-
Given a target source named "
|
139
|
+
Given a target source named "fixture.c" with:
|
140
140
|
"""
|
141
141
|
extern int a[5];
|
142
142
|
|
@@ -147,7 +147,7 @@ Feature: W0707
|
|
147
147
|
return i;
|
148
148
|
}
|
149
149
|
"""
|
150
|
-
When I successfully run `adlint
|
150
|
+
When I successfully run `adlint fixture.c` on noarch
|
151
151
|
Then the output should exactly match with:
|
152
152
|
| mesg | line | column |
|
153
153
|
| W0118 | 1 | 12 |
|
@@ -156,7 +156,7 @@ Feature: W0707
|
|
156
156
|
|
157
157
|
Scenario: array-subscript-expression with constant subscript must not cause
|
158
158
|
OOB access in lhs operand of an assignment-expression
|
159
|
-
Given a target source named "
|
159
|
+
Given a target source named "fixture.c" with:
|
160
160
|
"""
|
161
161
|
extern int a[5];
|
162
162
|
|
@@ -165,7 +165,7 @@ Feature: W0707
|
|
165
165
|
a[4] = i; /* OK */
|
166
166
|
}
|
167
167
|
"""
|
168
|
-
When I successfully run `adlint
|
168
|
+
When I successfully run `adlint fixture.c` on noarch
|
169
169
|
Then the output should exactly match with:
|
170
170
|
| mesg | line | column |
|
171
171
|
| W0118 | 1 | 12 |
|
@@ -175,7 +175,7 @@ Feature: W0707
|
|
175
175
|
|
176
176
|
Scenario: indirection-expression with constant subscript must not cause OOB
|
177
177
|
access in rhs operand of an assignment-expression
|
178
|
-
Given a target source named "
|
178
|
+
Given a target source named "fixture.c" with:
|
179
179
|
"""
|
180
180
|
extern int a[5];
|
181
181
|
|
@@ -186,7 +186,7 @@ Feature: W0707
|
|
186
186
|
return i;
|
187
187
|
}
|
188
188
|
"""
|
189
|
-
When I successfully run `adlint
|
189
|
+
When I successfully run `adlint fixture.c` on noarch
|
190
190
|
Then the output should exactly match with:
|
191
191
|
| mesg | line | column |
|
192
192
|
| W0118 | 1 | 12 |
|
@@ -199,7 +199,7 @@ Feature: W0707
|
|
199
199
|
|
200
200
|
Scenario: indirection-expression with constant subscript must not cause OOB
|
201
201
|
access in lhs operand of an assignment-expression
|
202
|
-
Given a target source named "
|
202
|
+
Given a target source named "fixture.c" with:
|
203
203
|
"""
|
204
204
|
extern int a[5];
|
205
205
|
|
@@ -208,7 +208,7 @@ Feature: W0707
|
|
208
208
|
*(a + 4 - 1) = i; /* OK */
|
209
209
|
}
|
210
210
|
"""
|
211
|
-
When I successfully run `adlint
|
211
|
+
When I successfully run `adlint fixture.c` on noarch
|
212
212
|
Then the output should exactly match with:
|
213
213
|
| mesg | line | column |
|
214
214
|
| W0118 | 1 | 12 |
|