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
@@ -3,7 +3,7 @@ Feature: W1026
|
|
3
3
|
W1026 detects that type of an argument is incomplete.
|
4
4
|
|
5
5
|
Scenario: incomplete struct type as an argument
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
extern struct st s;
|
9
9
|
extern void foo(struct st);
|
@@ -13,7 +13,7 @@ Feature: W1026
|
|
13
13
|
foo(s); /* W1026 */
|
14
14
|
}
|
15
15
|
"""
|
16
|
-
When I successfully run `adlint
|
16
|
+
When I successfully run `adlint fixture.c` on noarch
|
17
17
|
Then the output should exactly match with:
|
18
18
|
| mesg | line | column |
|
19
19
|
| W0118 | 1 | 18 |
|
@@ -24,7 +24,7 @@ Feature: W1026
|
|
24
24
|
| W0628 | 4 | 6 |
|
25
25
|
|
26
26
|
Scenario: incomplete typedef-ed struct type as an argument
|
27
|
-
Given a target source named "
|
27
|
+
Given a target source named "fixture.c" with:
|
28
28
|
"""
|
29
29
|
typedef struct st st_t;
|
30
30
|
|
@@ -36,7 +36,7 @@ Feature: W1026
|
|
36
36
|
foo(s); /* W1026 */
|
37
37
|
}
|
38
38
|
"""
|
39
|
-
When I successfully run `adlint
|
39
|
+
When I successfully run `adlint fixture.c` on noarch
|
40
40
|
Then the output should exactly match with:
|
41
41
|
| mesg | line | column |
|
42
42
|
| W0118 | 3 | 13 |
|
@@ -48,7 +48,7 @@ Feature: W1026
|
|
48
48
|
| W0628 | 6 | 6 |
|
49
49
|
|
50
50
|
Scenario: complete struct type as an argument
|
51
|
-
Given a target source named "
|
51
|
+
Given a target source named "fixture.c" with:
|
52
52
|
"""
|
53
53
|
typedef struct {
|
54
54
|
int i;
|
@@ -62,7 +62,7 @@ Feature: W1026
|
|
62
62
|
foo(s); /* OK */
|
63
63
|
}
|
64
64
|
"""
|
65
|
-
When I successfully run `adlint
|
65
|
+
When I successfully run `adlint fixture.c` on noarch
|
66
66
|
Then the output should exactly match with:
|
67
67
|
| mesg | line | column |
|
68
68
|
| W0118 | 5 | 13 |
|
@@ -73,7 +73,7 @@ Feature: W1026
|
|
73
73
|
| W0628 | 8 | 6 |
|
74
74
|
|
75
75
|
Scenario: multiple incomplete typed arguments
|
76
|
-
Given a target source named "
|
76
|
+
Given a target source named "fixture.c" with:
|
77
77
|
"""
|
78
78
|
typedef struct st st_t;
|
79
79
|
typedef enum en en_t;
|
@@ -87,7 +87,7 @@ Feature: W1026
|
|
87
87
|
foo(s, 0, e); /* two W1026 */
|
88
88
|
}
|
89
89
|
"""
|
90
|
-
When I successfully run `adlint
|
90
|
+
When I successfully run `adlint fixture.c` on noarch
|
91
91
|
Then the output should exactly match with:
|
92
92
|
| mesg | line | column |
|
93
93
|
| W0118 | 4 | 13 |
|
@@ -0,0 +1,84 @@
|
|
1
|
+
Feature: W1030
|
2
|
+
|
3
|
+
W1030 detects that label with the same name is used more than two.
|
4
|
+
|
5
|
+
Scenario: same named label is used in twice
|
6
|
+
Given a target source named "fixture.c" with:
|
7
|
+
"""
|
8
|
+
extern void func(const int a, const int b)
|
9
|
+
{
|
10
|
+
if (a == 0) {
|
11
|
+
int c = 0;
|
12
|
+
RETRY:
|
13
|
+
b = 10;
|
14
|
+
}
|
15
|
+
|
16
|
+
if (b != 0) {
|
17
|
+
goto RETRY;
|
18
|
+
}
|
19
|
+
RETRY: /* W1030 */
|
20
|
+
b = 1;
|
21
|
+
}
|
22
|
+
"""
|
23
|
+
When I successfully run `adlint fixture.c` on noarch
|
24
|
+
Then the output should exactly match with:
|
25
|
+
| mesg | line | column |
|
26
|
+
| W0117 | 1 | 13 |
|
27
|
+
| W0100 | 4 | 13 |
|
28
|
+
| W0564 | 10 | 9 |
|
29
|
+
| W1072 | 10 | 9 |
|
30
|
+
| W1030 | 12 | 1 |
|
31
|
+
| W0628 | 1 | 13 |
|
32
|
+
|
33
|
+
Scenario: only one label in a function
|
34
|
+
Given a target source named "fixture.c" with:
|
35
|
+
"""
|
36
|
+
extern void func(const int a, const int b)
|
37
|
+
{
|
38
|
+
if (a == 0) {
|
39
|
+
int c = 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
if (b != 0) {
|
43
|
+
goto RETRY;
|
44
|
+
}
|
45
|
+
RETRY: /* OK */
|
46
|
+
b = 1;
|
47
|
+
}
|
48
|
+
"""
|
49
|
+
When I successfully run `adlint fixture.c` on noarch
|
50
|
+
Then the output should exactly match with:
|
51
|
+
| mesg | line | column |
|
52
|
+
| W0117 | 1 | 13 |
|
53
|
+
| W0100 | 4 | 13 |
|
54
|
+
| W1072 | 8 | 9 |
|
55
|
+
| W0628 | 1 | 13 |
|
56
|
+
|
57
|
+
Scenario: two different labels in a function
|
58
|
+
Given a target source named "fixture.c" with:
|
59
|
+
"""
|
60
|
+
extern void func(const int a, const int b)
|
61
|
+
{
|
62
|
+
if (a == 0) {
|
63
|
+
goto ERROR;
|
64
|
+
}
|
65
|
+
|
66
|
+
if (b != 0) {
|
67
|
+
goto RETRY;
|
68
|
+
}
|
69
|
+
|
70
|
+
ERROR: /* OK */
|
71
|
+
b = 0;
|
72
|
+
RETRY: /* OK */
|
73
|
+
b = 1;
|
74
|
+
}
|
75
|
+
"""
|
76
|
+
When I successfully run `adlint fixture.c` on noarch
|
77
|
+
Then the output should exactly match with:
|
78
|
+
| mesg | line | column |
|
79
|
+
| W0117 | 1 | 13 |
|
80
|
+
| W1072 | 4 | 9 |
|
81
|
+
| W1072 | 8 | 9 |
|
82
|
+
| W0628 | 1 | 13 |
|
83
|
+
|
84
|
+
# vim:ts=2:sw=2:sts=2:et:
|
@@ -5,7 +5,7 @@ Feature: W1031
|
|
5
5
|
|
6
6
|
Scenario: function declaration with `static' and function definition without
|
7
7
|
storage-class-specifier
|
8
|
-
Given a target source named "
|
8
|
+
Given a target source named "fixture.c" with:
|
9
9
|
"""
|
10
10
|
static int foo(long);
|
11
11
|
|
@@ -13,7 +13,7 @@ Feature: W1031
|
|
13
13
|
return (int) l;
|
14
14
|
}
|
15
15
|
"""
|
16
|
-
When I successfully run `adlint
|
16
|
+
When I successfully run `adlint fixture.c` on noarch
|
17
17
|
Then the output should exactly match with:
|
18
18
|
| mesg | line | column |
|
19
19
|
| W1075 | 3 | 5 |
|
@@ -23,7 +23,7 @@ Feature: W1031
|
|
23
23
|
|
24
24
|
Scenario: function declaration with `extern' and function definition without
|
25
25
|
storage-class-specifier
|
26
|
-
Given a target source named "
|
26
|
+
Given a target source named "fixture.c" with:
|
27
27
|
"""
|
28
28
|
extern int foo(long);
|
29
29
|
|
@@ -31,7 +31,7 @@ Feature: W1031
|
|
31
31
|
return (int) l;
|
32
32
|
}
|
33
33
|
"""
|
34
|
-
When I successfully run `adlint
|
34
|
+
When I successfully run `adlint fixture.c` on noarch
|
35
35
|
Then the output should exactly match with:
|
36
36
|
| mesg | line | column |
|
37
37
|
| W0118 | 1 | 12 |
|
@@ -40,7 +40,7 @@ Feature: W1031
|
|
40
40
|
|
41
41
|
Scenario: function declaration without storage-class-specifier and function
|
42
42
|
definition without storage-class-specifier
|
43
|
-
Given a target source named "
|
43
|
+
Given a target source named "fixture.c" with:
|
44
44
|
"""
|
45
45
|
int foo(long);
|
46
46
|
|
@@ -48,7 +48,7 @@ Feature: W1031
|
|
48
48
|
return (int) l;
|
49
49
|
}
|
50
50
|
"""
|
51
|
-
When I successfully run `adlint
|
51
|
+
When I successfully run `adlint fixture.c` on noarch
|
52
52
|
Then the output should exactly match with:
|
53
53
|
| mesg | line | column |
|
54
54
|
| W0118 | 1 | 5 |
|
@@ -57,7 +57,7 @@ Feature: W1031
|
|
57
57
|
|
58
58
|
Scenario: function declaration without storage-class-specifier and function
|
59
59
|
definition with `static'
|
60
|
-
Given a target source named "
|
60
|
+
Given a target source named "fixture.c" with:
|
61
61
|
"""
|
62
62
|
int foo(long);
|
63
63
|
|
@@ -65,7 +65,7 @@ Feature: W1031
|
|
65
65
|
return (int) l;
|
66
66
|
}
|
67
67
|
"""
|
68
|
-
When I successfully run `adlint
|
68
|
+
When I successfully run `adlint fixture.c` on noarch
|
69
69
|
Then the output should exactly match with:
|
70
70
|
| mesg | line | column |
|
71
71
|
| W0118 | 1 | 5 |
|
@@ -75,7 +75,7 @@ Feature: W1031
|
|
75
75
|
|
76
76
|
Scenario: function declaration without storage-class-specifier and function
|
77
77
|
definition with `extern'
|
78
|
-
Given a target source named "
|
78
|
+
Given a target source named "fixture.c" with:
|
79
79
|
"""
|
80
80
|
int foo(long);
|
81
81
|
|
@@ -83,7 +83,7 @@ Feature: W1031
|
|
83
83
|
return (int) l;
|
84
84
|
}
|
85
85
|
"""
|
86
|
-
When I successfully run `adlint
|
86
|
+
When I successfully run `adlint fixture.c` on noarch
|
87
87
|
Then the output should exactly match with:
|
88
88
|
| mesg | line | column |
|
89
89
|
| W0118 | 1 | 5 |
|
@@ -92,7 +92,7 @@ Feature: W1031
|
|
92
92
|
|
93
93
|
Scenario: function declaration with `static' and function definition with
|
94
94
|
`extern'
|
95
|
-
Given a target source named "
|
95
|
+
Given a target source named "fixture.c" with:
|
96
96
|
"""
|
97
97
|
static int foo(long);
|
98
98
|
|
@@ -100,7 +100,7 @@ Feature: W1031
|
|
100
100
|
return (int) l;
|
101
101
|
}
|
102
102
|
"""
|
103
|
-
When I successfully run `adlint
|
103
|
+
When I successfully run `adlint fixture.c` on noarch
|
104
104
|
Then the output should exactly match with:
|
105
105
|
| mesg | line | column |
|
106
106
|
| W1031 | 3 | 12 |
|
@@ -111,7 +111,7 @@ Feature: W1031
|
|
111
111
|
|
112
112
|
Scenario: function declaration with `extern' and function definition with
|
113
113
|
`static'
|
114
|
-
Given a target source named "
|
114
|
+
Given a target source named "fixture.c" with:
|
115
115
|
"""
|
116
116
|
extern int foo(long);
|
117
117
|
|
@@ -119,7 +119,7 @@ Feature: W1031
|
|
119
119
|
return (int) l;
|
120
120
|
}
|
121
121
|
"""
|
122
|
-
When I successfully run `adlint
|
122
|
+
When I successfully run `adlint fixture.c` on noarch
|
123
123
|
Then the output should exactly match with:
|
124
124
|
| mesg | line | column |
|
125
125
|
| W0118 | 1 | 12 |
|
@@ -129,24 +129,24 @@ Feature: W1031
|
|
129
129
|
|
130
130
|
Scenario: variable declaration with `extern' and variable definition without
|
131
131
|
storage-class-specifier
|
132
|
-
Given a target source named "
|
132
|
+
Given a target source named "fixture.c" with:
|
133
133
|
"""
|
134
134
|
extern int i;
|
135
135
|
int i = 0; /* OK */
|
136
136
|
"""
|
137
|
-
When I successfully run `adlint
|
137
|
+
When I successfully run `adlint fixture.c` on noarch
|
138
138
|
Then the output should exactly match with:
|
139
139
|
| mesg | line | column |
|
140
140
|
| W0118 | 1 | 12 |
|
141
141
|
|
142
142
|
Scenario: variable definition without storage-class-specifier and variable
|
143
143
|
declaration with `extern'
|
144
|
-
Given a target source named "
|
144
|
+
Given a target source named "fixture.c" with:
|
145
145
|
"""
|
146
146
|
int i;
|
147
147
|
extern int i; /* OK */
|
148
148
|
"""
|
149
|
-
When I successfully run `adlint
|
149
|
+
When I successfully run `adlint fixture.c` on noarch
|
150
150
|
Then the output should exactly match with:
|
151
151
|
| mesg | line | column |
|
152
152
|
| W0117 | 1 | 5 |
|
@@ -154,12 +154,12 @@ Feature: W1031
|
|
154
154
|
|
155
155
|
Scenario: function declaration with `static' and function definition with
|
156
156
|
`extern'
|
157
|
-
Given a target source named "
|
157
|
+
Given a target source named "fixture.c" with:
|
158
158
|
"""
|
159
159
|
static int i;
|
160
160
|
extern int i = 0; /* W1031 */
|
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
|
| W1031 | 2 | 12 |
|
@@ -167,12 +167,12 @@ Feature: W1031
|
|
167
167
|
|
168
168
|
Scenario: variable declaration with `extern' and variable definition with
|
169
169
|
`static'
|
170
|
-
Given a target source named "
|
170
|
+
Given a target source named "fixture.c" with:
|
171
171
|
"""
|
172
172
|
extern int i;
|
173
173
|
static int i = 0; /* W1031 */
|
174
174
|
"""
|
175
|
-
When I successfully run `adlint
|
175
|
+
When I successfully run `adlint fixture.c` on noarch
|
176
176
|
Then the output should exactly match with:
|
177
177
|
| mesg | line | column |
|
178
178
|
| W0118 | 1 | 12 |
|
@@ -180,7 +180,7 @@ Feature: W1031
|
|
180
180
|
|
181
181
|
Scenario: function definition with `static' and function declaration without
|
182
182
|
storage-class-specifier
|
183
|
-
Given a target source named "
|
183
|
+
Given a target source named "fixture.c" with:
|
184
184
|
"""
|
185
185
|
static int foo(long l) {
|
186
186
|
return (int) l;
|
@@ -188,7 +188,7 @@ Feature: W1031
|
|
188
188
|
|
189
189
|
int foo(long); /* OK */
|
190
190
|
"""
|
191
|
-
When I successfully run `adlint
|
191
|
+
When I successfully run `adlint fixture.c` on noarch
|
192
192
|
Then the output should exactly match with:
|
193
193
|
| mesg | line | column |
|
194
194
|
| W1076 | 1 | 12 |
|
@@ -200,7 +200,7 @@ Feature: W1031
|
|
200
200
|
|
201
201
|
Scenario: function definition with `extern' and function declaration without
|
202
202
|
storage-class-specifier
|
203
|
-
Given a target source named "
|
203
|
+
Given a target source named "fixture.c" with:
|
204
204
|
"""
|
205
205
|
extern int foo(long l) {
|
206
206
|
return (int) l;
|
@@ -208,7 +208,7 @@ Feature: W1031
|
|
208
208
|
|
209
209
|
int foo(long); /* OK */
|
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
|
| W0117 | 1 | 12 |
|
@@ -219,7 +219,7 @@ Feature: W1031
|
|
219
219
|
|
220
220
|
Scenario: function definition without storage-class-specifier and function
|
221
221
|
declaration without storage-class-specifier
|
222
|
-
Given a target source named "
|
222
|
+
Given a target source named "fixture.c" with:
|
223
223
|
"""
|
224
224
|
int foo(long l) {
|
225
225
|
return (int) l;
|
@@ -227,7 +227,7 @@ Feature: W1031
|
|
227
227
|
|
228
228
|
int foo(long); /* OK */
|
229
229
|
"""
|
230
|
-
When I successfully run `adlint
|
230
|
+
When I successfully run `adlint fixture.c` on noarch
|
231
231
|
Then the output should exactly match with:
|
232
232
|
| mesg | line | column |
|
233
233
|
| W0117 | 1 | 5 |
|
@@ -238,7 +238,7 @@ Feature: W1031
|
|
238
238
|
|
239
239
|
Scenario: function definition without storage-class-specifier and function
|
240
240
|
declaration with `static'
|
241
|
-
Given a target source named "
|
241
|
+
Given a target source named "fixture.c" with:
|
242
242
|
"""
|
243
243
|
int foo(long l) {
|
244
244
|
return (int) l;
|
@@ -246,7 +246,7 @@ Feature: W1031
|
|
246
246
|
|
247
247
|
static int foo(long); /* W1031 */
|
248
248
|
"""
|
249
|
-
When I successfully run `adlint
|
249
|
+
When I successfully run `adlint fixture.c` on noarch
|
250
250
|
Then the output should exactly match with:
|
251
251
|
| mesg | line | column |
|
252
252
|
| W0117 | 1 | 5 |
|
@@ -258,7 +258,7 @@ Feature: W1031
|
|
258
258
|
|
259
259
|
Scenario: function definition without storage-class-specifier and function
|
260
260
|
declaration with `extern'
|
261
|
-
Given a target source named "
|
261
|
+
Given a target source named "fixture.c" with:
|
262
262
|
"""
|
263
263
|
int foo(long l) {
|
264
264
|
return (int) l;
|
@@ -266,7 +266,7 @@ Feature: W1031
|
|
266
266
|
|
267
267
|
extern int foo(long); /* OK */
|
268
268
|
"""
|
269
|
-
When I successfully run `adlint
|
269
|
+
When I successfully run `adlint fixture.c` on noarch
|
270
270
|
Then the output should exactly match with:
|
271
271
|
| mesg | line | column |
|
272
272
|
| W0117 | 1 | 5 |
|
@@ -277,7 +277,7 @@ Feature: W1031
|
|
277
277
|
|
278
278
|
Scenario: function definition with `static' and function declaration with
|
279
279
|
`extern'
|
280
|
-
Given a target source named "
|
280
|
+
Given a target source named "fixture.c" with:
|
281
281
|
"""
|
282
282
|
static int foo(long l) {
|
283
283
|
return (int) l;
|
@@ -285,7 +285,7 @@ Feature: W1031
|
|
285
285
|
|
286
286
|
extern int foo(long l); /* W1031 */
|
287
287
|
"""
|
288
|
-
When I successfully run `adlint
|
288
|
+
When I successfully run `adlint fixture.c` on noarch
|
289
289
|
Then the output should exactly match with:
|
290
290
|
| mesg | line | column |
|
291
291
|
| W1076 | 1 | 12 |
|
@@ -297,7 +297,7 @@ Feature: W1031
|
|
297
297
|
|
298
298
|
Scenario: function definition with `extern' and function declaration with
|
299
299
|
`static'
|
300
|
-
Given a target source named "
|
300
|
+
Given a target source named "fixture.c" with:
|
301
301
|
"""
|
302
302
|
extern int foo(long l) {
|
303
303
|
return (int) l;
|
@@ -305,7 +305,7 @@ Feature: W1031
|
|
305
305
|
|
306
306
|
static int foo(long); /* W1031 */
|
307
307
|
"""
|
308
|
-
When I successfully run `adlint
|
308
|
+
When I successfully run `adlint fixture.c` on noarch
|
309
309
|
Then the output should exactly match with:
|
310
310
|
| mesg | line | column |
|
311
311
|
| W0117 | 1 | 12 |
|