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
@@ -0,0 +1,134 @@
|
|
1
|
+
# ___ ____ __ ___ _________
|
2
|
+
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
|
+
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
|
+
# / __ |/ /_/ / /___/ / /| / / /
|
5
|
+
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2012, OGIS-RI Co.,Ltd.
|
6
|
+
#
|
7
|
+
# This file is part of AdLint.
|
8
|
+
#
|
9
|
+
# AdLint is free software: you can redistribute it and/or modify it under the
|
10
|
+
# terms of the GNU General Public License as published by the Free Software
|
11
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
12
|
+
# version.
|
13
|
+
#
|
14
|
+
# AdLint is distributed in the hope that it will be useful, but WITHOUT ANY
|
15
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
16
|
+
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
17
|
+
#
|
18
|
+
# You should have received a copy of the GNU General Public License along with
|
19
|
+
# AdLint. If not, see <http://www.gnu.org/licenses/>.
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# Default message catalog of core package for en_US locale.
|
23
|
+
#
|
24
|
+
# *********************************
|
25
|
+
# ***** DO NOT EDIT THIS FILE *****
|
26
|
+
# *********************************
|
27
|
+
#
|
28
|
+
# To override default messages, edit `change_list' section of the traits file.
|
29
|
+
#
|
30
|
+
# [Example]
|
31
|
+
#
|
32
|
+
# % tail traits.yml
|
33
|
+
# message_traits:
|
34
|
+
# change_list:
|
35
|
+
# W9999:
|
36
|
+
# package: "c_builtin"
|
37
|
+
# classes:
|
38
|
+
# - "REL:A10"
|
39
|
+
# - "PRT:B20"
|
40
|
+
# format: "Your custom message for the warning of W9999."
|
41
|
+
# X9999:
|
42
|
+
# package: "core"
|
43
|
+
# classes:
|
44
|
+
# - "ERR:X99"
|
45
|
+
# format: "Your custom message for the fatal error of X9999."
|
46
|
+
# E9999:
|
47
|
+
# package: "core"
|
48
|
+
# classes:
|
49
|
+
# - "ERR:X99"
|
50
|
+
# format: "Your custom message for the error of E9999."
|
51
|
+
|
52
|
+
version: "2.0.0"
|
53
|
+
|
54
|
+
message_definition:
|
55
|
+
X0001:
|
56
|
+
classes:
|
57
|
+
- "ERR:X99"
|
58
|
+
format: "An unknown exception `%s' is found."
|
59
|
+
X0002:
|
60
|
+
classes:
|
61
|
+
- "ERR:X99"
|
62
|
+
format: "An illegal message ID `%s:%s' is found."
|
63
|
+
X0003:
|
64
|
+
classes:
|
65
|
+
- "ERR:X99"
|
66
|
+
format: "Analysis processing has been stopped due to unrecoverable error. For the details, refer to `%s' and `%s'."
|
67
|
+
X0004:
|
68
|
+
classes:
|
69
|
+
- "ERR:X99"
|
70
|
+
format: "An illegal message format `%s' is found."
|
71
|
+
E0001:
|
72
|
+
classes:
|
73
|
+
- "ERR:X99"
|
74
|
+
format: "An identifier is required in this position."
|
75
|
+
E0002:
|
76
|
+
classes:
|
77
|
+
- "ERR:X99"
|
78
|
+
format: "A comma is required in this position."
|
79
|
+
E0003:
|
80
|
+
classes:
|
81
|
+
- "ERR:X99"
|
82
|
+
format: "Invalid token is found behind identifier list (identifier_list)."
|
83
|
+
E0004:
|
84
|
+
classes:
|
85
|
+
- "ERR:X99"
|
86
|
+
format: "Corresponding #endif doesn't found."
|
87
|
+
E0005:
|
88
|
+
classes:
|
89
|
+
- "ERR:X99"
|
90
|
+
format: "#else group (else_group) must describe after #elif group (elif_groups)."
|
91
|
+
E0006:
|
92
|
+
classes:
|
93
|
+
- "ERR:X99"
|
94
|
+
format: "Syntax error is found in token `%s'."
|
95
|
+
E0007:
|
96
|
+
classes:
|
97
|
+
- "ERR:X99"
|
98
|
+
format: "Syntax error is found in conditional expression token `%s'. Conditional expression evaluate as false."
|
99
|
+
E0008:
|
100
|
+
classes:
|
101
|
+
- "ERR:X99"
|
102
|
+
format: "Syntax error is found in token `%s'."
|
103
|
+
E0009:
|
104
|
+
classes:
|
105
|
+
- "ERR:X99"
|
106
|
+
format: "A header file of <%s> doesn't found."
|
107
|
+
E0010:
|
108
|
+
classes:
|
109
|
+
- "ERR:X99"
|
110
|
+
format: "A header file of \"%s\" doesn't found."
|
111
|
+
E0011:
|
112
|
+
classes:
|
113
|
+
- "ERR:X99"
|
114
|
+
format: "Syntax error is found under analysis of <%s>."
|
115
|
+
E0012:
|
116
|
+
classes:
|
117
|
+
- "ERR:X99"
|
118
|
+
format: "Syntax error is found under analysis of \"%s\"."
|
119
|
+
E0013:
|
120
|
+
classes:
|
121
|
+
- "ERR:X99"
|
122
|
+
format: "Statement cannot include in syntax."
|
123
|
+
E0014:
|
124
|
+
classes:
|
125
|
+
- "ERR:X99"
|
126
|
+
format: "'&&' monadic operator to get a label address is GCC original add-on."
|
127
|
+
E0015:
|
128
|
+
classes:
|
129
|
+
- "ERR:X99"
|
130
|
+
format: "'goto' statement with specified label address is GCC original add-on."
|
131
|
+
E0016:
|
132
|
+
classes:
|
133
|
+
- "ERR:X99"
|
134
|
+
format: "Unfinished comment block is found."
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# ___ ____ __ ___ _________
|
2
|
+
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
|
3
|
+
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
|
4
|
+
# / __ |/ /_/ / /___/ / /| / / /
|
5
|
+
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2012, OGIS-RI Co.,Ltd.
|
6
|
+
#
|
7
|
+
# This file is part of AdLint.
|
8
|
+
#
|
9
|
+
# AdLint is free software: you can redistribute it and/or modify it under the
|
10
|
+
# terms of the GNU General Public License as published by the Free Software
|
11
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
12
|
+
# version.
|
13
|
+
#
|
14
|
+
# AdLint is distributed in the hope that it will be useful, but WITHOUT ANY
|
15
|
+
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
16
|
+
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
17
|
+
#
|
18
|
+
# You should have received a copy of the GNU General Public License along with
|
19
|
+
# AdLint. If not, see <http://www.gnu.org/licenses/>.
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# Default message catalog of core package for ja_JP locale.
|
23
|
+
#
|
24
|
+
# *********************************
|
25
|
+
# ***** DO NOT EDIT THIS FILE *****
|
26
|
+
# *********************************
|
27
|
+
#
|
28
|
+
# To override default messages, edit `change_list' section of the traits file.
|
29
|
+
#
|
30
|
+
# [Example]
|
31
|
+
#
|
32
|
+
# % tail traits.yml
|
33
|
+
# message_traits:
|
34
|
+
# change_list:
|
35
|
+
# W9999:
|
36
|
+
# package: "c_builtin"
|
37
|
+
# classes:
|
38
|
+
# - "REL:A10"
|
39
|
+
# - "PRT:B20"
|
40
|
+
# format: "Your custom message for the warning of W9999."
|
41
|
+
# X9999:
|
42
|
+
# package: "core"
|
43
|
+
# classes:
|
44
|
+
# - "ERR:X99"
|
45
|
+
# format: "Your custom message for the fatal error of X9999."
|
46
|
+
# E9999:
|
47
|
+
# package: "core"
|
48
|
+
# classes:
|
49
|
+
# - "ERR:X99"
|
50
|
+
# format: "Your custom message for the error of E9999."
|
51
|
+
|
52
|
+
version: "2.0.0"
|
53
|
+
|
54
|
+
message_definition:
|
55
|
+
X0001:
|
56
|
+
classes:
|
57
|
+
- "ERR:X99"
|
58
|
+
format: "不明な例外条件 `%s' を検出しました。"
|
59
|
+
X0002:
|
60
|
+
classes:
|
61
|
+
- "ERR:X99"
|
62
|
+
format: "不正なメッセージ ID `%s:%s' を検出しました。"
|
63
|
+
X0003:
|
64
|
+
classes:
|
65
|
+
- "ERR:X99"
|
66
|
+
format: "回復不能なエラーにより解析処理を中断しました。詳細は `%s' 及び `%s' を確認して下さい。"
|
67
|
+
X0004:
|
68
|
+
classes:
|
69
|
+
- "ERR:X99"
|
70
|
+
format: "不正なメッセージフォーマット `%s:%s' を検出しました。"
|
71
|
+
E0001:
|
72
|
+
classes:
|
73
|
+
- "ERR:X99"
|
74
|
+
format: "この位置には識別子が必要です。"
|
75
|
+
E0002:
|
76
|
+
classes:
|
77
|
+
- "ERR:X99"
|
78
|
+
format: "この位置にはコンマが必要です。"
|
79
|
+
E0003:
|
80
|
+
classes:
|
81
|
+
- "ERR:X99"
|
82
|
+
format: "識別子リスト(identifier_list)の後に不正なトークンが見つかりました。"
|
83
|
+
E0004:
|
84
|
+
classes:
|
85
|
+
- "ERR:X99"
|
86
|
+
format: "対応する #endif 行がありません。"
|
87
|
+
E0005:
|
88
|
+
classes:
|
89
|
+
- "ERR:X99"
|
90
|
+
format: "#else グループ(else_group)は、#elif グループ(elif_groups)の後に記述しなければなりません。"
|
91
|
+
E0006:
|
92
|
+
classes:
|
93
|
+
- "ERR:X99"
|
94
|
+
format: "トークン `%s' で構文エラーを検知しました。"
|
95
|
+
E0007:
|
96
|
+
classes:
|
97
|
+
- "ERR:X99"
|
98
|
+
format: "条件式中のトークン `%s' で構文エラーを検出しました。条件式を偽として評価します。"
|
99
|
+
E0008:
|
100
|
+
classes:
|
101
|
+
- "ERR:X99"
|
102
|
+
format: "トークン `%s' で構文エラーを検知しました。"
|
103
|
+
E0009:
|
104
|
+
classes:
|
105
|
+
- "ERR:X99"
|
106
|
+
format: "ヘッダファイル <%s> が見つかりません。"
|
107
|
+
E0010:
|
108
|
+
classes:
|
109
|
+
- "ERR:X99"
|
110
|
+
format: "ヘッダファイル \"%s\"が見つかりません。"
|
111
|
+
E0011:
|
112
|
+
classes:
|
113
|
+
- "ERR:X99"
|
114
|
+
format: "ヘッダファイル <%s> の解析中に構文エラーを検出しました。"
|
115
|
+
E0012:
|
116
|
+
classes:
|
117
|
+
- "ERR:X99"
|
118
|
+
format: "ヘッダファイル \"%s\"の解析中に構文エラーを検出しました。"
|
119
|
+
E0013:
|
120
|
+
classes:
|
121
|
+
- "ERR:X99"
|
122
|
+
format: "式に文を含めることはできません。"
|
123
|
+
E0014:
|
124
|
+
classes:
|
125
|
+
- "ERR:X99"
|
126
|
+
format: "ラベルのアドレスを取得するための && 単項演算子は GCC 独自の拡張機能です。"
|
127
|
+
E0015:
|
128
|
+
classes:
|
129
|
+
- "ERR:X99"
|
130
|
+
format: "ラベルのアドレスを指定した goto 文は GCC 独自の拡張機能です。"
|
131
|
+
E0016:
|
132
|
+
classes:
|
133
|
+
- "ERR:X99"
|
134
|
+
format: "終了しないコメントブロックが見つかりました。"
|
@@ -3,7 +3,7 @@ Feature: E0013
|
|
3
3
|
E0013 detects that an expression contains statements.
|
4
4
|
|
5
5
|
Scenario: statements in initializer
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
int foo(int i)
|
9
9
|
{
|
@@ -17,7 +17,7 @@ Feature: E0013
|
|
17
17
|
}
|
18
18
|
}
|
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
|
| E0013 | 3 | 13 |
|
@@ -3,7 +3,7 @@ Feature: W0001
|
|
3
3
|
W0001 detects that a number of the expression grouping is greater than 32.
|
4
4
|
|
5
5
|
Scenario: deeply grouped in initializer
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
static void foo(void)
|
9
9
|
{
|
@@ -12,7 +12,7 @@ Feature: W0001
|
|
12
12
|
const int c = (((((((((((((((((((((((((((((((((a + b))))))))))))))))))))))))))))))))); /* W0001 */
|
13
13
|
}
|
14
14
|
"""
|
15
|
-
When I successfully run `adlint
|
15
|
+
When I successfully run `adlint fixture.c` on noarch
|
16
16
|
Then the output should exactly match with:
|
17
17
|
| mesg | line | column |
|
18
18
|
| W1076 | 1 | 13 |
|
@@ -21,7 +21,7 @@ Feature: W0001
|
|
21
21
|
| W0628 | 1 | 13 |
|
22
22
|
|
23
23
|
Scenario: deeply grouped in expression-statement
|
24
|
-
Given a target source named "
|
24
|
+
Given a target source named "fixture.c" with:
|
25
25
|
"""
|
26
26
|
static void foo(void)
|
27
27
|
{
|
@@ -31,7 +31,7 @@ Feature: W0001
|
|
31
31
|
c = (((((((((((((((((((((((((((((((((a + b))))))))))))))))))))))))))))))))); /* W0001 */
|
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
|
| W1076 | 1 | 13 |
|
@@ -3,7 +3,7 @@ Feature: W0002
|
|
3
3
|
W0002 detects that an old style function-definition is found.
|
4
4
|
|
5
5
|
Scenario: all arguments are type specified
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
int func(arg1, arg2) /* W0002 */
|
9
9
|
int arg1;
|
@@ -12,7 +12,7 @@ Feature: W0002
|
|
12
12
|
return 0;
|
13
13
|
}
|
14
14
|
"""
|
15
|
-
When I successfully run `adlint
|
15
|
+
When I successfully run `adlint fixture.c` on noarch
|
16
16
|
Then the output should exactly match with:
|
17
17
|
| mesg | line | column |
|
18
18
|
| W0117 | 1 | 5 |
|
@@ -24,14 +24,14 @@ Feature: W0002
|
|
24
24
|
| W0628 | 1 | 5 |
|
25
25
|
|
26
26
|
Scenario: no arguments are type specified
|
27
|
-
Given a target source named "
|
27
|
+
Given a target source named "fixture.c" with:
|
28
28
|
"""
|
29
29
|
int func(arg1, arg2) /* W0002 */
|
30
30
|
{
|
31
31
|
return 0;
|
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
|
| W0117 | 1 | 5 |
|
@@ -45,7 +45,7 @@ Feature: W0002
|
|
45
45
|
| W0628 | 1 | 5 |
|
46
46
|
|
47
47
|
Scenario: arguments are partly type specified
|
48
|
-
Given a target source named "
|
48
|
+
Given a target source named "fixture.c" with:
|
49
49
|
"""
|
50
50
|
int func(arg1, arg2) /* W0002 */
|
51
51
|
char arg2;
|
@@ -53,7 +53,7 @@ Feature: W0002
|
|
53
53
|
return 0;
|
54
54
|
}
|
55
55
|
"""
|
56
|
-
When I successfully run `adlint
|
56
|
+
When I successfully run `adlint fixture.c` on noarch
|
57
57
|
Then the output should exactly match with:
|
58
58
|
| mesg | line | column |
|
59
59
|
| W0117 | 1 | 5 |
|
@@ -3,7 +3,7 @@ Feature: W0003
|
|
3
3
|
W0003 detects that no default clause is in the switch-statement.
|
4
4
|
|
5
5
|
Scenario: no default clause
|
6
|
-
Given a target source named "
|
6
|
+
Given a target source named "fixture.c" with:
|
7
7
|
"""
|
8
8
|
int foo(int i)
|
9
9
|
{
|
@@ -24,7 +24,7 @@ Feature: W0003
|
|
24
24
|
return j;
|
25
25
|
}
|
26
26
|
"""
|
27
|
-
When I successfully run `adlint
|
27
|
+
When I successfully run `adlint fixture.c` on noarch
|
28
28
|
Then the output should exactly match with:
|
29
29
|
| mesg | line | column |
|
30
30
|
| W0117 | 1 | 5 |
|
@@ -34,7 +34,7 @@ Feature: W0003
|
|
34
34
|
| W0628 | 1 | 5 |
|
35
35
|
|
36
36
|
Scenario: a default clause at the bottom
|
37
|
-
Given a target source named "
|
37
|
+
Given a target source named "fixture.c" with:
|
38
38
|
"""
|
39
39
|
int foo(int i)
|
40
40
|
{
|
@@ -58,7 +58,7 @@ Feature: W0003
|
|
58
58
|
return j;
|
59
59
|
}
|
60
60
|
"""
|
61
|
-
When I successfully run `adlint
|
61
|
+
When I successfully run `adlint fixture.c` on noarch
|
62
62
|
Then the output should exactly match with:
|
63
63
|
| mesg | line | column |
|
64
64
|
| W0117 | 1 | 5 |
|
@@ -66,7 +66,7 @@ Feature: W0003
|
|
66
66
|
| W0628 | 1 | 5 |
|
67
67
|
|
68
68
|
Scenario: a default clause at the middle
|
69
|
-
Given a target source named "
|
69
|
+
Given a target source named "fixture.c" with:
|
70
70
|
"""
|
71
71
|
int foo(int i)
|
72
72
|
{
|
@@ -90,7 +90,7 @@ Feature: W0003
|
|
90
90
|
return j;
|
91
91
|
}
|
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
|
| W0117 | 1 | 5 |
|
@@ -99,7 +99,7 @@ Feature: W0003
|
|
99
99
|
| W0628 | 1 | 5 |
|
100
100
|
|
101
101
|
Scenario: a default clause at the top
|
102
|
-
Given a target source named "
|
102
|
+
Given a target source named "fixture.c" with:
|
103
103
|
"""
|
104
104
|
int foo(int i)
|
105
105
|
{
|
@@ -123,7 +123,7 @@ Feature: W0003
|
|
123
123
|
return j;
|
124
124
|
}
|
125
125
|
"""
|
126
|
-
When I successfully run `adlint
|
126
|
+
When I successfully run `adlint fixture.c` on noarch
|
127
127
|
Then the output should exactly match with:
|
128
128
|
| mesg | line | column |
|
129
129
|
| W0117 | 1 | 5 |
|
@@ -4,7 +4,7 @@ Feature: W0007
|
|
4
4
|
jump-statement at the last statement.
|
5
5
|
|
6
6
|
Scenario: no jump-statement in the previous case clause
|
7
|
-
Given a target source named "
|
7
|
+
Given a target source named "fixture.c" with:
|
8
8
|
"""
|
9
9
|
static int foo(const int i)
|
10
10
|
{
|
@@ -27,7 +27,7 @@ Feature: W0007
|
|
27
27
|
return j;
|
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
|
| W1076 | 1 | 12 |
|
@@ -36,7 +36,7 @@ Feature: W0007
|
|
36
36
|
| W0628 | 1 | 12 |
|
37
37
|
|
38
38
|
Scenario: a break-statement at the middle of the previous case clause
|
39
|
-
Given a target source named "
|
39
|
+
Given a target source named "fixture.c" with:
|
40
40
|
"""
|
41
41
|
extern int rand(void);
|
42
42
|
|
@@ -65,7 +65,7 @@ Feature: W0007
|
|
65
65
|
return j;
|
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 | 12 |
|
@@ -76,7 +76,7 @@ Feature: W0007
|
|
76
76
|
| W0628 | 3 | 12 |
|
77
77
|
|
78
78
|
Scenario: a break-statement at the bottom of the previous case clause
|
79
|
-
Given a target source named "
|
79
|
+
Given a target source named "fixture.c" with:
|
80
80
|
"""
|
81
81
|
static int foo(const int i)
|
82
82
|
{
|
@@ -100,7 +100,7 @@ Feature: W0007
|
|
100
100
|
return j;
|
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
|
| W1076 | 1 | 12 |
|
@@ -108,7 +108,7 @@ Feature: W0007
|
|
108
108
|
| W0628 | 1 | 12 |
|
109
109
|
|
110
110
|
Scenario: a return-statement at the bottom of the previous case clause
|
111
|
-
Given a target source named "
|
111
|
+
Given a target source named "fixture.c" with:
|
112
112
|
"""
|
113
113
|
static int foo(const int i)
|
114
114
|
{
|
@@ -132,7 +132,7 @@ Feature: W0007
|
|
132
132
|
return j;
|
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
|
| W1076 | 1 | 12 |
|
@@ -141,7 +141,7 @@ Feature: W0007
|
|
141
141
|
| W0628 | 1 | 12 |
|
142
142
|
|
143
143
|
Scenario: no jump-statement in the previous default clause
|
144
|
-
Given a target source named "
|
144
|
+
Given a target source named "fixture.c" with:
|
145
145
|
"""
|
146
146
|
static int foo(const int i)
|
147
147
|
{
|
@@ -161,7 +161,7 @@ Feature: W0007
|
|
161
161
|
return j;
|
162
162
|
}
|
163
163
|
"""
|
164
|
-
When I successfully run `adlint
|
164
|
+
When I successfully run `adlint fixture.c` on noarch
|
165
165
|
Then the output should exactly match with:
|
166
166
|
| mesg | line | column |
|
167
167
|
| W1076 | 1 | 12 |
|
@@ -171,7 +171,7 @@ Feature: W0007
|
|
171
171
|
| W0628 | 1 | 12 |
|
172
172
|
|
173
173
|
Scenario: a break-statement at the middle of the previous default clause
|
174
|
-
Given a target source named "
|
174
|
+
Given a target source named "fixture.c" with:
|
175
175
|
"""
|
176
176
|
extern int rand(void);
|
177
177
|
|
@@ -197,7 +197,7 @@ Feature: W0007
|
|
197
197
|
return j;
|
198
198
|
}
|
199
199
|
"""
|
200
|
-
When I successfully run `adlint
|
200
|
+
When I successfully run `adlint fixture.c` on noarch
|
201
201
|
Then the output should exactly match with:
|
202
202
|
| mesg | line | column |
|
203
203
|
| W0118 | 1 | 12 |
|
@@ -209,7 +209,7 @@ Feature: W0007
|
|
209
209
|
| W0628 | 3 | 12 |
|
210
210
|
|
211
211
|
Scenario: a break-statement at the bottom of the previous default clause
|
212
|
-
Given a target source named "
|
212
|
+
Given a target source named "fixture.c" with:
|
213
213
|
"""
|
214
214
|
static int foo(const int i)
|
215
215
|
{
|
@@ -233,7 +233,7 @@ Feature: W0007
|
|
233
233
|
return j;
|
234
234
|
}
|
235
235
|
"""
|
236
|
-
When I successfully run `adlint
|
236
|
+
When I successfully run `adlint fixture.c` on noarch
|
237
237
|
Then the output should exactly match with:
|
238
238
|
| mesg | line | column |
|
239
239
|
| W1076 | 1 | 12 |
|
@@ -241,7 +241,7 @@ Feature: W0007
|
|
241
241
|
| W0628 | 1 | 12 |
|
242
242
|
|
243
243
|
Scenario: a return-statement at the bottom of the previous default clause
|
244
|
-
Given a target source named "
|
244
|
+
Given a target source named "fixture.c" with:
|
245
245
|
"""
|
246
246
|
static int foo(const int i)
|
247
247
|
{
|
@@ -262,7 +262,7 @@ Feature: W0007
|
|
262
262
|
return j;
|
263
263
|
}
|
264
264
|
"""
|
265
|
-
When I successfully run `adlint
|
265
|
+
When I successfully run `adlint fixture.c` on noarch
|
266
266
|
Then the output should exactly match with:
|
267
267
|
| mesg | line | column |
|
268
268
|
| W1076 | 1 | 12 |
|