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,41 +3,41 @@ Feature: W0689
|
|
3
3
|
W0689 detects that the syntax of #line directive is illformed.
|
4
4
|
|
5
5
|
Scenario: line number as an arithmetic-expression and no file name
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
#line 35 * 100 /* W0689 */
|
9
9
|
"""
|
10
|
-
When I successfully run `adlint
|
10
|
+
When I successfully run `adlint fixture.c` on noarch
|
11
11
|
Then the output should exactly match with:
|
12
12
|
| mesg | line | column |
|
13
13
|
| W0689 | 1 | 10 |
|
14
14
|
|
15
15
|
Scenario: line number as an arithmetic-expression and valid file name
|
16
|
-
Given a target source named "
|
16
|
+
Given a target source named "fixture.c" with:
|
17
17
|
"""
|
18
18
|
#line 35 * 100 "test.c" /* W0689 */
|
19
19
|
"""
|
20
|
-
When I successfully run `adlint
|
20
|
+
When I successfully run `adlint fixture.c` on noarch
|
21
21
|
Then the output should exactly match with:
|
22
22
|
| mesg | line | column |
|
23
23
|
| W0689 | 1 | 10 |
|
24
24
|
|
25
25
|
Scenario: valid line number and invalid file name
|
26
|
-
Given a target source named "
|
26
|
+
Given a target source named "fixture.c" with:
|
27
27
|
"""
|
28
28
|
#line 35 L"******.c" /* W0689 */
|
29
29
|
"""
|
30
|
-
When I successfully run `adlint
|
30
|
+
When I successfully run `adlint fixture.c` on noarch
|
31
31
|
Then the output should exactly match with:
|
32
32
|
| mesg | line | column |
|
33
33
|
| W0689 | 1 | 10 |
|
34
34
|
|
35
35
|
Scenario: inverted arguments
|
36
|
-
Given a target source named "
|
36
|
+
Given a target source named "fixture.c" with:
|
37
37
|
"""
|
38
38
|
#line __FILE__ 35 /* W0689 */
|
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
|
| W0689 | 1 | 16 |
|
@@ -3,32 +3,32 @@ Feature: W0690
|
|
3
3
|
W0690 detects that no line number is in the #line directive.
|
4
4
|
|
5
5
|
Scenario: an identifier as arguments
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
#line LINE1000 /* W0690 */
|
9
9
|
"""
|
10
|
-
When I successfully run `adlint
|
10
|
+
When I successfully run `adlint fixture.c` on noarch
|
11
11
|
Then the output should exactly match with:
|
12
12
|
| mesg | line | column |
|
13
13
|
| W0690 | 1 | 7 |
|
14
14
|
|
15
15
|
Scenario: inverted arguments
|
16
|
-
Given a target source named "
|
16
|
+
Given a target source named "fixture.c" with:
|
17
17
|
"""
|
18
18
|
#line __FILE__ 35 /* W0690 */
|
19
19
|
"""
|
20
|
-
When I successfully run `adlint
|
20
|
+
When I successfully run `adlint fixture.c` on noarch
|
21
21
|
Then the output should exactly match with:
|
22
22
|
| mesg | line | column |
|
23
23
|
| W0689 | 1 | 16 |
|
24
24
|
| W0690 | 1 | 7 |
|
25
25
|
|
26
26
|
Scenario: line number and macro replaceable filename
|
27
|
-
Given a target source named "
|
27
|
+
Given a target source named "fixture.c" with:
|
28
28
|
"""
|
29
29
|
#line 35 __FILE__ 35 /* OK */
|
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
|
|
@@ -3,65 +3,65 @@ Feature: W0691
|
|
3
3
|
W0691 detects that `##' operator makes invalid preprocessing token.
|
4
4
|
|
5
5
|
Scenario: resulting a decimal-constant `123456'
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
#define MACRO(a, b) a ## b
|
9
9
|
|
10
10
|
double d = (double) MACRO(123, 456); /* OK */
|
11
11
|
"""
|
12
|
-
When I successfully run `adlint
|
12
|
+
When I successfully run `adlint fixture.c` on noarch
|
13
13
|
Then the output should exactly match with:
|
14
14
|
| mesg | line | column |
|
15
15
|
| W0442 | 1 | 1 |
|
16
16
|
| W0117 | 3 | 8 |
|
17
17
|
|
18
18
|
Scenario: resulting a floating-constant `.123'
|
19
|
-
Given a target source named "
|
19
|
+
Given a target source named "fixture.c" with:
|
20
20
|
"""
|
21
21
|
#define MACRO(a, b) a ## b
|
22
22
|
|
23
23
|
double d = (double) MACRO(., 123); /* OK */
|
24
24
|
"""
|
25
|
-
When I successfully run `adlint
|
25
|
+
When I successfully run `adlint fixture.c` on noarch
|
26
26
|
Then the output should exactly match with:
|
27
27
|
| mesg | line | column |
|
28
28
|
| W0442 | 1 | 1 |
|
29
29
|
| W0117 | 3 | 8 |
|
30
30
|
|
31
31
|
Scenario: resulting a floating-constant `3.1415'.
|
32
|
-
Given a target source named "
|
32
|
+
Given a target source named "fixture.c" with:
|
33
33
|
"""
|
34
34
|
#define MACRO(a, b) a ## b
|
35
35
|
|
36
36
|
double d = (double) MACRO(3., 1415); /* OK */
|
37
37
|
"""
|
38
|
-
When I successfully run `adlint
|
38
|
+
When I successfully run `adlint fixture.c` on noarch
|
39
39
|
Then the output should exactly match with:
|
40
40
|
| mesg | line | column |
|
41
41
|
| W0442 | 1 | 1 |
|
42
42
|
| W0117 | 3 | 8 |
|
43
43
|
|
44
44
|
Scenario: resulting a floating-constant `1.23e3'
|
45
|
-
Given a target source named "
|
45
|
+
Given a target source named "fixture.c" with:
|
46
46
|
"""
|
47
47
|
#define MACRO(a, b) a ## b
|
48
48
|
|
49
49
|
double d = (double) MACRO(1.23, e3); /* OK */
|
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
|
| W0442 | 1 | 1 |
|
55
55
|
| W0117 | 3 | 8 |
|
56
56
|
|
57
57
|
Scenario: resulting an expression `-123'
|
58
|
-
Given a target source named "
|
58
|
+
Given a target source named "fixture.c" with:
|
59
59
|
"""
|
60
60
|
#define MACRO(a, b) a ## b
|
61
61
|
|
62
62
|
double d = (double) MACRO(-, 123); /* W0691 */
|
63
63
|
"""
|
64
|
-
When I successfully run `adlint
|
64
|
+
When I successfully run `adlint fixture.c` on noarch
|
65
65
|
Then the output should exactly match with:
|
66
66
|
| mesg | line | column |
|
67
67
|
| W0442 | 1 | 1 |
|
@@ -69,13 +69,13 @@ Feature: W0691
|
|
69
69
|
| W0117 | 3 | 8 |
|
70
70
|
|
71
71
|
Scenario: resulting an expression `1 / 23'
|
72
|
-
Given a target source named "
|
72
|
+
Given a target source named "fixture.c" with:
|
73
73
|
"""
|
74
74
|
#define MACRO(a, b) a ## b
|
75
75
|
|
76
76
|
double d = (double) MACRO(1/, 23); /* W0691 */
|
77
77
|
"""
|
78
|
-
When I successfully run `adlint
|
78
|
+
When I successfully run `adlint fixture.c` on noarch
|
79
79
|
Then the output should exactly match with:
|
80
80
|
| mesg | line | column |
|
81
81
|
| W0442 | 1 | 1 |
|
@@ -84,13 +84,13 @@ Feature: W0691
|
|
84
84
|
| W0117 | 3 | 8 |
|
85
85
|
|
86
86
|
Scenario: resulting an expression `1.2 * 3.4'
|
87
|
-
Given a target source named "
|
87
|
+
Given a target source named "fixture.c" with:
|
88
88
|
"""
|
89
89
|
#define MACRO(a, b) a ## b
|
90
90
|
|
91
91
|
double d = (double) MACRO(1.2*, 3.4); /* W0691 */
|
92
92
|
"""
|
93
|
-
When I successfully run `adlint
|
93
|
+
When I successfully run `adlint fixture.c` on noarch
|
94
94
|
Then the output should exactly match with:
|
95
95
|
| mesg | line | column |
|
96
96
|
| W0442 | 1 | 1 |
|
@@ -3,13 +3,13 @@ Feature: W0692
|
|
3
3
|
W0692 detects that no argument is given to a function-like macro.
|
4
4
|
|
5
5
|
Scenario: no argument to a function-like macro
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
#define MACRO(a) #a
|
9
9
|
|
10
10
|
const char *s = (char *) MACRO(); /* W0692 */
|
11
11
|
"""
|
12
|
-
When I successfully run `adlint
|
12
|
+
When I successfully run `adlint fixture.c` on noarch
|
13
13
|
Then the output should exactly match with:
|
14
14
|
| mesg | line | column |
|
15
15
|
| W0442 | 1 | 1 |
|
@@ -17,13 +17,13 @@ Feature: W0692
|
|
17
17
|
| W0117 | 3 | 13 |
|
18
18
|
|
19
19
|
Scenario: enough arguments to a function-like macro
|
20
|
-
Given a target source named "
|
20
|
+
Given a target source named "fixture.c" with:
|
21
21
|
"""
|
22
22
|
#define MACRO(a) #a
|
23
23
|
|
24
24
|
const char *s = (char *) MACRO(str); /* OK */
|
25
25
|
"""
|
26
|
-
When I successfully run `adlint
|
26
|
+
When I successfully run `adlint fixture.c` on noarch
|
27
27
|
Then the output should exactly match with:
|
28
28
|
| mesg | line | column |
|
29
29
|
| W0442 | 1 | 1 |
|
@@ -4,7 +4,7 @@ Feature: W0694
|
|
4
4
|
`assert' macro is undefined.
|
5
5
|
|
6
6
|
Scenario: undefining `assert' macro and then declaring `assert' function
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
#undef assert
|
10
10
|
extern void assert(int);
|
@@ -14,7 +14,7 @@ Feature: W0694
|
|
14
14
|
assert("should not be reached" == ""); /* W0694 */
|
15
15
|
}
|
16
16
|
"""
|
17
|
-
When I successfully run `adlint
|
17
|
+
When I successfully run `adlint fixture.c` on noarch
|
18
18
|
Then the output should exactly match with:
|
19
19
|
| mesg | line | column |
|
20
20
|
| W0695 | 1 | 8 |
|
@@ -28,7 +28,7 @@ Feature: W0694
|
|
28
28
|
| W0628 | 4 | 6 |
|
29
29
|
|
30
30
|
Scenario: declaring `assert' function and then undefining `assert' macro
|
31
|
-
Given a target source named "
|
31
|
+
Given a target source named "fixture.c" with:
|
32
32
|
"""
|
33
33
|
extern void assert(int);
|
34
34
|
#undef assert
|
@@ -38,7 +38,7 @@ Feature: W0694
|
|
38
38
|
assert("should not be reached" == ""); /* W0694 */
|
39
39
|
}
|
40
40
|
"""
|
41
|
-
When I successfully run `adlint
|
41
|
+
When I successfully run `adlint fixture.c` on noarch
|
42
42
|
Then the output should exactly match with:
|
43
43
|
| mesg | line | column |
|
44
44
|
| W0695 | 2 | 8 |
|
@@ -53,7 +53,7 @@ Feature: W0694
|
|
53
53
|
|
54
54
|
Scenario: undefining `assert' macro in function and then declaring `assert'
|
55
55
|
function
|
56
|
-
Given a target source named "
|
56
|
+
Given a target source named "fixture.c" with:
|
57
57
|
"""
|
58
58
|
void foo(void)
|
59
59
|
{
|
@@ -62,7 +62,7 @@ Feature: W0694
|
|
62
62
|
assert("should not be reached" == ""); /* W0694 */
|
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
|
| W0695 | 3 | 8 |
|
@@ -79,7 +79,7 @@ Feature: W0694
|
|
79
79
|
|
80
80
|
Scenario: declaring `assert' function and then undefining `assert' macro in
|
81
81
|
function
|
82
|
-
Given a target source named "
|
82
|
+
Given a target source named "fixture.c" with:
|
83
83
|
"""
|
84
84
|
extern void assert(int);
|
85
85
|
|
@@ -89,7 +89,7 @@ Feature: W0694
|
|
89
89
|
assert("should not be reached" == ""); /* W0694 */
|
90
90
|
}
|
91
91
|
"""
|
92
|
-
When I successfully run `adlint
|
92
|
+
When I successfully run `adlint fixture.c` on noarch
|
93
93
|
Then the output should exactly match with:
|
94
94
|
| mesg | line | column |
|
95
95
|
| W0695 | 5 | 8 |
|
@@ -104,7 +104,7 @@ Feature: W0694
|
|
104
104
|
| W0628 | 3 | 6 |
|
105
105
|
|
106
106
|
Scenario: `assert' function declared but calling `assert' macro
|
107
|
-
Given a target source named "
|
107
|
+
Given a target source named "fixture.c" with:
|
108
108
|
"""
|
109
109
|
extern void assert(int);
|
110
110
|
|
@@ -115,7 +115,7 @@ Feature: W0694
|
|
115
115
|
assert("should not be reached" == ""); /* OK */
|
116
116
|
}
|
117
117
|
"""
|
118
|
-
When I successfully run `adlint
|
118
|
+
When I successfully run `adlint fixture.c` on noarch
|
119
119
|
Then the output should exactly match with:
|
120
120
|
| mesg | line | column |
|
121
121
|
| W0442 | 3 | 1 |
|
@@ -0,0 +1,78 @@
|
|
1
|
+
Feature: W0695
|
2
|
+
|
3
|
+
W0695 detects that the function named `assert' is called because standard
|
4
|
+
`assert' macro is undefined.
|
5
|
+
|
6
|
+
Scenario: undefining `assert' macro and then declaring `assert' function
|
7
|
+
Given a target source named "fixture.c" with:
|
8
|
+
"""
|
9
|
+
#undef assert /* W0695 */
|
10
|
+
extern void assert(int);
|
11
|
+
"""
|
12
|
+
When I successfully run `adlint fixture.c` on noarch
|
13
|
+
Then the output should exactly match with:
|
14
|
+
| mesg | line | column |
|
15
|
+
| W0695 | 1 | 8 |
|
16
|
+
| W0118 | 2 | 13 |
|
17
|
+
|
18
|
+
Scenario: undefining `assert' macro in function and then declaring `assert'
|
19
|
+
function
|
20
|
+
Given a target source named "fixture.c" with:
|
21
|
+
"""
|
22
|
+
extern void foo(void)
|
23
|
+
{
|
24
|
+
#undef assert
|
25
|
+
extern void assert(int);
|
26
|
+
}
|
27
|
+
"""
|
28
|
+
When I successfully run `adlint fixture.c` on noarch
|
29
|
+
Then the output should exactly match with:
|
30
|
+
| mesg | line | column |
|
31
|
+
| W0695 | 3 | 8 |
|
32
|
+
| W0117 | 1 | 13 |
|
33
|
+
| W0118 | 4 | 17 |
|
34
|
+
| W0622 | 4 | 17 |
|
35
|
+
| W0624 | 3 | 1 |
|
36
|
+
| W0628 | 1 | 13 |
|
37
|
+
|
38
|
+
Scenario: calling `assert' macro
|
39
|
+
Given a target source named "fixture.c" with:
|
40
|
+
"""
|
41
|
+
#include <assert.h>
|
42
|
+
|
43
|
+
void foo(void)
|
44
|
+
{
|
45
|
+
assert("should not be reached" == ""); /* OK */
|
46
|
+
}
|
47
|
+
"""
|
48
|
+
When I successfully run `adlint fixture.c` on noarch
|
49
|
+
Then the output should exactly match with:
|
50
|
+
| mesg | line | column |
|
51
|
+
| W0117 | 3 | 6 |
|
52
|
+
| W0085 | 5 | 5 |
|
53
|
+
| W0628 | 3 | 6 |
|
54
|
+
| W9003 | 5 | 5 |
|
55
|
+
|
56
|
+
Scenario: `assert' function declared but calling `assert' macro
|
57
|
+
Given a target source named "fixture.c" with:
|
58
|
+
"""
|
59
|
+
extern void assert(int);
|
60
|
+
|
61
|
+
#define assert(expr) ((void *) 0) /* to simulate #include <assert.h> */
|
62
|
+
|
63
|
+
void foo(void)
|
64
|
+
{
|
65
|
+
assert("should not be reached" == ""); /* OK */
|
66
|
+
}
|
67
|
+
"""
|
68
|
+
When I successfully run `adlint fixture.c` on noarch
|
69
|
+
Then the output should exactly match with:
|
70
|
+
| mesg | line | column |
|
71
|
+
| W0442 | 3 | 1 |
|
72
|
+
| W0118 | 1 | 13 |
|
73
|
+
| W0117 | 5 | 6 |
|
74
|
+
| W0567 | 7 | 5 |
|
75
|
+
| W0085 | 7 | 5 |
|
76
|
+
| W0628 | 5 | 6 |
|
77
|
+
|
78
|
+
# vim:ts=2:sw=2:sts=2:et:
|
@@ -4,13 +4,13 @@ Feature: W0697
|
|
4
4
|
`return' statements in the non-void function.
|
5
5
|
|
6
6
|
Scenario: no `return' statement in non-void function
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
extern int func(void) /* W0697 */
|
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 | 12 |
|
@@ -18,7 +18,7 @@ Feature: W0697
|
|
18
18
|
| W0628 | 1 | 12 |
|
19
19
|
|
20
20
|
Scenario: a `return' statement is only in a `if' statement
|
21
|
-
Given a target source named "
|
21
|
+
Given a target source named "fixture.c" with:
|
22
22
|
"""
|
23
23
|
extern int func(int value) /* W0697 */
|
24
24
|
{
|
@@ -27,7 +27,7 @@ Feature: W0697
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
"""
|
30
|
-
When I successfully run `adlint
|
30
|
+
When I successfully run `adlint fixture.c` on noarch
|
31
31
|
Then the output should exactly match with:
|
32
32
|
| mesg | line | column |
|
33
33
|
| W0117 | 1 | 12 |
|
@@ -37,7 +37,7 @@ Feature: W0697
|
|
37
37
|
| W0628 | 1 | 12 |
|
38
38
|
|
39
39
|
Scenario: `return' statements are only in a `if-else-if' statements chain
|
40
|
-
Given a target source named "
|
40
|
+
Given a target source named "fixture.c" with:
|
41
41
|
"""
|
42
42
|
extern int func(int value) /* W0697 */
|
43
43
|
{
|
@@ -48,7 +48,7 @@ Feature: W0697
|
|
48
48
|
}
|
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
|
| W0117 | 1 | 12 |
|
@@ -60,7 +60,7 @@ Feature: W0697
|
|
60
60
|
|
61
61
|
Scenario: `return' statements are in all `case' clauses but not in the
|
62
62
|
`default` clause
|
63
|
-
Given a target source named "
|
63
|
+
Given a target source named "fixture.c" with:
|
64
64
|
"""
|
65
65
|
extern int func(int value) /* W0697 */
|
66
66
|
{
|
@@ -76,7 +76,7 @@ Feature: W0697
|
|
76
76
|
}
|
77
77
|
}
|
78
78
|
"""
|
79
|
-
When I successfully run `adlint
|
79
|
+
When I successfully run `adlint fixture.c` on noarch
|
80
80
|
Then the output should exactly match with:
|
81
81
|
| mesg | line | column |
|
82
82
|
| W0117 | 1 | 12 |
|
@@ -86,21 +86,21 @@ Feature: W0697
|
|
86
86
|
| W0628 | 1 | 12 |
|
87
87
|
|
88
88
|
Scenario: a `return' statement in non-void function
|
89
|
-
Given a target source named "
|
89
|
+
Given a target source named "fixture.c" with:
|
90
90
|
"""
|
91
91
|
extern int func(void) /* OK */
|
92
92
|
{
|
93
93
|
return 1;
|
94
94
|
}
|
95
95
|
"""
|
96
|
-
When I successfully run `adlint
|
96
|
+
When I successfully run `adlint fixture.c` on noarch
|
97
97
|
Then the output should exactly match with:
|
98
98
|
| mesg | line | column |
|
99
99
|
| W0117 | 1 | 12 |
|
100
100
|
| W0628 | 1 | 12 |
|
101
101
|
|
102
102
|
Scenario: no implicit termination in all execution paths
|
103
|
-
Given a target source named "
|
103
|
+
Given a target source named "fixture.c" with:
|
104
104
|
"""
|
105
105
|
extern int func(int value) /* OK */
|
106
106
|
{
|
@@ -110,7 +110,7 @@ Feature: W0697
|
|
110
110
|
return 1;
|
111
111
|
}
|
112
112
|
"""
|
113
|
-
When I successfully run `adlint
|
113
|
+
When I successfully run `adlint fixture.c` on noarch
|
114
114
|
Then the output should exactly match with:
|
115
115
|
| mesg | line | column |
|
116
116
|
| W0117 | 1 | 12 |
|
@@ -119,7 +119,7 @@ Feature: W0697
|
|
119
119
|
| W0628 | 1 | 12 |
|
120
120
|
|
121
121
|
Scenario: no implicit termination in `if-else-if' statements chain
|
122
|
-
Given a target source named "
|
122
|
+
Given a target source named "fixture.c" with:
|
123
123
|
"""
|
124
124
|
extern int func(int value) /* OK */
|
125
125
|
{
|
@@ -132,7 +132,7 @@ Feature: W0697
|
|
132
132
|
}
|
133
133
|
}
|
134
134
|
"""
|
135
|
-
When I successfully run `adlint
|
135
|
+
When I successfully run `adlint fixture.c` on noarch
|
136
136
|
Then the output should exactly match with:
|
137
137
|
| mesg | line | column |
|
138
138
|
| W0117 | 1 | 12 |
|
@@ -141,7 +141,7 @@ Feature: W0697
|
|
141
141
|
| W0628 | 1 | 12 |
|
142
142
|
|
143
143
|
Scenario: no implicit termination with `switch' statement
|
144
|
-
Given a target source named "
|
144
|
+
Given a target source named "fixture.c" with:
|
145
145
|
"""
|
146
146
|
extern int func(int value) /* OK */
|
147
147
|
{
|
@@ -158,7 +158,7 @@ Feature: W0697
|
|
158
158
|
return 10;
|
159
159
|
}
|
160
160
|
"""
|
161
|
-
When I successfully run `adlint
|
161
|
+
When I successfully run `adlint fixture.c` on noarch
|
162
162
|
Then the output should exactly match with:
|
163
163
|
| mesg | line | column |
|
164
164
|
| W0117 | 1 | 12 |
|
@@ -167,7 +167,7 @@ Feature: W0697
|
|
167
167
|
| W0628 | 1 | 12 |
|
168
168
|
|
169
169
|
Scenario: no implicit termination with `goto' statement
|
170
|
-
Given a target source named "
|
170
|
+
Given a target source named "fixture.c" with:
|
171
171
|
"""
|
172
172
|
extern int func(int value) /* OK */
|
173
173
|
{
|
@@ -178,7 +178,7 @@ Feature: W0697
|
|
178
178
|
return 1;
|
179
179
|
}
|
180
180
|
"""
|
181
|
-
When I successfully run `adlint
|
181
|
+
When I successfully run `adlint fixture.c` on noarch
|
182
182
|
Then the output should exactly match with:
|
183
183
|
| mesg | line | column |
|
184
184
|
| W0117 | 1 | 12 |
|