{"record":{"id":"6ad3810729981c2c","repo":"puppetlabs/puppet","slug":"copyright-with-a-year-value-is-very-strange-di","errorCode":null,"errorMessage":"copyright with a year %{value} is very strange; did you accidentally add or subtract two years?","messagePattern":"copyright with a year %(.+?) is very strange; did you accidentally add or subtract two years\\?","errorType":"validation","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/interface/documentation.rb","lineNumber":318,"sourceCode":"        else\n          year\n        end\n      end.join(\", \")\n    end\n\n    # @api private\n    def munge_copyright_year(input)\n      case input\n      when Range then input\n      when Integer then\n        if input < 1970 then\n          fault = \"before 1970\"\n        elsif input > (future = Time.now.year + 2) then\n          fault = \"after #{future}\"\n        end\n        if fault then\n          # TRANSLATORS 'copyright' is an attribute name and should not be translated\n          raise ArgumentError, _(\"copyright with a year %{value} is very strange; did you accidentally add or subtract two years?\") %\n                               { value: fault }\n        end\n\n        input\n\n      when String then\n        input.strip.split(/,/).map do |part|\n          part = part.strip\n          if part =~ /^\\d+$/\n            part.to_i\n          else\n            found = part.split(/-/)\n            if found\n              unless found.length == 2 and found.all? { |x| x.strip =~ /^\\d+$/ }\n                # TRANSLATORS 'copyright' is an attribute name and should not be translated\n                raise ArgumentError, _(\"%{value} is not a good copyright year or range\") % { value: part.inspect }\n              end\n","sourceCodeStart":300,"sourceCodeEnd":336,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/interface/documentation.rb#L300-L336","documentation":"Error \"copyright with a year %{value} is very strange; did you accidentally add or subtract two years?\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/interface/documentation.rb:318 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}